I figured it out... It was about 12:30 am when I posted my question and I will use the lateness of that as an excuse The answer? I have my listbox contained by a panel... The panel was expanded the entire top of the app (eg. under the title bar) so guess what when I set the docking on the listbox to fill... Yep it cut off the top line of my files... Do I ever feel dumb now
I want to ignore the mouse click event means whenever the event fired it just get ignored (nothing happen). For example I have a TextBox but when I click on it nothing happen, it just ignores the click event. I don't want to use the Enabled property cause it changes its apperance.
I agree what u said and I tried the way you suggest it works great. But there is a problem it can be a expensive call, cause it goes in WndProc all the time cause events are firing all the time. Is there another way, like just detach that attached event. I will be really thankful to you.
Thanks to those who answered earlier. I have two combo boxes which show the databases and tables in my DB. When I change the table combo, the DG shows the tables contents. The code now looks like this:
The call to Clear() stops my grid from having the old data in it, but the old columns are still there - how do I delte them ?
The call to Expand(-1) expands the + button in the datagrid so I see the word 'table', but I still need to click on this word to show the table. I just want the table to be shown and to remain visible, can I do that programatically ?
This datagrid looks cool, but right now I am overwhelmed by the number of methods it has, and it's not covered in the Petzold book
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
Christian Graus wrote: As per usual, it's a case of ask and ye shall work it out yourself.
You say this after about 10 minutes?
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
If there are 2 window applications(if run the exe file, it will pop up a window UI, and input the parameters there). The first one is to do the file format convertion of A to B, and the second application is to do the file format convertion of B to C. Now I want to write a Console application in C# which will call these 2 applications to do the job of converting A to C. Anybody knows how to do it? Thanks!
The following code snippet:
/// ADO.NET data access using the SQL Server Managed Provider.
public class Database : IDisposable
public int RunProc(string procName)
private SqlCommand CreateCommand(string procName, SqlParameter prams)
private void Open()
public void close()
I want to know why he use this.close(),but not this.open();
Or open(),but not close()?
Does it relate to public or private define?
I am not using "this" pointer much.
So please give me some guiding or introduce me some online resources.
this is my signature for forums quoted from shog*9: I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.
Need a function that will return certain system information into a text box.
Logged into Domain (Yes or No) If Yes then the Domain Name
Logged into Workgroup (Yes or No) If Yes then the Workgroup Name
Any Service packs installed?
Listing of Mapped Drives