473,394 Members | 1,663 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,394 software developers and data experts.

Toolbars are greyed out

Rob
In form design vb2005 - I know it is going to be something realy silly, but
all I want to do is draw a line on a form... but the Toolbar is greyed out.

How may I activate it ?
May 8 '07 #1
2 1355
"Rob" <ro***@yahoo.comschrieb:
In form design vb2005 - I know it is going to be something realy silly,
but all I want to do is draw a line on a form... but the Toolbar is greyed
out.

How may I activate it ?
The toolbar you are looking at is most likely the toolbar of VS inbuilt
image editor. It's not available for Windows Forms. Note that the .NET
Framework does not contain a line control. You can, however, draw a line
onto a form by overriding its 'OnPaint' method and drawing the line using
'e.Graphics.DrawLine(...)' there.

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

May 8 '07 #2
On May 8, 5:18 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-
h...@gmx.atwrote:
"Rob" <r...@yahoo.comschrieb:
In form design vb2005 - I know it is going to be something realy silly,
but all I want to do is draw a line on a form... but the Toolbar is greyed
out.
How may I activate it ?

The toolbar you are looking at is most likely the toolbar of VS inbuilt
image editor. It's not available for Windows Forms. Note that the .NET
Framework does not contain a line control. You can, however, draw a line
onto a form by overriding its 'OnPaint' method and drawing the line using
'e.Graphics.DrawLine(...)' there.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Or for the quick and dirty (and poorer performing) option, just add a
label, remove it's text, set it's backcolor to the desired color, set
autosize to false, and set the desired width and height.

Oh the joys of laziness...

(For the record I use the GDI+ method 99.9% of the time - I'm just
sharing another option)

Thanks,

Seth Rowe

May 8 '07 #3

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...
2
by: Michelle Collier-Moore | last post by:
Please could someone offer some advice regarding adding references to an Access database? I tried to open a project a few days ago sent to me by someone whose developer had left the company. I...
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...
4
by: MLH | last post by:
Is there a simple way to hide built-in toolbars in A97?
8
by: EdB | last post by:
In VB6, you could set a check box to checked, unchecked, or greyed. The latter would be used to show a setting but disable the control. In .Net, the third choice is not greyed, but...
0
by: Krzysztof via AccessMonster.com | last post by:
Good Afternoon, i have a weird situation: my toolbars at the top are not working. i see the regular (Design) bar, but there is another bar that is the bar that you format text with, but it is...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.