|
No Control I am using
Just Format the some parts od the String and show it in to the grid.
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
I'll say it again. You cannot do what you want using String.Format, or any other string manipulation techniques. This will ONLY happen when the text is rendered by some kind of control. For most controls, you cannot mix font styles, so this would prohibit you from using a single control to do this. The only control in the ToolBox that can render different fonts at the same time is the RichTextBox, but that control is a bit too heavy for your requirement.
|
|
|
|
|
You want to show F1 throughout your app, but where exactly are you planning to display this? What is the intended control that this should be displayed on? Depending on the control, you may or may not have this ability already.
If not, you'll be best off doing a custom control like Dave recommended.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|
|
No Control I am using
Just Format the some parts od the String and show it in to the grid
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
String.Format does NOT format the text like a word processor does, the font weight, underline etc is controlled by the screen control you put the string in. String.Format is really just an easy way of building a string.
For example
Dim str1 as string = string.format("My name is {0}","Bob")
Dim str2 as string = "My name is " & "Bob"
both give the same result.
I think you have misunderstood the use of the string.format function, hopefully this will aid your understanding.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Dim str1 as string = string.format("My name is {0}","Bob")
Dim str2 as string = "My name is " & "Bob"
According to your Example how can I make the "Bob" bold
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
You can't with string.format. All string.format does is replace the {#} part with the text after the comma. Try it a couple of times in the immediate window.
The color, size, bold, underline parts of the text are controlled by the font property of whatever control that you're trying to use. If the particular control is unable to display F1 without the underline, then you must extend an existing control or create one for your needs.
All we have gathered thus far is that its a grid of some kind. It may prove somewhat beneficial to try and post the code your attempting to work with so we have an idea of what you're trying to do.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
modified on Friday, October 24, 2008 9:28 AM
|
|
|
|
|
Why do you have it stuck in your head that you can do this with String.Format or any other string manipulation technique?? IT'S NOT POSSIBLE! If you won't listen to the answers you're getting, why should we help you??
|
|
|
|
|
Sorry, I give up. You have been told so many times now, STRING.FORMAT WILL NOT MAKE YOUR FOLD BOLD, BIG, RED OR ANYTHING ELSE DISPLAY WISE
pdnet wrote: Sr. Software Developer
sure?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Ashfield wrote: pdnet wrote:
Sr. Software Developer
sure?
FTW!
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|
|
Yes !
I am Doing that
Sory to say, you are a FOOL,DULL and a USELESS,HELPLESS SOFTWARE SUPPORT MAN
You never doing a project by Yourself
Try using...........
Graphics.DrawString("Bob", New Font("Arial", 30, FontStyle.Bold), brush.ControlDark, 29, 10)
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
Sorry to say that isn't the answer to your original question. All you did was reiterate, with a very specific line of code, what's we've been telling you all along. ANd that is that you can only do what you want when rendering the string.
|
|
|
|
|
Well, I'm glad I bothered to come back and check on a couple of the older forum messages. You are personal ban list of users to help anymore.
pdnet wrote:
Try using...........
Graphics.DrawString("Bob", New Font("Arial", 30, FontStyle.Bold), brush.ControlDark, 29, 10)
You still don't comprehend what string.format does and is in no way shape or fashion related to Graphics.DrawString.
Also, using a method such as drawstring to render the graphics was suggested to you in the very first response by Dave; but you didn't bother to put 2 minutes of research into it, else you wouldn't be wasting time trying to write insults to those who tried to help you.
Cheers.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|
|
Yes !
I am Doing that
Sory to say, you are a FOOL,DULL and a USELESS,HELPLESS SOFTWARE SUPPORT MAN
You never doing a project by Yourself
Try using.........
Graphics.DrawString("Bob", New Font("Arial", 30, FontStyle.Bold), brush.ControlDark, 29, 10)
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
pdnet wrote: Sory to say, you are a FOOL,DULL and a USELESS,HELPLESS SOFTWARE SUPPORT MAN
You never doing a project by Yourself
I am NOT a software suport man, I am a developer with over 25 years experience who tried to explain to you where you were going wrong. I am well aware that using Graphics.Drawstring will do it, but you were asking how to do it with string.format.
pdnet wrote: You never doing a project by Yourself
Several hundred actually.
If you are gong to be rude and abusive when people have given their own time to try and help you, don't bother posting any more of your stupid questions (and you ignore the answers), get yourself a subscription to Google and book yourself on some beginners vb courses.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Does anyone have a good tutorial for using visual basic to capture packets, I'm a beginner! Please help, in dire need
|
|
|
|
|
Google for "WinPCap". If you're a beginner in VB.NET, or programming in general, this is going to be a tough project to write.
If your need "is dire" and you need this functionality now, then consider getting an off-the-shelf package that does packet capture and analysis for you.
|
|
|
|
|
hello,
how can i make a vb.net fancy GUI that i can make it very entertainment GUI,
OR how do i use a flash GUI in replacement or VB GUI
so my application GUI is Flash and the code and the functions is VB.net code, i already have a big application code but i wanted the GUI to be that way
thanks in advance
|
|
|
|
|
You can either consider making custom controls and make everything owner drawn, or you could look at WPF[^].
Simon
|
|
|
|
|
It sounds like what you are looking for is WPF. The Windows Presentation Foundation allows you to design extraordinary (with patience) GUIs. If you want to use flash media, then you might want to consider converting it to XAML (WPF Language) so that it can be used in the WPF application.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
hi
how i can make a phone book that work in my network.
do anyone have a sample code in .net
tanks
<< never believe a lie >>
|
|
|
|
|
I would start with a database, then design a few tables. Follow up with either a windows app or better still and intranet app to allow the phone snumbers to be displayed. I would add an admin section for updfating and enable searching by last name, first name and number.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
?????
help me !
<< never believe a lie >>
modified on Friday, October 24, 2008 11:50 AM
|
|
|
|
|
What don't you understand?
You asked
Member 2645365 wrote: how i can make a phone book that work in my network.
and I gave you a way forward.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
If you don't understand his response get out of programming NOW.
Blog link to be reinstated at a later date.
|
|
|
|