473,651 Members | 2,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

No border style 2

hi,

sorry about the first message; i accidentally clicked post. anyway, i want
to make a modern looking app like quicktime that has not got that bar at the
top with the title in it and the controlbox. i have put a no border style
property on the form and have replace the control box with a menustrip.

i asked a friend how to make my form moveable and he could only make my form
moveable if you click the form, not the menustrip. how do you make the form
move by clickeing the menustrip?

my second question is how do you resize the window ( i dont mean
maximize/minimize)?

can anyone help me?

--
Alvo von Cossel I of Germany
Nov 17 '05 #1
2 5621
Hello,

To move the form by clicking on the menustrip, have the following code in
the mouse-down event of the menu strip:

MenuStrip1.Capt ure = false;
Message msg = Message.Create( Handle, WM_NCLBUTTONDOW N, (IntPtr)HT_CAPT ION,
IntPtr.Zero);
WndProc(msg);

At the class level, have these declarations:

private readonly int WM_NCLBUTTONDOW N = 0xa1;
private readonly int HT_CAPTION = 0x2;

For the second question, check this one:
http://www.c-sharpcorner.com/winform...ffectSB001.asp (I haven't
tried this though).

HTH

"Alvo von Cossel I" <Al************ @discussions.mi crosoft.com> wrote in
message news:34******** *************** ***********@mic rosoft.com...
hi,

sorry about the first message; i accidentally clicked post. anyway, i want
to make a modern looking app like quicktime that has not got that bar at the
top with the title in it and the controlbox. i have put a no border style
property on the form and have replace the control box with a menustrip.

i asked a friend how to make my form moveable and he could only make my form
moveable if you click the form, not the menustrip. how do you make the form
move by clickeing the menustrip?

my second question is how do you resize the window ( i dont mean
maximize/minimize)?

can anyone help me?

--
Alvo von Cossel I of Germany
Nov 17 '05 #2
hi,

thanks for the tip.
--
Alvo von Cossel I of Germany
"Siva M" wrote:
Hello,

To move the form by clicking on the menustrip, have the following code in
the mouse-down event of the menu strip:

MenuStrip1.Capt ure = false;
Message msg = Message.Create( Handle, WM_NCLBUTTONDOW N, (IntPtr)HT_CAPT ION,
IntPtr.Zero);
WndProc(msg);

At the class level, have these declarations:

private readonly int WM_NCLBUTTONDOW N = 0xa1;
private readonly int HT_CAPTION = 0x2;

For the second question, check this one:
http://www.c-sharpcorner.com/winform...ffectSB001.asp (I haven't
tried this though).

HTH

"Alvo von Cossel I" <Al************ @discussions.mi crosoft.com> wrote in
message news:34******** *************** ***********@mic rosoft.com...
hi,

sorry about the first message; i accidentally clicked post. anyway, i want
to make a modern looking app like quicktime that has not got that bar at the
top with the title in it and the controlbox. i have put a no border style
property on the form and have replace the control box with a menustrip.

i asked a friend how to make my form moveable and he could only make my form
moveable if you click the form, not the menustrip. how do you make the form
move by clickeing the menustrip?

my second question is how do you resize the window ( i dont mean
maximize/minimize)?

can anyone help me?

--
Alvo von Cossel I of Germany

Nov 17 '05 #3

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

Similar topics

0
2724
by: yurps | last post by:
Hello here is my html, if you click the missing image in the first column on the left, the div is shown, when clicked again the div disappears...but the bottom border disappears as well...Is there anyway to stop this...??? <HTML> <HEAD> <title>Conform Inbox</title> <meta content="False" name="vs_snapToGrid">
3
1068
by: ireneatngs | last post by:
Hi, I have example html below which contains a couple of hidden divs. However, some of the table borders within these hidden divs are actually displayed when they should not be. In my example, I have comments indicating that if I remove the 'border-collapse' attribute for two of the tables within the hidden divs, my problem is fixed.
0
703
by: Claude Schneegans | last post by:
Hi, In the following code: <UL STYLE="border: 2px solid #F00000;"> <LI STYLE="border: 1px solid #00F000;">item 1</LI> <LI STYLE="border: 1px solid #00F000;">item 2</LI> <LI STYLE="border: 1px solid #00F000;">item 3</LI> </UL> The red border clearly surounds the whole list, including the LI
2
5286
by: Jon | last post by:
Hi all, I am trying to create a page that contains a number of div elements, with links on the left side of the page allowing the user to select which div to display. Some of the pages contain tables with border styles used to block off the columns and the headers, but not the individual rows. The pages will be displayed using IE 5.5 and later in the finished app. Now to the problem, which is a little awkward to describe:
19
4606
by: Eva | last post by:
Hi, I'm really really really new to javascripts and so i couldn't really comprehend thoroughly on the the previous posts regarding this issue. Anyways, I'm setting up a picture album site. When i click on a thumbnail or a picture, a larger picture pops up in a javascript window. But it has a space on the top and on the left of my larger pic in the pop-up window. How do i get rid of that? Also, i want the window to fit my my pic so...
3
58247
by: effendi | last post by:
Hi Can any tell me what is the javascript equivalent of CSS border? I would like to change the border of my cell when it is set on focus. I have tried onFocus="style.border='3px'" but it is not working. Thanks
8
12090
by: UJ | last post by:
I have a table with multiple cells and I want to draw a box around the entire table but not around the individual cells. How do I do that? TIA - Jeff.
3
4310
by: Alex Maghen | last post by:
I'd like there to be a border around each row of my data-grid but NOT between the columns. I've tried setting BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" ItemStyle-BorderColor="Black" ItemStyle-BorderStyle="Solid" ItemStyle-BorderWidth="1px"
1
15320
by: Armin Gajda | last post by:
Hi, I have the following problem: An input field get a border assigned by a style class (e.g. 2px solid red). When the field gets the focus, we set the border to green. element.style.border = "2px solid green"; When the field looses the focus, the border should change back to red.
8
11483
by: moondaddy | last post by:
I'm posting code for a user control ( FunctionConnectorSelector) below which has 3 content controls in it. each content control uses a style from a resource dictionary merged into the app.xaml file. each control has a border with another style, and each border has a unique path inside of it. I need to dynamically add these content controls using c# at runtime and am having trouble referencing the styles and adding the path into the...
0
8275
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
8795
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
8695
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
8460
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
7296
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...
0
5609
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
4143
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1585
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.