|
Hi,
I have a UserControl that contans an image and CAN also contan text ( using DrawString()).
I have a panel that has several of these UserControls that I can move around with a mouse ( using drag-drop).
What I would like to do, however, would be to be able to rotate the UserControl : ie: left 30 degrees or right 30 degrees or even upside-down.
I see various tools using Graphics/Matrix to be able to do that within a window, but I still end up with a regular square with an image in it.
My user control is basically a button and I would like to show the button at a 30 degree angle or upside down based on other logic.
Thanks
Gary
Just for the fun of it !
|
|
|
|
|
Sounds like you're working on a fun app! Unfortunately there is no support in WinForms (or Win32 for that matter) for rotating controls. The best you could do is display images instead of the Button (user control). Since bitmaps can be rotated, you could probably, with lots of effort, make it look and feel pretty cool using images.
If you have the option, I'd say develop this app using WPF. WPF has huge support for transforms, animations, and all types of visually exciting effects. I've been studying it now for about a month and am more and more amazed by it every day!!
Josh
|
|
|
|
|
I want to run an Office Communicator inside a User Control. I do not want it to open as a new window, but instead inside my panel. This is the code I have tried:
Process comm = new Process();
comm.StartInfo.CreateNoWindow = true;
comm.StartInfo.FileName = @"C:\Program Files\Microsoft Office Communicator\communicator.exe";
comm.Start();
The problem is that the Communicator is opened, but not inside my User Control. Does someone know how to solve this problem?
|
|
|
|
|
What you are trying to do is wrong, this is conceptuelly wrong.
Try to do the communicator as an embed control to your application,
HZ
|
|
|
|
|
|
How to set endtime time to playing audio file ...
|
|
|
|
|
Hello all,
I have to develop one application in which i can capture all packet passing thru my NIC. If u want more idea about this then see ethereal[^].
Divyang Mithaiwala
|
|
|
|
|
Search in codeproject.com using a keyword "packet capture".
You will get a lot of articles there.
|
|
|
|
|
Hello stancrm,
Thanx. Actually i have search for Articles but i use different key words. And i a fail. But your key word is good.
Thanx again.
Regards,
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
Why reinvent the wheel? You can get ethereal free. It is an excellent program, plus it can insert into the network in promiscuous mode
|
|
|
|
|
Hello,
My project is start from ethereal. And go more far from this. I have to analyze voip traffic. And also manage it.
regards,
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
There is a winpcap .NET wrapper here on CP IIRC. Just search
|
|
|
|
|
Hi,
Looking for code to show after selecting from a combo box 3 other combo boxes and a submit button
Thanks,
Daniela
|
|
|
|
|
Make the visible property false at start up
and then in the combobox_selectindex method make all controll's
visible property true.
Rahul Kulkarni
|
|
|
|
|
Hi again,
I'm quite fresh here - so could you please be more specific about "combobox_selectindex method make all controll's
visible property true" ?
Thanks,
danish_bear
|
|
|
|
|
You can double click the drop down in the design , it will open the cede page with selected index changed event.
There you can write code to make other dropdown visible.
Set autopostback property of dropdown to true
|
|
|
|
|
Hi Daniela, If I read your request right, you want something like this perhaps?
private void Form1_Load(object sender, EventArgs e)
{
//some magic code you need at form initialization goes here
//probably code that populates the combo boxes with whatever
//values you need at startup or populate on the fly as in the
//below event handler
//Set your form objects to be hidden or alternatively, you can
//set them to be hidden when they're initially created
MySecondComboBox.Visible = false;
MyThirdComboBox.Visible = false;
MyFourthComboBox.Visible = false;
MySubmitButton.Visible = false;
}
private void MyFirstComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
//populate the combo boxes before making them visble
PopulateMySecondComboBox();
PopulateMyThirdComboBox();
PopulateMyFourthComboBox();
//now make them visble
MySecondComboBox.Visible = true;
MyThirdComboBox.Visible = true;
MyFourthComboBox.Visible = true;
MySubmitButton.Visible = true;
}
There's supporting code for all this of course, but I will leave that to you. Hope this helps!
Mike Poz
|
|
|
|
|
Yes - I could use this (:
Thanks !!!!
Daniela
danish_bear
|
|
|
|
|
Hi,
Looking for a c# code to show within a table the selection of a combo box in the appropriate column of the table after pressing a submit button( table, combo box, submit button are in the same form)
Thanks,
danish_bear
|
|
|
|
|
hi
i have created shared add-in COM in C# project type
Extensible.Which has Integrated visio 2003 and make
(in visio owen stencilbar,menubar,toolbar)
after stencil file name c:\customshape.vss
but problem is that, i want to dynamic file path
in stencil bar how to that possible.
ali
|
|
|
|
|
How can i bind child forms with MDI form in C#.
|
|
|
|
|
Set the parent property of the form to point to the parent.
|
|
|
|
|
Hi,
Does any one know of an example that allows a file to be downloaded from a server and saved to a clients hard disk without user intervention?
I have found an article that does it in VB - however an attempt to download the zip file of code to consider altering it failed as the zip file does not exist.
The file to be downloaded will always go to the same directory on the disk.
Thanks Andrew
|
|
|
|
|
Try System.Net.HttpWebRequest / System.Net.HttpWebResponse classes.
item est:
HttpWebRequest request=(HttpWebRequest) HttpWebRequest.Create("URI");<br />
HttpWebResponse resp=(HttpWebResponse) request.GetResponse(); <br />
StreamReader sread=new StreamReader(resp.GetResponseStream());<br />
string content=sread.ReadToEnd();<br />
sread.Close();<br />
StreamWriter swr=new StreamWriter("local_path",true);<br />
swr.Write(content);<br />
swr.Close();
__________
Non nobis Domine, non nobis. Set nomini tua da gloriam
|
|
|
|
|
Thanks,
However this only downloads to the server from the web site running on the same server...
(ie: I added the code to an aspx.cs page on my web site ran the code in the browser from another desktop machine and a file was successfully downloaded from the website on the server to a directory on the server)
However what I am looking to do is copy the file from the server directory to a directory on the client(or desktop where I am running the browser).
I assume I need to use ActiveX to get access rights to the local machine - however I have so far not found a good example or sufficient information on doing this with C#/Visual Studio 2005.
Thanks again.
Any further help/advice/suggestions much appreciated.
Regards Andrew
|
|
|
|