|
Hmmm... this is tough.
I tried a listbox to display the output, and it works fine, even better than a textbox.
But what really annoys me is that a listbox does not allow you to colorize specific items (fore and backcolor). It also flickers like crazy. So was thinking, are there custom listbox controls out there with the exact same functionalities is the stock listbox, only with the added ability to colorize the backcolor and/or forecolor of specific listbox items?
I google like crazy today but found squat.
http://www.themightyatom.nl
modified on Thursday, May 28, 2009 12:51 PM
|
|
|
|
|
I don't think there are such list boxes. I would stay with the textbox or use Scintilla.NET http://www.codeplex.com/ScintillaNET[^] it has syntax colloring built in.
To get the last line, search backwards to the first cr/lf and you got your line.
Good luck: Didi
|
|
|
|
|
Yeah i think so, i already found a custom listbox control that supports item colors, but it flickers like crazy when items are added in a short timespan.
Ill try that ScintillaNET thingy. If i understand correctly, this is a pack with new/updated controls with new features?
http://www.themightyatom.nl
|
|
|
|
|
You could use BeginUpdate and EndUpdate on your control before and after the adding of items (that works on most controls). Yes Scintilla.NET is a pack with controls in it...
Regards: Didi
|
|
|
|
|
I tried the beginupdate and endupdate, but i want the user to actually see the process.
As for Scintilla.NET, it only adds four unkown controls to the toolbox. I don't know how i could use that with my textbox. Plus, it makes my Visual Studio crash. :/
http://www.themightyatom.nl
|
|
|
|
|
you don't use it with your textbox, but instead of. Find documentation on Scintilla Documentation[^] Scintilla.Net is a wraper of Scintilla, a c++ rich text control with sintax highliting etc.
What exactly do you do, just before your VS crashes?
|
|
|
|
|
Nevermind, im not going to use it, too complicated for me.
Ill just stick to a richtextbox.
If i just could find a way to get the last line of that constantly updating textbox, i may just get it to work.
Syntax highlighting using regex isn't the problem, i know how to do it.
http://www.themightyatom.nl
|
|
|
|
|
To get the last line, search backwards to the first cr/lf and you got your line. Find info here[^]
Good luck: Didi
|
|
|
|
|
Hi,
This is Alokesh,I am unable to insert any kind of image in menubar control in VB.net. Please tell how can I do it? Your quick response will be earnestly solicited.
With Thanks and regards,
Alokesh
DBS, Chennai
|
|
|
|
|
Hi, This is E.T.
Use the image property and select the file you want to use in the import box. Make sure the image you are trying to use is a supported format (which are listed int he Files of type combo).
Cheers!
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
But there is no image property for menubar control
|
|
|
|
|
The MenuBar itself can't have an image, unless you take over all drawing of the control and supply th ability to have an image. Warning! That is NOT a simple topic.
|
|
|
|
|
try googling for a menu control, that can do, what you want...
Good luck: Didi
|
|
|
|
|
And why are you telling me this?? Reply to the orignal poster. That way, he gets an email that you replied to HIS message. Replying to some elses message only sends the notification email to the one person you replied to, not the OP.
|
|
|
|
|
Sorry, I didn't realized that.
|
|
|
|
|
Hi,
Should i take care of both the variables which are consuming the memory on heap/stack, while releasing the memory in finally? Or just heap variables are enough to be released?
dim d as integer=0
Dim f As DataGridView=nothing
try
d = 10
f=new datagridview
catch(byval ex as exception)
finally
d=nothing
f=nothig
end try
|
|
|
|
|
Both of the members will be released and disposed when their references go out of scope. However from the code that you have shown there would be no harm in doing as you have done.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Henry Minute wrote: Both of the members will be released and disposed when their references go out of scope
Then why should i dispose the objects in finally?
|
|
|
|
|
It depends on what the objects are.
For example, it is recommended that Graphics instances, Pens, Brushes etc. are disposed as soon as they are no longer needed, becuase you cannot know how long it will take for the Garbage Collector to do its work. In addition any unmanaged objects should be disposed in this way.
It does no harm to manually dispose objects, it is just that it is not always necessary.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
|
I know the managed code and unmanaged code.
But can u tell me any link that tell about the managed object and unmanaged objects.
|
|
|
|
|
Try this[^] for some info about unmanaged objects (resources).
For information about both, try googling managed v unmanaged objects or managed and unmanaged objects. There are so many hits that it is difficult to pick one for you. Have a look for yourself.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I m using Visual Basic 6
How can i export data report in VB 6 to pdf format
|
|
|
|
|
You can use Crystal Report to export data.
If you can think then I Can.
|
|
|
|
|
You could use any reporting tool, that can write PDF
Didi
|
|
|
|