473,490 Members | 2,737 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Toolbars



My Toolbars is disable all the time, how to add a line to System windows
form (I am using VB.NET 2003)?

Thank you very much for all your help.

Kelvin Tran

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #1
10 1660
This should help for drawing a line:

Private Sub frmAdmin_Paint(ByVal sender As Object, ByVal e As _
System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
e.Graphics.DrawLine(Pens.Black, 10, 10, 10, 200)
End Sub

what do you mean with my toolbar is disable? Your toolbox? or the menu bar?

greetz Peter

"KELVIN TRAN" <ke********@ev1.net> wrote in message
news:#Z**************@TK2MSFTNGP10.phx.gbl...


My Toolbars is disable all the time, how to add a line to System windows
form (I am using VB.NET 2003)?

Thank you very much for all your help.

Kelvin Tran

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 21 '05 #2
"KELVIN TRAN" <ke********@ev1.net> schrieb:
My Toolbars is disable all the time, how to add a line to System windows
form (I am using VB.NET 2003)?


<URL:http://www.google.de/groups?threadm=O9W8nvz9EHA.1264%40TK2MSFTNGP12.phx .gbl>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3
Good Morning Peter Greetz:

Thank you very much for your email. I mean menu bar...
I have no problem on toolbars (add/remove) but got problem when I try to
draw line or any shape by select the icon from menu bar. In VB 6, I can
pick line icon from toolbox and draw anywhere on the design form...
Thanks you very much for your help.
Best regards,

Kelvin Tran

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #4
Hi Kelvin,

in dot net you cant draw a line or shape just by clicking the icon in a menu
bar (I don't even see it) if you want to draw a line or a shape you have to
draw it yourself, or cheat for example you could use a label with a
borderstyle and width = 1

hth Peter

"KELVIN TRAN" <ke********@ev1.net> wrote in message
news:ec**************@TK2MSFTNGP12.phx.gbl...
Good Morning Peter Greetz:

Thank you very much for your email. I mean menu bar...
I have no problem on toolbars (add/remove) but got problem when I try to
draw line or any shape by select the icon from menu bar. In VB 6, I can
pick line icon from toolbox and draw anywhere on the design form...
Thanks you very much for your help.
Best regards,

Kelvin Tran

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 21 '05 #5
Hello Peter Proost:

Here are the steps to select line icon or other sharpe icons as listed
below.
- From menu, select view, Toolbars, and image editor
- The image editor will diplays on menu bar
Thanks
Kelvin Tran

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #6
For a simple line, try a Label set to Fixed 3d Width, no text, and height
2px.

Greg

"Peter Proost" <pp*****@nospam.hotmail.com> wrote in message
news:eO***************@TK2MSFTNGP09.phx.gbl...
Hi Kelvin,

in dot net you cant draw a line or shape just by clicking the icon in a
menu
bar (I don't even see it) if you want to draw a line or a shape you have
to
draw it yourself, or cheat for example you could use a label with a
borderstyle and width = 1

hth Peter

"KELVIN TRAN" <ke********@ev1.net> wrote in message
news:ec**************@TK2MSFTNGP12.phx.gbl...
Good Morning Peter Greetz:

Thank you very much for your email. I mean menu bar...
I have no problem on toolbars (add/remove) but got problem when I try to
draw line or any shape by select the icon from menu bar. In VB 6, I can
pick line icon from toolbox and draw anywhere on the design form...
Thanks you very much for your help.
Best regards,

Kelvin Tran

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 21 '05 #7
Hi Kelvin, as you typed yourself that's the image editor toolbar thus for
editing images, you can't use them on a form.

greetz Peter

"KELVIN TRAN" <ke********@ev1.net> wrote in message
news:O#**************@TK2MSFTNGP11.phx.gbl...
Hello Peter Proost:

Here are the steps to select line icon or other sharpe icons as listed
below.
- From menu, select view, Toolbars, and image editor
- The image editor will diplays on menu bar
Thanks
Kelvin Tran

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 21 '05 #8
Hi Greg Burns:

Thank you very much for your email. But your answer is not what I am
looking for...Let me put the question in other ways.

What is "Image editor" use for?
How's to use "Image editor"?

Thank you very much for your help.

Best regards,

Kelvin Tran

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #9
The Image editor is for editing .ico icon files.

To try it out, add an .ico file to your solution. When you double click on
it, Image Editor will launch.

That line button on the Image Editor Toolbar is used when working with the
Image Editor only.

If you want to draw a line on the form, you will have to use the Label hack,
or use GDI and "draw it".

Greg
"KELVIN TRAN" <ke********@ev1.net> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
Hi Greg Burns:

Thank you very much for your email. But your answer is not what I am
looking for...Let me put the question in other ways.

What is "Image editor" use for?
How's to use "Image editor"?

Thank you very much for your help.

Best regards,

Kelvin Tran

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 21 '05 #10

Hi Greg Burns:

Thank you very much for all your help.

Best regards,
Kelvin Tran
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #11

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

Similar topics

3
6421
by: Steve Dorsey | last post by:
Hello I'm creating a web page that contains a flash presentation. I currently have it resizing the user's web page and placing it on the screen using this script: ...
19
13027
by: Albretch | last post by:
Hi, client wants for a window with no toolbars to open (technical and 'esthetical' reasons) after the window, user clicks on, is being closed. I told them about security settings in browsers...
4
8526
by: Karl Irvin | last post by:
In a 2000, can you transfer custom menus and toolbars to a new Access database. My mdf file is not compiling and I'm importing all data to a new database but don't see a way to get the...
1
2619
by: Mario Crevits | last post by:
My name is Mario Crevits, I'm from Belgium (Roeselare) and I'm working with Access97 for several years now. We are in an Access97-2000 migration project. I'm writing a wizard for the end-users to...
1
1792
by: MacDermott | last post by:
I have an MDB file which is secured using a custom MDW file. I'd like to have most users see only the shortened menu you see when you set the Startup option "Allow full menus" to False. But...
1
11260
by: cefrancke | last post by:
I have set the Startup properties to the following... All menus, toolbars, etc are turned off plus these are unchecked Allow Full Menus Allow Built-in Toolbars Allow Default Shortcut Menus...
4
1647
by: MLH | last post by:
Is there a simple way to hide built-in toolbars in A97?
1
1461
by: Free BSD | last post by:
Hi, Is there a possibility that i can control the toolbars from my javascript code snippet ??? like ... make a window with my custom toolbars or like window.open .. with now toolbars
2
1872
by: =?Utf-8?B?Q3VydA==?= | last post by:
I'm working on a web application that hides all of the tool bars in IE from the user. I know there are a number of discussion about not doing this. It's a third party application that I'm adding...
15
1904
by: Neil | last post by:
So, I tried to copy a toolbar. I have a custom menu bar for a form. Tried to copy it so that I could modify the copy and use it with another form. With no direct way to copy it, I made a copy of...
0
7112
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7146
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,...
0
7183
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...
1
6852
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...
0
7356
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...
0
5448
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,...
1
4878
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...
0
3074
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1389
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.