|
Hi,
I create a UserControl with some controls like Button, checkbox, picture, ...
I looking for RESIZING the UserControl.
I would like to keep the ASPECT RATIO of the UserControl.
How can I do it ?
Best Regards
youssef
|
|
|
|
|
|
Ok for the control.
What about the backgroung image ?
How can I resize it ?
Best Regards
youssef
|
|
|
|
|
Hi,
I have implemented the drag and drop functionality in my custom control...but i want to give the same visual appearance as Windows has given...like after picking a file or a control...a bitmap of itself is drawn with some transparency.... i wanted to know how to get the transparent image of the control selected at runtime???
can anybody help me?
Thanks and Regards,
Rajesh
|
|
|
|
|
How to change the background color in Window Form application?
thanks.
|
|
|
|
|
this.BackColor = Color.(Whatever).
|
|
|
|
|
Hi,
i need the program for list of Network and Dial up connection.
I tried to find out from registry when i connect thr dial up via modem , i did not get dial up name in registry how ever i am able to find the netwrok (Local area Network ) in registry.
Pls tell me how can i retrive the both Network and Dial up connection in Text box which is in Win Form
Wiating for the prompt reply
regards
sanjeev
|
|
|
|
|
Hi Man,
the only thing i kwow is through win API:
[DllImport("wininet.dll")]
private extern static bool
InternetGetConnectedState( out int Description,int ReservedValue ) ;
also go to this link http://msdn.microsoft.com/library/?url=/library/en-us/wininet/wininet/internetgetconnectedstate.asp
for more info on the API function.
Hope that helps
GanDad
|
|
|
|
|
i am trying to run a process through that code
Process.Start("myApllication.exe");
but the command prompet window opens while starting of the process
i want to delete this effect
how ?
thx all
|
|
|
|
|
Maby this will do:
Make an instance of process and change the standard input,output,error streams.
The PROgrammer Niklas Ulvinge aka IDK
|
|
|
|
|
You need to use the ProcessStartInfo object. It has a CreateNoWindow property to prevent the console window from appearing. Your code will look like
ProcessStartInfo processStartInfo = new ProcessStartInfo("myApplication.exe")'
processStartInfo.CreateNoWindows = true;
Process.Start(processStartInfo);
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
I need to create a toolbar like photoshop's one.
I did it, but if i select the main form it goes in second level so became unfocused.
How can i show both selected if i enable the main form or the toolbar and make them in second level if i enable another application?
Hope to have explain good.
Thanks in advance.
|
|
|
|
|
You can focus only on one form and/or one control.
|
|
|
|
|
yes but how does much softwares to do it?
I think i need to override some windows message, but i don't know what.
Do someone know how?
|
|
|
|
|
|
Is it a joke?
|
|
|
|
|
It Contains methods on invoking the windows api methods .
You say you want something like this .
|
|
|
|
|
i can see just a full pink page with an email hyperlink.
I guess you are an idiot.
|
|
|
|
|
I think he made a mistake, the real address is http://www.pinvoke.net[^] (not .com ).
And he's just trying to help because he wants. He (or anyone for that matter) is in no way forced to help. So please don't insult him because he made a little mistake.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
I assume your toolbar is a separate form. If yes try to set its Owner property to your main form (I think this must be done before showing the toolbar form but Im not sure in this point).
|
|
|
|
|
i've tried but it doesn't change the view.
|
|
|
|
|
Then please explain in more detail what you've done and what is not working.
I understood it like this:
You have a main form and another form which contains your own toolbar implementation. You want this toolbar form to fly always over the main form (also when the main form is clicked and normally would rise above everything else). If another app is clicked this one should come to front (well... the default behavior isnt it?).
This should work with the Owner property.
|
|
|
|
|
I have a windows application and in a form page are a datagrid and 2 labels.
I want to print them but I printed the label over the datagrid.
Can somebody to help me.
<<<<
private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
PaintEventArgs myPaintArgs = new PaintEventArgs(e.Graphics, new Rectangle(new Point(230, 0), this.Size));
this.InvokePaint(grdExpenseSheet, myPaintArgs);
myPaintArgs = new PaintEventArgs(e.Graphics, new Rectangle(new Point(500, 300), this.Size));
this.InvokePaint(lbTSEmployeeContent, myPaintArgs);
}
>>>>>
|
|
|
|
|
Hello Folks,
I really wonder to know and unfortunately could not find any answer:
Is it possible to make a single row read-write enabled in a Windows forms datagrid?
I have a read-only datagrid and want to make a single-row editable with a button click.Is this really difficult????
PLEASE HELP
|
|
|
|
|
You could make a func that only permits that...
I don't know the datagrid class...
The PROgrammer Niklas Ulvinge aka IDK
|
|
|
|