Keyth--
Thanks for the Code. I decided to do my columns this way, and it does load faster. I have found that for some Unknown reason when I set
dgv.DataSource = myDataTable
it binds the data twice. Weird.
Also, I figured out that my columns were being centered before, but it just didn't...
I am working with the DataGridView in VB.Net2005. I am having problems with the way that it loads and displays the data. I have added it to my form and set several properties at design time and runtime, however the column and row headers are not displaying properly when I set my datasource and...
Hi--
I am working on a project that uses VS2003. I have an MSFlexgrid control added to my form. I have set several properties at design time for the flexgrid so that when a cell is selected, the entire row is selected. However, when I run the program, and select one or many rows, nothing is...
Ron
Thanks for the reply, but I wasn't associating the sysTray Icon with a form, so I couldn't do it quite like that. I had added the disposing of the Icon to an overloaded Dispose event on my custom ApplicationContext class, but it wasn't being correctly called, so I just moved it so that it...
I have an app that uses a systray icon. When I exit the app, I notice that my icon is still in the systray. If I go to mouse over it, it disappears, so I know that it is actually gone. How can I force the systray to redraw so that the icon is no longer is visible?
thanks,
mHos
I am using a com object that was created using vb 6. It returns an IPictureDisp object. I need to get the Image from that object. I cannot just use the Microsoft.VisualBasic.Compatibility runtime because in the Visual Studio 2003 it is not allowed to be added as a reference.
I found that if I...
If your .jpg is an embedded resource then you should just be able to do ( should work for icons too)
sourceBitmap = new Bitmap(me.getType(), "title.jpg")
you need to make sure that the title.jpg is spelled exactly correct or else it won't find it.
if it isn't an embedded resourc...
I figured this one out too.
I feel really dumb. It was something really simple. I was trying to access the paint function for the panel. This never gets drawn on, it is covered all of the time by the picturebox.
I needed to use the paint function on the Picturebox. Then when I would scroll it...
You also have to do a .dispose on the picture box.
ie.
pbox1.image.dispose()
then that should release the reference to the object that is holding it up and allow you to delete it.
I am creating a legend in a picture box that is set inside of a panel. I have done this so that I can resize the picture box to whatever size I want and when it gets larger than the panel, scroll bars will automatically appear and handle the scrolling for me. This works wonderfully.
My...
I figured it out. I move those two calls to a pre-Load function, and that is why it was having problems.
I found that if I did everything else in a pre-load function, and then just did those two calls in the load function, that it worked.
I am having trouble with the listView in VB.NET. This seemed to be working the other day, and now it isn't. Now I get an error -> it tells my that my index is out of bounds of the collection or array size (or something like that).
DETAILS:
I have a listview in report mode. I have added my...
I also am doing this and was having a problem. After I was done with the picture i did this, and it allowed it.
picturebox.image = nothing
picturebox.image.dispose()
Kill(filname)
This worked for me, hope it helps
I am using pictures that are embedded into a database. I can create the files, and load the picture into the picturebox. My problem arises that after I am done using the picture, I need to kill the temporary file, but I keep getting an error saying that I can't access that file because it is in...
if the image is embedded in the database it is probably binary. You have to create a temp binary file from the data read in from the database, then you load that into the image in your picture box.
hope that that gives you some ideas.
icca--
thanks for letting me know that I'm not the only one. I'll keep trying to get it to work. Right now, debug.writeline will have to become my best friend!!
I have it set through the configuration to start and external .exe on startup that my dll links into. I have multiple forms in this dll and the breakpoints work correctly everytime in all the other forms, but not in this one. I have even tried creating a new form and copying my code over, but...
I am creating a VB.NET dll. I have created a form and set several breakpoints. It will stop at some of the breakpoints, and not at others.
I have checked that debugging is enabled, several times i've deleted the entire \bin folder, forcing it to recreate itself, restarted my machine, etc. And...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.