473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

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 1659
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
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
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
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
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
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
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
by: MLH | last post by:
Is there a simple way to hide built-in toolbars in A97?
1
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
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
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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
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...
0
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
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
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,...

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.