|
i have a control in mdi form. when i open a child form then the control in mdi form is overlaping the child form.
please help me to solve this issue.
Pradeep Reddy
|
|
|
|
|
Hi all.
I hope someone can help me.
I need to set focus on mouse position.
Make the click programmatically does't help. not set focus.
Any idea?
thanks.
|
|
|
|
|
caradri wrote: I need to set focus on mouse position.
When? If you are asking how to set focus without the user clicking the mouse, absent a click event, when would you know to do that?
That doesn't sound like a good idea so perhaps I have not understood your question.
led mike
|
|
|
|
|
Do you want a control to have its focus set when the mouse moves over it? If so, any control should have an Enter and a Leave event for this exact purpose. Just register the event handler to set focus on enter.
Dybs
|
|
|
|
|
thanks for your answers. I need just what a click do with focus. When you click the focus goes to this clicked place. the click event not work with this. I have not the name of the control to set the focus.
Im working with private web pages and i need to check them on screen just as user do. This web is encrypted, and i have not access to the html source. (that is almost empty).
I hope i explained this.
|
|
|
|
|
caradri wrote: Im working with private web pages
This is the Windows Forms forum, it has nothing to do with Web Page development.
You seem totally lost. I strongly recommend you get some beginners books or take some classes.
led mike
|
|
|
|
|
Its a windows form with a browser.
|
|
|
|
|
Here is what I want to do. I've got a combo box, which has lots of items, so selecting specific item takes some time. I'd like to use an intelliscence, bc that would make the input process faster: once the user starts typing the first letters, he is shown the items, which have the same starting letters. I've seen this done on many websites, but I haven't found any info for it.
Thanks for time and effort, I really appreciate your help.
|
|
|
|
|
Do an article search on this site. There is one floating around that does what you are looking for. I'd find it for you, but leaving it up to you as a research assignment
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi,
I'm writing a Windows application, where I need to display one of several different screens/forms in the main window, and the same toolstrip on top as a main menu.
I wanted to design those different forms in designer independently and be able to display them as a part of the main form, without a title bar as a separate window. How do I do that?
Thanks!
modified on Monday, August 25, 2008 4:48 AM
|
|
|
|
|
Create a MDI Form and use the child forms to display whatever...
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Done that, thank you! I still can't seem to figure out couple of things, could yo help?
1. When I'm switching between mdi child forms it looks like the next one is maximizing - there's that blue windows title bar animating inside parent form briefly. How do I turn one child form off and activate new child form without visual artifacts, i.e. fast and smoothly?
2. I can't get rid of the (main?) menu strip at the top of the parent form, no matter how I try when I got mdi child forms. How do I remove that menu, which is not needed and makes the view look bad?
Thanks a lot for your help!
Jim
|
|
|
|
|
Hi everybody...
I what to create an Add-ons for firefox... What are the things I should know before working on that.. actually I have google it but dont get any clue... so please guide me.. looking for a quick response..
|
|
|
|
|
|
|
|
As, to the best of my knowledge, Firefox is a web browser, you may get more response by posting in the correct forum.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hai boys,
I have drawn a rectangle on the display dc using framRgn() api,
but i dont no how to erase that? pls kindly help me.
I am using vb6 api.
|
|
|
|
|
Hi,
Please refer to the following links:
Link #1[^]
Link #2[^]
For more information on this, you may also refer to the code written on this[^] link. This code though is not in VB.
I hope this would be helpful.
John Adams
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
Thank you,
look like what i really wanted.
any question ill come back.
|
|
|
|
|
Hai friends,
i wonder y this piece of code does not erase my rectangle drawn over the display dc. really annoying this stuffs, not works like specified when code :x)
ok friends, i have drawn a rectangle on the display dc as specified in the first post, assume drawn over the system tray area. so now i use the below code to erase it. the code is perfect. but winodws does not react to it
this was the successfull drawing part
[code]
hDisplay = CreateDCAsNull("DISPLAY", ByVal 0&, ByVal 0&, ByVal 0&)
hRgn = CreateRectRgn(rt.Left, rt.Top, rt.Right, rt.Bottom)
hBrush = CreateSolidBrush(vbRed)
FrameRgn hDisplay, hRgn, hBrush, 3, 3
Sleep 1000
[/code]
so now the rectangle is drawn and perfect. now i am erasing...
hDesktop = GetDesktopWindow
lngresult = InvalidateRgn(hDesktop, hRgn, False)
* i though the above piece of code would be enough. since not working, i added the follwoing also.
RedrawWindow hDesktop, 0&, hRgn, RDW_INVALIDATE Or RDW_UPDATENOW
Not working friends.
Gus pls help
modified on Monday, August 25, 2008 10:36 AM
|
|
|
|
|
Hello everybody,
My question is quite simple and i'm not sure there is a solution. But if you have any suggestions to go round, it would be great as i'm not really content of what i'm doing so far.
Here is the problem :
Let say you have a base form named FORM and 3 derived forms (FORM1...).
On the base form you have several controls (buttons, textbox, labels, more than 10) taking all space of the form.
On the derived forms you can see them all (design- and run-time)
Very easy so far.
Let say now that i wan't to replace a textbox by a combobox ONLY on FORM1.
I add my combobox at the right place, i make my textbox non-visible by setting the property and all is ok at run-time... but not in the designer ! where i don't have the place to put my inherited textbox cause it's still visible at design-time and my form is full of controls.
To make even more simple, i would like to prevent the designer from showing, in a particular derived form, a control inherited from a base form.
My "solution" for the moment is to set the location property of my textbox at "1000;1000" so it is not visible in the designer.
Thanks for your help
S.
|
|
|
|
|
I suspect you must have some reasons for not doing this, but wouldn't this be more straightforward if you just stripped the controls from the base form that don't actually appear on all the derived forms, and just leave a hole where these replaceable controls go?
|
|
|
|
|
Thanks for your reply.
Actually I have 8 derived forms which use 15+ identical controls. But for 1 of these derived forms, 4 controls have to be replaced.
What you suggest, tell me if i'm wrong, is to remove these 4 controls from the base form and add them in each derived forms (7 here). But if i do that i'll loose the factorisation benefit for these controls.
|
|
|
|
|
You could derive in 3 steps:
Form1 without the 4 controls
Form2 = Form1 + 4 controls type 1
Form3 = Form1 + 4 controls type 2
and 7 forms derived from Form2
|
|
|
|