|
|
no probs
|
|
|
|
|
Hi,
I am guessing here but if the user uses the right mouse button the tab page would not be selected. You have to get the index of the clicked tab page.
Volker Weichert
|
|
|
|
|
Yes you are correct. This is actually the main problem I'm having, so ... how does one access the tabpage when the right mouse button was click?? How would one make use of the tab index, cause any tabpageb could be selected at any moment ....
Thanks for the response.
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
If you check out the link in my above post you'll see the SelectTab method takes an index.
|
|
|
|
|
|
You might want to try something like this in your event handler:
Point p;
if (e.Button == MouseButtons.Right)
p = new Point(e.X, e.Y);
for (int i = 0; i < tabControl1.TabCount; i++)
{
if (tabControl1.GetTabRect(i).Contains(p))
tabControl1.SelectTab(i);
}
}
Volker Weichert
|
|
|
|
|
|
I need to read a value at a specific address on an SD Card how can I do that?
any Ideas?
BiG RaLpH
modified on Friday, January 04, 2008 8:37:12 AM
|
|
|
|
|
Please don't cross post the same question in multiple forums. It makes collaborating on an answer quite difficult.
|
|
|
|
|
Take a look through the source code to frhed[^]. One of the versions (can't remember if it's the beta or not) allows for direct-drive access, the code is in C++ but it's not too difficult to convert to C# if you have some experience from calling Win32 APIs.
|
|
|
|
|
Hi,
I setting pictureBox.image = Image.FromFile("eweew.bmp");
This works file, but at times I want no picture to be displayed.
How do I set pictureBox.image to no value or default?
Thanks in advance.
Rapier
|
|
|
|
|
Try setting it to null.
Edited:
Don't forget to dispose the image before clearing it.
modified on Friday, January 04, 2008 7:55:36 AM
|
|
|
|
|
Giorgi Dalakishvili wrote: Try setting it to null
will it throw an exception?
|
|
|
|
|
|
null works thank! I actually thought I had tried that.
Rapier
|
|
|
|
|
Great! Make sure you dispose the image if you don't want to have memory leaks.
|
|
|
|
|
hi there,
i developed a program, but i want the output should be in dll, so that i can add it while developing another program (like controls)
how can i do?
thanks
Becoming Programmer...
|
|
|
|
|
When creating new project choose Class Library type. By the way, you have posted your question in a wrong forum.
|
|
|
|
|
oh i got it, just change output type, thanks buddy,
and i didnt know where to post that question, since i was using C# so i post here
Becoming Programmer...
|
|
|
|
|
Hi
I'm trying to read a csv file into a dataset using the Microsoft Text Driver.
The problem is that the data always gets truncated to 255 characters while all columns can contain up to 700 characters.
The schema.ini file is the following:
<br />
[test.csv]<br />
ColNameHeader=true<br />
Format=Delimited(;)<br />
MaxScanRows=0<br />
CharacterSet=ANSI<br />
COL1" Char Width 700 "<br />
COL2" Char Width 700 "<br />
COL3" Char Width 700 "<br />
COL4" Char Width 700 "<br />
I've tried different datatypes: Memo, Text, LongChar (both with and without the Width specified) and also tried using the OLEDB Jet Driver, but the problem remained.
Any help would be appreciated.
Thanks,
Kristof
|
|
|
|
|
I am almost certain you have already considered this, but the clear way of getting this working would be to parse the .csv file yourself. Csv files are incredibly easy to parse, so this should not be a problem. Sorry that I don't know the easy/correct way to do this.
Sounds like somebody's got a case of the Mondays
-Jeff
|
|
|
|
|
The problem is that Char fields (Char if using the ODBC Text Driver, or Text type if other) are limited to 255 characters, period, end of story. You have to char this to Memo if your field is wider than 255 characters.
On top of that, the format for each of those Coln lines is Coln=columnName type [Width n] . Width is optional. So, you're file would should look something like this:
[test.csv]
ColNameHeader=True
Format=Delimited(;)
MaxScanRows=0
CharacterSet=ANSI
Col1=someColumnName Memo Width 700
Col2=someOtherColumnName Memo Width 700
Col3="some columnName with spaces" Memo Width 700
Col4="some other Colum with spaces" Memo Width 700
|
|
|
|
|
Is it possible to add a reference to a webservice programmatically in a
Windows Form application?
Basically I am looking to provide a list of URLs to the WinForm client which would then add the WebReference, do the discovery, and call a WebMethod.
Any insight would be appreciated.
thanks in advance...
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
The Web References functionality is actually a part of Visual Studio and it generates the classes you use at design time.
To replicate this functionality in your app would mean you making a code generator to make similar classes at runtime.
|
|
|
|