|
Christian Graus wrote: Does it not get invited to parties ?
Don't be flippant CG. It looks like an urgent question to me.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
*grin* He did say 'urgent', so I guess it must be.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
How I can Make my program read or write to the USB.
|
|
|
|
|
What exactly do you want to do ? To talk to a device on USB, you need a driver for that device, then you'd code to a common interface, such as the print or TWAIN interface. To copy files, you can work out which drives are detachable, although you can't work out for sure that they are USB.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Yes I wnt to talk to a device connected to USB.
I am designing it(radio scanner) .
So the question how to make a driver.
For more specific.How to write assembly cod eto the driver using C# instructions
|
|
|
|
|
You can't write a device driver in C#, AFAIK. You need to use C or C++.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
How can i list (Web Application List) of share point in remote server by using share point web service or without using webservice
|
|
|
|
|
Hi
I have a custom browsable property and I want it show a column's fields from a database as it's values so the user can select them. indeed i want some thing like a property whit "enum" type but I don't want to define an enum because enums have fixed members and I want to be able to change my property's selectable values.
thanks for any help.
|
|
|
|
|
You want the values to show in the designer ? But that means anyone who uses your class needs to have your database installed. If you're the only one who is going to use the property, bite the bullet and maintain an enum.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I know it is not an optimal way but it seems the only way because I'm not the only one who is going to use this property and I thought it's better that others who want to use it, install the database than every time changing the control which this property belongs to, so would you please offer a better way if there is any?
|
|
|
|
|
Hi,
can't you teach your control's property to have a basic set of possible values,
which can be extended through external means, such as:
a) a file (XML)
b) a database (if you really must)
So new values become available when a new XML file get distributed, or an
updated database becomes accessible, but you never have to update the Control itself.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
So I want to do the same but the problem is that I don't know how to display the data from database(or XML file as you told)for my property in property window in "Design Mode" so the user could select one of it's values which comes from database.
thanks
|
|
|
|
|
I haven't done any of this myself but AFAIK constructors and event handlers get
executed when in Design Mode too, so with the right code you should be able to
populate things.
If you don't know how to do it directly from file/database to property, split the
problem in two halfs: from file/database to list or StringCollection, then from there
to othe property.
BTW that's a general trick: if a problem seems unsurmountable, split it in a few
smaller problems... It often works, but there are no guarantees.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
hi
i want to use process that execute an msp project in my code
when i run code some times the process is null and cant run process.waitforexit
but sometimes the process is not null and execute successfull
please tell the reason
thanks a lot
|
|
|
|
|
|
|
Hi everybody!
I have an Excel file and i want to select from the file just some rows.
I can select the whole file in the following way:
private static DataTable GetDataFromXLS(string strFilePath)
{
string strConn;
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" +"Data Source="+strFilePath+"; Jet OLEDB:Engine Type=5;" + "Extended Properties=Excel 8.0;";
OleDbDataAdapter myCommand = new OleDbDataAdapter("SELECT * FROM [Sheet1$]", strConn);
DataSet myDataSet = new DataSet();
myCommand.Fill(myDataSet, "ExcelInfo");
DataTable dt = myDataSet.Tables[0];
return dt;
}
But i don't need the whole excel file just a few rows. How can i do this from the query?
It is possibile to do this with a query?
Thanks for your help!
|
|
|
|
|
Hi
I have to text box txtbox1 is for name and txtbox2 for contact number.
when i enter name only the character keys are enabled.
Also when i enter contact number only the key from 0 to 9 is enabled.
how do i write code.
its ery urgent.
|
|
|
|
|
dnyanubhamare wrote: its ery urgent.
It's amazing how many people have' very urgent' questions, but can't be bothered typing them in to google.
Handle the KeyPressed event. The Char class has static methods like IsChar and IsControl, use these to work out if you set the HAndled property on the eventargs to true, to reject the keypress. Don't forget IsControl, or arrows, delete, etc won't work in your textbox.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Guy
very easy man
when you press key , just check ur keypressEventArhs e value.
e.keycode==47----->57
same like other character ascii value also.
there a lot of example in google.
thanks
|
|
|
|
|
for only numbers
if(!char.IsNumber(e.KeyChar) & !char.IsControl(e.KeyChar))
e.Handled = true;
for only chars
if(!char.IsLetter(e.KeyChar) & !char.IsControl(e.KeyChar))
e.Handled = true;
hope it will help
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
But you should also always check Char.IsControl, otherwise keys like delete will not work.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
thanks, i forgot
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
NEVER EVER do this. The Char.IsDigit, etc methods are there for a reason.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|