473,653 Members | 2,989 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting control to dock fill when you have a menustrip

Hi,

I have not had a good answer to this question.

I put a menustrip on a form and so it is a main menu in affect.

Now I put a webbrowser control on the form and set it dock fill.

Of course what happens is the menu covers the top of the webbrowser control
which i do not want.

Is there a property to have the control automatically drop
so it is aligned with the bottom of the menu??

Or do i have to set the top property and anchor the control etc
to achieve this, seems wrong to have to.

rotsey
Sep 12 '07 #1
12 6406
Rotsey wrote:
I have not had a good answer to this question.

I put a menustrip on a form and so it is a main menu in affect.

Now I put a webbrowser control on the form and set it dock fill.

Of course what happens is the menu covers the top of the webbrowser control
which i do not want.
For what it's worth, the reason I didn't answer your previous post was
that the problem seemed odd to me. That is, I haven't had any trouble
having dock-filled controls overlapping the menu strip. But I didn't
have time to verify it at the time.

Since then I have had time, and I can confirm that I don't have any
trouble doing what you want to do. I drop a menu on the form, then a
control, set the control's Dock property to Fill, and it winds up flush
against the menu strip, not overlapped.

I'm using VS 2005 and .NET 2.0.

Perhaps you could post a concise-but-complete example of code that
demonstrates a form that contains a docked menu strip and a docked
control, where the control winds up overlapped with the menu strip. It
should just work, but if it doesn't for you then if you can post code
that demonstrates the problem then someone can look at it and try to
understand what's different about the code you wind up with as compared
to what the rest of us have.

It may be sufficient to just post the InitializeCompo nent() method for
your form, actually...so if you don't want to post the rest of the class
right off the bat, just post that method so we can look at it.

Pete
Sep 12 '07 #2
On Sep 12, 9:01 am, "Rotsey"
<malcolm_sm...@ RemoveThis.optu snet.com.auwrot e:
ok Pete here it is.
<snip>

As far as I can see that doesn't contain any code specifying a
DockStyle of Fill.

Jon

Sep 12 '07 #3
I did respond to your original e-mail; if it didn't work, then you
should have replied...

http://groups.google.co.uk/group/mic...ce51ecfd5f46cc

Marc
Sep 12 '07 #4
Well I deleted the menustrip and readded it but still the same problem.

have to say that I mislead you a little in that yes the browser
control is added at runtime.

So what I did was added a panel to the form (design view)
and dock fill it.

Then i add my browser to the panel it works fine.

So I do not know what was wrong.

But I thankyou all for your replies.

rotsey

"Rotsey" <ma***********@ RemoveThis.optu snet.com.auwrot e in message
news:OH******** ******@TK2MSFTN GP04.phx.gbl...
Hi,

I have not had a good answer to this question.

I put a menustrip on a form and so it is a main menu in affect.

Now I put a webbrowser control on the form and set it dock fill.

Of course what happens is the menu covers the top of the webbrowser
control
which i do not want.

Is there a property to have the control automatically drop
so it is aligned with the bottom of the menu??

Or do i have to set the top property and anchor the control etc
to achieve this, seems wrong to have to.

rotsey


Sep 12 '07 #5
Rotsey wrote:
Thanks for the lesson on learning Pete.

By the way what newsgroup reader do you use.
I'm currently using Thunderbird on my Mac. Since I've yet to find a
newsreader that I think is perfect, I switch around now and then. :)
Are you able to get email notifications of posts with it??
Not that I'm aware of. I've never seen a non-web-based newsreader that
provides email alerts. Thunderbird does include a setting to play a
sound when new messages are detected, but I don't think it's
configurable on a per-thread or per-reply basis.

If you read these newsgroups via Microsoft's web interface, I believe it
includes a setting to send you email when a reply to a post has been
made. So if you're looking for that, you might consider using that
interface.

Pete
Sep 13 '07 #6
I use Outlook express currently.

I am just googling for the Microsft's web base reader and cannot find a link
to it
anywhere.

You sure it exists?

"Peter Duniho" <Np*********@Nn OwSlPiAnMk.comw rote in message
news:13******** *****@corp.supe rnews.com...
Rotsey wrote:
>Thanks for the lesson on learning Pete.

By the way what newsgroup reader do you use.

I'm currently using Thunderbird on my Mac. Since I've yet to find a
newsreader that I think is perfect, I switch around now and then. :)
>Are you able to get email notifications of posts with it??

Not that I'm aware of. I've never seen a non-web-based newsreader that
provides email alerts. Thunderbird does include a setting to play a sound
when new messages are detected, but I don't think it's configurable on a
per-thread or per-reply basis.

If you read these newsgroups via Microsoft's web interface, I believe it
includes a setting to send you email when a reply to a post has been made.
So if you're looking for that, you might consider using that interface.

Pete

Sep 13 '07 #7
Rotsey wrote:
I use Outlook express currently.

I am just googling for the Microsft's web base reader and cannot find a link
to it
anywhere.

You sure it exists?
Yes, of course.

http://www.microsoft.com/communities...nguages.csharp
Sep 13 '07 #8
Ok thanks.

What country are you from Pete, you seem to be the same time zone as me.??

Are you a .net developer for a living?

"Peter Duniho" <Np*********@Nn OwSlPiAnMk.comw rote in message
news:13******** *****@corp.supe rnews.com...
Rotsey wrote:
>I use Outlook express currently.

I am just googling for the Microsft's web base reader and cannot find a
link to it
anywhere.

You sure it exists?

Yes, of course.

http://www.microsoft.com/communities...nguages.csharp

Sep 13 '07 #9
Rotsey wrote:
Ok thanks.

What country are you from Pete, you seem to be the same time zone as me.??
Assuming your .au top-level domain is any indication, I'm not. :)
Are you a .net developer for a living?
No.
Sep 13 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1593
by: Yasutaka Ito | last post by:
Hi, Is there a way to find to which control the current control is docked against? For example, let's say I have panel1 and panel2 docked to left within a form. The panel1 is the first one on the left and the panel2 is the second one docked against panel1. I want to be able to find out to which control/form the specified panel.
5
1896
by: Brian Gallagher | last post by:
Ok a silly question but I am coming from Access to .net and need help. I have managed ho add a tree view and a splitter and those work fine on the left of the screen. However when a record is selected it can be of one or two types which needs to be displayed on the right. Someone suggested that I seed the panel control but the problem is I need to overlay 2 but the problems are 1. I can't dock 2 2. I want to group all of the...
3
12552
by: Brett Romero | last post by:
I have an MDI Parent form with a toolstrip and menustrip. The menustrip is always the top most. Both are Docked to Top. I contemplated using a toolstripcontainer but then removed it. I had to redock my toolstrip and menustrip. Now the toolstrip is always top most. I added a new MDI Parent form and can't find any differences. How do I get the menustrip to be top most? Also, is there a way to get the menu strip items (opening of a...
2
1351
by: Netter | last post by:
I have two controls on a form. The first is Dock top and the second is dock Fill When the first changes from not visible to visible the second does not move down. That is the top of the one that is Dock Fill is covered by the one that is Dock Top. Is there a way to fix that?
17
7407
by: Kbalz | last post by:
I'm developing a Wizard type program, and I'm flipping between steps by using a TabControl.. buttons on each tabPage move to the next or previous tabPage. When I press CTRL+Tab however, the tabControl begins to cycle through the tabPages, just as it does in Visual Studio, IE7 etc.. any tabbed program. I need this blocked.
3
3987
by: DBC User | last post by:
I am trying to put 2 controls in a page where I want the first control to have 80% of the screen and the second control 20%. How can I do that? I used control property to set the first one to Top and the second one to Bottom and is not working properly. I am loosing the first controls bottom portion. Any help please?
7
5217
by: Zytan | last post by:
I just wanted a little practice with the WebBrowser control, so I did the VB guided tour example here in C#: http://msdn2.microsoft.com/en-us/library/a08t4ke7(VS.80).aspx The tutorial asks to put a Panel with a Button and TextBox in it, and a WebBrowser below it. Then, it sets the Panel's Dock property to be Top. It sets the WebBroswer's Dock property to be Fill. But, the WebBrowser then fills the entire form! Even though the Panel's...
0
1221
by: Rotsey | last post by:
Hi, When you have a control on a form with Dock.Fill and you also have a menustrip, the top of the control is under the menustrip. Is this by design? How are you supposed to handle this, poistion it yourself???
0
1952
by: \Ji Zhou [MSFT]\ | last post by:
Hello Ashutosh, I see your points. As to your two new concerns, I am give the detailed comments in the following. 1. Is it possible to achieve this result without calling Update on the route table? I want to give the user an option to save/reject the changes. Yes, we can achieve the objective without calling the Update function on the route table. The necessary thing we need to do is updating the
0
8283
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8811
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8704
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8470
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8590
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7302
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6160
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5620
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4291
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.