|
Hello,
I think what you are looking for is reflection!
Have a look at the GetType and GetProperty methods.
All the best,
Martin
|
|
|
|
|
Martin thanks for the lead. will try it out and post the progress
|
|
|
|
|
i think either you are a little confused or i am not getting properly.
you can put check on fetched data it would be kind fo Hard Coding
but i dont think you have any other way to do it
if you have any idea then please let me know . for bettr help please paste a piece of your code
|
|
|
|
|
is there a dll file for audio recording from microphone
|
|
|
|
|
Hello gurus,
I'd like to know how can see if my application already runs or not?
Only 1 instance of my application can run.
How to do that?
Best regards.
Fred.
There is no spoon.
|
|
|
|
|
Hi
You could use this method:
Use the following code on you load or main method
if (PrevInstance())<br />
{<br />
MessageBox.Show("The program is already running");<br />
Application.Exit();<br />
}
This is the method called from your main code
private static bool PrevInstance()<br />
{<br />
if (Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName).Length > 1)<br />
{<br />
return true;<br />
}<br />
return false;<br />
}
Hope this helps.
|
|
|
|
|
Hello,
Never forget to dispose the instances of the processes.
All the best,
Martin
|
|
|
|
|
ok, it works.
And how can I Activate the main window of the already running application???
Fred.
There is no spoon.
|
|
|
|
|
|
ok!!
I see how to do that
Thanks for the help guys
There is no spoon.
|
|
|
|
|
|
i want when click any control on the form
i have messagebox that contain
control name
control location
control tabindex
ma_refay
|
|
|
|
|
Hello,
Like this:
foreach(Control c in this.Controls)
{
c.Click+=new EventHandler(c_Click);
}
private void c_Click(object sender, EventArgs e)
{
Control c = sender as Control;
if(c!=null)
{
c.Name;
c.Location;
c.TabIndex;
}
}
Hope it helps!
All the best,
Martin
|
|
|
|
|
hi guys !
i have a c# class, which has function GetMessage(args) which returns string value.
now i want to call this function from javascript.
i am trying it through ajax but not getting it done yet.
can i get some tutorial links where i can find some stuff?
or any help it welcomed.
thanks
|
|
|
|
|
Which Ajax implementation are you using? It's pointless me sending you to a tutorial link on AjaxPro if you are using Atlas.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
How can i retrieve a file from the computer my program is on? let's say the program creates a text file and i want it to send the file to me, how can i do it?
I know there are lots of ways, but I'd like to get all kinds of suggestions, for my program and just for general knowledge...so...how do I do it then?
|
|
|
|
|
There ARE a lot of ways, but you're probably going to want something network-based. You could:
- Have the program create/copy the file to a shared folder on "your" computer.
- Have it upload the file to an e.g. HTTP server running on your computer.
- Have it send the contents via some other network protocol.
- Have it e-mail the file to you.
- Have it NET SEND the contents to you.
- Have it post the contents to an online website.
- (Assuming both computers are within reasonable distance but are NOT networked) have it copy the file to a floppy/flash disk, then hand it off to a robot that will bring it to you, insert the disk, and copy the file back to your computer.
These are just some random (and somewhat ludicrous!) methods, but you get the idea. Cheers. ^_^
P.S. I would personally try them in about the order they are listed. Actually, I wouldn't even try the last one.
A little learning is a dangerous thing;
Drink deep, or taste not, the Pierian Spring.
—Alexander Pope
|
|
|
|
|
well, obviously email is the best way, but i couldn't find any ways of doing it (there has to be a mail server configured in the computer...its annoying)
|
|
|
|
|
From what I know of SMTP (admittedly not much) you don't need to set up a server, you just have to know how to communicate with the receiver's e-mail provider. But whichever method you choose, just make sure it fits the situation.
A little learning is a dangerous thing;
Drink deep, or taste not, the Pierian Spring.
—Alexander Pope
|
|
|
|
|
i am posting a xml string to "http://www.axeria-iard.fr/Sitetest/extranet/pushxml/receiver.asp" through my aspx page , when i tried to read the response , it shows an error . The same is fine through a asp or html page .
The XML string is
string req = "";
req = req + "<devisauto>";
req = req + "<mode>TAR";
req = req + "<cp>38300";
req = req + "<dpmc>01/01/2005";
req = req + "<sexe>MA";
req = req + "<csp>6";
req = req + "<dnais>01/01/1960";
req = req + "<dperm>01/09/1980";
req = req + "<usag>2";
req = req + "<gta>RE51013";
req = req + "<bonus>0.72";
req = req + "C";
req = req + "<tgar>BC";
req = req + "<cexl>O";
req = req + "<muldet>N";
req = req + "<nbenf>1";
req = req + "<plaobj>0";
req = req + "<plaacc>0";
req = req + "";
xmlString.Text = req;
string msgBody = Server.UrlEncode("xmlString=" + xmlString.Text);
xmlString is a textbox
i am sending the string msgBody in the URL
Please suggest me .
|
|
|
|
|
hi,
I read that IEnumerator and IEnumerable interfaces
are used for foreach statements,
but I can use foreach statments anyway, so
what is the role of those interfaces?
it is to change the inside behavior of
foreach statements?
thanks
|
|
|
|
|
groundzero111 wrote: I read that IEnumerator and IEnumerable interfaces
are used for foreach statements,
but I can use foreach statments anyway
No, you can't. If the collection that you want to loop doesn't implement IEnumerable, you can't put it in a foreach loop.
groundzero111 wrote: it is to change the inside behavior of
foreach statements?
No, it's to enable the entire foreach construct.
---
single minded; short sighted; long gone;
|
|
|
|
|
sylvesterg wrote: Score it if you like my post
What is it with people doing this?
|
|
|
|
|
Well, it makes me want to give it a score of 1.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Pete O`Hanlon wrote: Well, it makes me want to give it a score of 1
Ditto. And if you look at his history, you'll see that people have done that in the past. He's even followed up on one occasion and asked "What no score?" To which a number of people then voted him down. You'd have thought he would learn.
|
|
|
|