|
I'm glad you solved your problem ( not sure that I helped, b/c I really didn't understand exactly what the problem was ), but really, a good proportion of people post that their question is urgent, and the help you get here is free. You'll get help when someone decides to help you. People who are being paid will drop things they'd rather do, in order to get something done.
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 Add a Project from JAVA to J#.Net????
Hello
I have some projects in JAVA with some Dependencies, I want add all of the files without any loss of dependencies!
What can i do??
plz help me
|
|
|
|
|
What happens if you try?
The reason there's no J# forum is, no-one actually uses it
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 )
|
|
|
|
|
Well this is a very dumb question..
I have a windows form and a label..
Now during the execution of the program, the text that goes into the label is of more length than the form allows, so it hangs..
How to make a label multiline, so that it shows up in the next line in the form??
|
|
|
|
|
set AutoSize to true or use '\r\n' for new line
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
|
|
|
|
|
Hello,
You need to make sure that you’ve got new line characters in the string as shown below:
this.label1.Text = "Multi-line" + Environment.NewLine + "label";
Regards,
Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
Just make the property of textbox as follows.
TextMode="MultiLine"
Naina
|
|
|
|
|
My problem is as follows. The program works by creating new dataTable from a schema that the user has specified. once the person creates the table they fill it out, and hit the save command. The dataset is then saved to the sample object and serialized for later use. The problem occurs after the file is reloaded to edit. The previous data saved correctly and is displated on the datagrid. However if i change the data and then hit the save command again, it does not appear to save. Upon closing and reopening of the file, the dataSet looks as the origonal. Please help me. thanks,
public Sample sample;
public void sampleToEdit( Sample s, string path )
{
dataGrid1.DataSource = s.sampleData;
dataGrid1.DataMember = "sample";
sample = s;
}
private void saveCmd_Click(object sender, System.EventArgs e)
{
if ( isNewSample )
{
// this code runs when sample is created
Container sampleContainer = getContainer( templateDir + "sampleContainer.dat" );
string filename = sampleDir + uniqueCode + ".smp";
sampleContainer.container.Add(filename);
setContainer(sampleContainer, templateDir + "sampleContainer.dat" );
sample.sampleData = dataGrid1.DataSource as DataSet;
storeSample( sample, filename );
}
else
{
// this code runs when someone opens table to edit
string filename = sampleDir + uniqueCode + ".smp";
sample.sampleData = dataGrid1.DataSource as DataSet;
sample.sampleData.AcceptChanges();
storeSample( sample, filename );
}
}
|
|
|
|
|
And, what happens when you step through it in the debugger ?
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 )
|
|
|
|
|
The variable "filename" is a concatenated result of 3 items. In that what is the value of "uniqueCode" ?. Is it gives the same value in two cases?
What I want to know is whether you are specifying the same filename?
|
|
|
|
|
Hi,
I'm looking for a way for my C# app to determine at runtime whether it is running on a 32 bit or a 64 bit system, but haven't found anything so far. Does anyone know?
The reason I'm looking for this is that my app is very memory intensive and will use as much memory as it can. I've figured out how to check how much memory the system has, but on a 32 bit system an app can't go over the 2 gig per-process limit. Therefore, after determining the total physical memory, I would like my app to notice if it's on a 32 bit system and therefore know that it must limit how much memory it uses, even if a large amount of memory is reported. On a 64 bit system it will know it can use as much as it wants.
Thanks in advance for any help!
|
|
|
|
|
IMO if your app needs 2GB or more of memory you need to consider a different design.
only two letters away from being an asset
|
|
|
|
|
My app works on large pieces of data. It can have more or less loaded into memory at once, but will function more quickly the more that it can keep loaded at once. That is why I'm looking for a way to determine how much memory can be used.
|
|
|
|
|
Hello,
Perform an IntPtr.Size (static method). IntPtr is designed to be an integer whose size is platform specific, it will be 8 if you are on a 64-bit machine and 4 if you are on a 32-bit machine.
Regards,
Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
That worked like a charm! Thank you very much!
|
|
|
|
|
You can also do this using WMI. See this[^] MSDN link and the Win32_Processor example on this[^] page.
/ravi
|
|
|
|
|
Thank you for the tip. Unfortunately I avoid WMI since it requires admin priveleges to use.
|
|
|
|
|
hai,
when i register my details how to create folder in my name .
if u know the code replay to me.
|
|
|
|
|
System.IO.Directory.CreateDirectory
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 )
|
|
|
|
|
Like this
System.IO.Directory.CreateDirectory(@"C:\New Folder");
|
|
|
|
|
I have RichTextBox control. I want to save the text in a stack for Undo operation each time user changes/updates the Text.
I dont to want to use TextBox Base Undo functionality bec i have other controls whose state also would be saved in the same stack.
If i use TextChanged event it occurs on each character typed. I dont want this. I also tried using RichTextBox.Leave event but this works only if control leaves the TextBox.
I want to save the Text in the stack on following scenarios
1. User selects already typed text and changes it
2. User deletes the Text and types again etc
Basically it should work like how the Undo works in Ms Word when you type in some text.
Your suggestion is really appreciated. Please help
|
|
|
|
|
Hi Everybody,
I have a problem flow:
I have a datagrid. When my cursor on cell[0,0],after fill data in, if I press enter, cell [1,0]and cell[2,0] auto fill data(data defend on myshelf) and the cursor jump to cell [3,0](cell haven't data),then I press enter it jump to cell that haven't data auto fill next.But if I press shift+enter the cursor jump to cell that haven't data auto fill front.
That mean I want to control key enter(key enter change for key tab) that my cursor just jump to cell haven't got data.
Please help me!
Thank you a lot,
|
|
|
|
|
I guess you need to handle the keypress event, iterate over cells and set the focus to the next empty one
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 can't control complex key(example shift+enter the cursor jump back to empty cell).
thank!
|
|
|
|
|
Why not ? Where are you stuck ? The key press event has properties that will tell you if shift is down
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 )
|
|
|
|