|
Hi,
I want to create a folder
and within that folder I want to create C# (.cs) files through code.
Regards,
chanzeb chaudhary.
|
|
|
|
|
chanzeb wrote: I want to create a folder
and within that folder I want to create C# (.cs)
Directory.Create()
|
|
|
|
|
Namespace: System.IO
Method: Directory.Create()
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
hi,
is it possible to set font or diffrent style for popup
message box in c# windows application.
amit
|
|
|
|
|
No, you need to write your own form
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 for this.
but i want to set Style for header also.so if you have any suggestion regarding this.please reply.
amit
|
|
|
|
|
How to implement the data that is read from RFID tag into our C#.net application?what is the system code for this purpose?
|
|
|
|
|
|
No matter what games I play with its properties, ToolstripLabel doesn't seem to want to display its .Text unless the control is wide enough to accomodate the entire string.
It's probably me, but I'm hungry, tired and cold (serve me right for moving north) and only have the turkey feasted CP community to turn to. A nudge in the right direction ("south" is not a good answer) would be much appreciated.
Thanks,
/ravi
|
|
|
|
|
Are you trying to set the .Text from Code or Designer? I think the width of ToolstripLabel automatically increased depend on your text..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
I'm setting its text from code. The control's width can be dynamic or fixed depending on its AutoSize property. However, its width is upper bounded by the parent toolstrip's width. All this makes sense.
What doesn't make sense (to me) is why the control isn't able to render the portion of the text that lies within the control's current width, like a vanilla Label control.
/ravi
|
|
|
|
|
Wouldn't it support a dynamic width? Of course, I admit, that we should not get deeper into its internals making our code spagetti. But just trying to ensure that we don't leave any stones unturned.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Vasudevan Deepak Kumar wrote: Wouldn't it support a dynamic width?
Yes, it does. The problem is no text gets rendered unless it completely fits within the control's current width. Unlike a vanilla Label which will render a portion of the text.
/ravi
|
|
|
|
|
hi ,
can any one help me to get the code for displaying all the country names and their cities in c#.net
regards
ram
|
|
|
|
|
You may check this link to know about how to bind the data with DropdownList.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
|
|
As a guess, i'd say the problem lies with retreiving the data from another class, especially if the data 'appears' to be loading. So how are you doing that?
My current favourite word is: PIE!
Good ol' pie, it's been a while.
|
|
|
|
|
I just checked to see if the data is there with the following:
//****************all fields below do not show data ***********************
//****************this is from another class ******************************
DataSet dsI = new DataSet("BSD");
DataSet1.BSDDataTable BSD = new DataSet1.BSDDataTable();
int nRecord = BSD[2].nRecNumID;
string strName = BSD[2].strName;
int nSIC = BSD[2].nSIC;
********* Below is the code for loading and is marked where I checked it after loading*******
nUseRecNumID = 0;
//BSD.BeginInit();
//BSD.BeginLoadData();
//BSD.Clear();
Rowset.MoveFirst();
while (!Rowset.IsEOF)
{
if (nUseRecNumID < (Int32)Rowset.GetData(1))
{
// These lines ensure all records are incremented by one and
// RecNumID equals record number.
DataSet1.BSDRow dr = BSD.NewBSDRow();
dr.nRecNumID = nUseRecNumID;
BSD.AddBSDRow(dr);
}
else
{
if (Rowset.GetData(1) != null) nUseRecNumID = (Int32)Rowset.GetData(1);
DataSet1.BSDRow dr = BSD.NewBSDRow();
if (Rowset.GetData(1) != null) dr.nRecNumID = (Int32)Rowset.GetData(1);
if (Rowset.GetData(2) != null) dr.strName = (String)Rowset.GetData(2);
if (Rowset.GetData(3) != null) dr.nSIC = (Int32)Rowset.GetData(3);
BSD.AddBSDRow(dr);
dr.AcceptChanges();
Rowset.MoveNext();
}
nUseRecNumID = nUseRecNumID + 1;
}
//BSD.EndLoadData();
BSD.AcceptChanges();
//dsI.Tables.Add(BSD); //add the table BSD into dataset
//***********************Reads data here****************************
//****************all fields below show data ***********************
int nRecord = BSD[2].nRecNumID;
string strName = BSD[2].strName;
int nSIC = BSD[2].nSIC;
//******************************************************************
-- modified at 0:41 Friday 23rd November, 2007
|
|
|
|
|
MAW30 wrote: I continue to get the folowing error "There is no row at position {X}",
What does the DataSet Visualizer of Visual Studio 2005 show during the debugging session?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
What is the DataSet Visualizer?
Michael
|
|
|
|
|
This is true you are facing problems....
But what is this..?
"I will give more detail in the email and notes about where the problem is it is a very small sample "
Do you want other will code for you...? This is not fare....
If you have many notes and suppose to send the code then why are you not posting here...?
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
I am not asking you to code anything for me, only to look it over so you may see everything. There is too much code to post it all, the notes are exactly what I ended up posting anyway. If you would like to look at it I will send you a copy.
Michael
|
|
|
|
|
I think their is a problem to passing the data between two classes.
Please ensure that you are returning the right dataset from your function and after filling it you won' using the new keyword.
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|