|
i want to convert button style to appear as circle
or
drawing circle on the form and event these circles
ma_refay
|
|
|
|
|
have to create customised buttons with two images one is for up and another one is for down.
when the user clicks the image need to show the down image.
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
hi
can anyone give me a sample application to create delegate in C#?
|
|
|
|
|
MSDN delegates tutorial[^]
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
I have created Button control programatically using
Button btn = new Button();
btn.ID = "btn1";
btn.Text = "Button 1";
Panel1.Controls.Add(btn);
i want to set the enable property for this button to be false.
how do i do it
vasu
|
|
|
|
|
|
sorry i have not given the full scenario.
what i want to do is fetch the property and its value from database.
how do i say [ctrl].[property] = [value]
|
|
|
|
|
sorry i have not given the full scenario.
what i want to do is fetch the property and its value from database.
how do i say [ctrl].[property] = [value]
vasu
|
|
|
|
|
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
|
|
|
|