|
hi
frm2.txt1.text = me.txt_name.text
or
frm2.txt1.text = txt_name.text
Equivalent code in Csharp.'s Notes? , When both forms are open. And the need to re-form 2 is not displaying
Thank you very much
|
|
|
|
|
mostafa hamzeh wrote: frm2.txt1.text = txt_name.text
Assuming this code is within the class that has txt_name as a member, then this is correct.
mostafa hamzeh wrote: And the need to re-form 2 is not displaying
I am not sure what you mean here.txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Richard MacCutchan wrote: Assuming this code is within the class that has txt_name as a member, then this is correct.
missing a little ; aren't we?
|
|
|
|
|
EliottA wrote: missing a little ; aren't we?
Are you? I'm more than happy.txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Erm, I mean't in C# statements are terminated with a semicolon, which was missing in the converted line of code...
sorry for the confusion.
|
|
|
|
|
No confusion, I forgot the icon. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Hi ppl,
I have a datagridview(dgv) on my winform with editable rows. The dgv is not bound to any datasource. I want to programatically capture the data inserted into these rows and store it to the database table. How to do this?
Pls suggest .
Thanks,
|
|
|
|
|
You can get the DataGridViewRow of the datagridview and get the data from the cells of the row...
Hope that helps...Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
modified on Tuesday, February 23, 2010 7:43 AM
|
|
|
|
|
could show me a snippet please.
|
|
|
|
|
Hi,
I am getting this error There is an error in XML document (1, 2) When i Deserialize following Xml.
<EnvironmentConfigurations>
<EnvironmentConfiguration>
<EnvironmentName>ABC</EnvironmentName>
<CMSConfiguration>
<Address>net.tcp://localhost:9000/Manager</Address>
<Binding>netTcpBinding</Binding>
<Contract>Common.Interfaces.Server</Contract>
</CMSConfiguration>
</EnvironmentConfiguration>
<EnvironmentConfiguration>
<EnvironmentName>XYZ</EnvironmentName>
<CMSConfiguration>
<Address>net.tcp://localhost:9000/Manager</Address>
<Binding>netTcpBinding</Binding>
<Contract>Common.Interfaces.Server</Contract>
</CMSConfiguration>
</EnvironmentConfiguration>
</EnvironmentConfigurations>
|
|
|
|
|
The exception you are receiving has an InnerException property, it should tell you what the problem is.
|
|
|
|
|
The first line should be something like
<?xml version="1.0" encoding="utf-8" ?>
The second character of the first line must be a question mark, and that's the position shown in the error message.
Obvioulsy, you've somehow lost your first line.
|
|
|
|
|
hii everyone,
Iam working on TabletPC handwriting synthesis
iam using MICROSOFT.INK SDK
i want to erase specific portion of the ink dynamically
example : i write CAR using my handwriting , I want to erase the alphabet C,R and want to get specific portion of A only
please help me out , how can i erase defined specific portion dynamically without using INK ERASEMODE/DELETE MODE functionality (of stroke selection first den use erase mode), I dont want to do it manually after selection and den usong delete mode
I want to do it Programatically
please help me out
with regards
Amit
|
|
|
|
|
Hi All,
Can any one say about " predicate delegate " in c#....
Please suggest me good example.Ramkumar
("When you build bridges you can keep crossing them. ")
http://ramkumarishere.blogspot.com
|
|
|
|
|
|
Kevin
|
|
|
|
|
Hi all,
I have one text file. now i want to check who has taken the handle of the text file.
How can i find the exe in C#?
Reply ASAP.
Thanking You,
Sunil G.modified on Tuesday, February 23, 2010 2:10 AM
|
|
|
|
|
To retrieve a list of running processes use: System.Diagnostics.Process.GetProcesses() which returns an array av Process objects.
|
|
|
|
|
with this System.Diagnostics.Process.GetProcesses() i get all the running processes.
but i want the process name who has taken the handle of particular text file.
As in input parameter i will give textfile name and want the process who has taken the handle of the textfile.modified on Tuesday, February 23, 2010 3:35 AM
|
|
|
|
|
Do you have the name of the text file and you want to retrieve the process which has the handle to that file? Could you please elaborate more?
|
|
|
|
|
Yes you r on the track.
I have the name of the text file and I want to retrieve the process which has the handle to that file..
If you want more explanation, i will explain the whole case.
Thanking You,
Sunil G.modified on Tuesday, February 23, 2010 3:46 AM
|
|
|
|
|
I'm sorry Sunil - don't know how to achieve that. Hope someone else can help, and I'l make a post if I have a sudden stroke of genious.. Good luck anyway!
|
|
|
|
|
Hi
Check this out it might help you..i hav'nt tried it but looks like this is what you are looking for..
fpound this solution while going thrw some blog
posted by :-Gennady Zabrodsky
It is very complex way to invoke Win32 from C#.
You should use tool Handle.exe from http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx
After that your C# code have to be the following:
string fileName = @"c:\aaa.doc";//Path to locked file
Process tool = new Process();
tool.StartInfo.FileName = "handle.exe";
tool.StartInfo.Arguments = fileName;
tool.StartInfo.UseShellExecute = false;
tool.StartInfo.RedirectStandardOutput = true;
tool.Start();
tool.WaitForExit();
string outputTool = tool.StandardOutput.ReadToEnd();
string matchPattern = @"(?<=\s+pid:\s+)\b(\d+)\b(?=\s+)";
foreach(Match match in Regex.Matches(outputTool, matchPattern))
{
Process.GetProcessById(int.Parse(match.Value)).Kill();
}
|
|
|
|
|
|