|
HI,
if you want to have an embeded look don't put the User control on a form.
you can create a user control which will have all the required controls and then add this user control to the main form.
Hope that works for you,
Regards,
Pramod
|
|
|
|
|
No, i want the user control to be hosted in a seperate process..
How do I do that..
|
|
|
|
|
Then you need to start a separate thread for that
Pramod
|
|
|
|
|
|
Could you try to explain what you are actually trying to achieve? Why do those have to be separate processes? What you are trying to do looks like a dirty hack to me... probably there is a better way.
|
|
|
|
|
yes it is kind of a dirty hack.
I need to do some on the fly switching between different configurations
Each of these configs when chosen, need different settings in registry
and different assemblies to be loaded.
We are trying to see if it will be possible to achieve this, without user haing to restart the application everytime he wants to switch configs
|
|
|
|
|
Hi
I created setup for installation of my application (in C#) after converting it to Framework 2.0. However when install it on another machine I have a message that 'This setup requiers the Microsoft J#.Net redistributable package' etc.
When I looked into the project in fact there is VJ#.NET launch condition. I cannot delete that.
Is it normal that it is added automatically to the setup for application developed in C#?
Thanks for help
Ela
|
|
|
|
|
There is no problem anymore.
Thanks
Ela
|
|
|
|
|
how can i determine the axis of mouse pointer from any method?
|
|
|
|
|
watch this post:
http://www.codeproject.com/script/comments/forums.asp?forumid=1649&fr=51
|
|
|
|
|
<br />
this.Cursor = new Cursor(Cursor.Current.Handle);<br />
Cursor.Position = new Point(Cursor.Position.X - 50, Cursor.Position.Y - 50);<br />
|
|
|
|
|
this code will set the position of mouse pointer. but i want to retrieve the position.
|
|
|
|
|
hello the same pa.
string xValue = Cursor.Position.X.ToString () ;<br />
string yValue = Cursor.Position.Y.ToString();
|
|
|
|
|
Hello,
I hope someone can point into the right direction with this question:
I have a custom control which inherits from System.Windows.Forms.Control. This control requires scrolling but I'm unsure how to add the scrollbars. I see three options:
- Add WS_HSCROLL and WS_VSCROLL flags in method CreateParams
This feels like the right way to go because windows takes care of most of the
scrollbar issues (like allignment). However, I found little support for this
implementation in .Net. A method like SetScrollInfo is not part of the .Net
implementation and can only be used after importing it from user32.dll.
- Adding a VScrollBar and HScrollBar to the control.
I think this could work, but extra code is needed to keep the
scrollbars properly aligned and to adjust the client rectangle with the space occupied
by the scrollbars.
- Inheriting from System.Windows.Forms.ScrollableControl
Because my component is like a grid and I want to handle painting, scrolling and
most/all other events myself, I don't think this is the proper control to
inherit from. Also, a ScrollableControl supports docking of other controls (a user
can drag a button on the control) which I want to be dissabled.
All your information is welcome.
Regards,
Kees Vermeulen
info@kever.com
|
|
|
|
|
hai all,
i am facing some problem while installing the the setup created using the Setup & Deployement.. i am installing the setup in a system which is not having the .net frame work and win installer. but i added the .net frame work and win installer 3.1, while creating the setup.. Is it possible to create setup using setup and deployment by adding .net frame work and win installer? if yes how?..
Regards..
|
|
|
|
|
Yes it is possible place the setup file for .net 2.0 and wininstaller in the know folder. right click ur setup project n choose prerequisites n choose the .net framework, choose Download prerequiesites from the location n choose ur folder. similarly for wininstaller.
|
|
|
|
|
hai...
i tried but it showing message "invalid value for download prerequisites from the following location. the sting must be a fully qualified URL or UNC path, for example "http://www.microsoft.com/myapplication" or "\\server\myapplication".
Regards
|
|
|
|
|
hello !
how to know that
what application/program is consuming what/how much resources of the system.
muhammad mahmood ilyas
|
|
|
|
|
|
hi
just press CTRL+SHIFT+ESC with it u can get the process list n u can manage them
|
|
|
|
|
Dear friends,
I placed an image on the form and on one corner of that image, i placed a label control . I am displaying current date on the label control . Problem is that the background color of the label is looking very ugly as it hides some portion of the image. I want to make the label control transpaent so that only text of the label remains visible and the image behind it not gets hidden. How can i do so ?
Imtiaz
|
|
|
|
|
Hello,
At System.Windows.Forms.Label BackgroundColor Property, its possible to set transparent I think.
All the best,
Martin
|
|
|
|
|
Oops,
Sorry, does not work on PictureBox.
Martin
|
|
|
|
|
Hello Again,
You could use a Panel with his Background Image Property, and set the Label BackgroundColor to Transparent.
I tried it.
All the best,
Martin
|
|
|
|
|
If i use panel, then how do i display text on the panel. There is no 'Text' property associated with the panel ?
Imtiaz
|
|
|
|