473,837 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Drawing in design mode ?

Hi, Is it possible like Visual Basic that when you are in Design mode so
you can add controls etc to a windows form that you can draw on it? like
draw a line or a shape?

Bob

*** Sent via Developersdex http://www.developersdex.com ***
May 26 '06 #1
4 5473
What IDE are you using? More then likely yes. I use SharpDevelop, and
you can simply click the Design tab on anything that is a Form.
Billy Bob wrote:
Hi, Is it possible like Visual Basic that when you are in Design mode so
you can add controls etc to a windows form that you can draw on it? like
draw a line or a shape?

Bob

*** Sent via Developersdex http://www.developersdex.com ***


May 26 '06 #2
I am using Visual Studio 2005, but i cant find any drawing tools in the
toolbox.

Bob
"Dan McCollick" <mc*********@ho tmail.com> wrote in message
news:11******** **************@ j33g2000cwa.goo glegroups.com.. .
What IDE are you using? More then likely yes. I use SharpDevelop, and
you can simply click the Design tab on anything that is a Form.
Billy Bob wrote:
Hi, Is it possible like Visual Basic that when you are in Design mode so
you can add controls etc to a windows form that you can draw on it? like
draw a line or a shape?

Bob

*** Sent via Developersdex http://www.developersdex.com ***

May 26 '06 #3
I might be misinterperting your question, are you looking to add
controls, or are you looking for a control that would function like
paint or Adobe Photoshop?

If controls,
In the solution explorer right click on "Form1.cs"(what ever your form
name is), click designer, then you should be able to drag and drop
contols from the toolbox.

If you are looking to drop a paint/Photoshop control, I am pretty sure
there is some code out there touching on System.Drawing. Things like
drawing with a pen, creating a circle, etc. google for System.Drawing
examples should give you results...
Patrick wrote:
I am using Visual Studio 2005, but i cant find any drawing tools in the
toolbox.

Bob
"Dan McCollick" <mc*********@ho tmail.com> wrote in message
news:11******** **************@ j33g2000cwa.goo glegroups.com.. .
What IDE are you using? More then likely yes. I use SharpDevelop, and
you can simply click the Design tab on anything that is a Form.
Billy Bob wrote:
Hi, Is it possible like Visual Basic that when you are in Design mode so
you can add controls etc to a windows form that you can draw on it? like
draw a line or a shape?

Bob

*** Sent via Developersdex http://www.developersdex.com ***


May 27 '06 #4
I believe the OP was looking for the old line and shape controls from
VB6 days where you could place a line or shape on the form at design
time.

These do not exist in VS200x versions of VB or C#, although I believe
that someone may have created them. Check the usual places
(SourceForge, CodeProject, etc.) and you will probably find an example.
In fact, here is a link to one of the articles:

http://www.codeproject.com/cs/miscct...select=1408375

May 30 '06 #5

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

Similar topics

3
1656
by: Tom Rahav | last post by:
Hi. I develop VB.NET for about 2 year.... recently, I created some user controls, and use them in a win-form. Sometimes, when I try to design a form that contains these controls, I get error messages that I know as RUNTIME errors, such as "Dynamic SQL generation is not supported against a SelectCommand that does not return any base table information." ... I don't get it! I try to design the form in design mode!! when I click OK on that...
4
5905
by: Jeff | last post by:
I have a need to open a report in design mode immediately before opening it in preview, to change the Minimum and Maximum scale on an axis on a chart. This results in a flash of the report in design mode just before it is opened in preview mode. Is there any way to open it in design mode hidden? Jeff
5
15613
by: Al Sav | last post by:
I have the following in form load. When the form shows up, the graphics vanishes. This works, if I execute this from button_click. But, even that vanishes if minimize and restore the form. Similar to the functionality of ClipControls = False in VB6. How do I get to draw in a groupbox (same problem in picture box) and retain the graphics? Thanks in advance. Alwin S.
4
2106
by: jim | last post by:
I am trying to debug a user written web control and web control designer. I found an article “Building Windows Forms Controls and Component with Rich Design-Time Features” that describes how to setup debugging for a Windows Form control. I cannot find any documentation or articles on setting up the same facility for a Web control. Any help on setting the control library project to debug the design-time code would be greatly...
2
1580
by: Vishruth | last post by:
I would like to know how to plot coordinates in the form using drawline method .For eg: Given only x and y fields and about 50 records are there in database .I should fetch the records from database and plot it in the form given only x and Y coordinates. please help me to tackle this problem.
1
1735
by: Sam | last post by:
Hi guys I'm writing a small drawing program which has "snap to grid" mode and I want to display something (some kind of shapes for example a small square or circle which indicate the current snap point of my mouse) but I have no success so far. I tried controlpain.drawreversibleframe method to draw a tiny square to indicate my current snap point of my mouse as it moves on my grid points; and this somwhat gives me what I want. The...
7
2133
by: Stefan0 | last post by:
Hi, I'd like to draw a circle on the screen using GDI+ I'm using the DrawEllipse method with width = height and I set the SmootingMode to SmoothingModeAntiAlias but the circle is "squared". Is there a way to draw a "smoothed" circle ? Thanks in advance Stefano
3
1709
by: Rolf Welskes | last post by:
Hello, for a large web site project we would like to use nested Master Pages. Unfortunely VS2005 is not able to show pages in design mode when nested Master pages are used. This has the consequence that also each content page cannot be used in design mode. It is impossible to design hundrets of pages in source mode without design
0
1105
by: Timje | last post by:
Visual C# 2005 Express Edition crashes the instant I attempt to view any class in design mode, or just switch the program to design mode (shift-F7). I have tried reinstalling, closing all other non-critical processes, safe mode, restarts and attempting to try design mode on other solutions, all to no effect. The program just comes up with an illegal operation as soon as design mode is supposed to start.
0
9843
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9682
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
10566
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
10623
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
9401
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 projectplanning, coding, testing, and deploymentwithout 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
7001
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
5669
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...
1
4474
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 we have to send another system
2
4040
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.