473,324 Members | 2,531 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,324 software developers and data experts.

Creating an app that works like the Visual Studio form designer...

Now, the following will probably sound weird to you, but I can assure you
that there is a good reason for why I want to do it. Unfortunately, I'm not
ad liberty to disclose WHY at this moment in time, so you will have to take
my word for it.

What I want to do in the application I'm developing is to open a Visual
Studio designer file (C# or VB) and present the user of the application with
a picture of the form - almost just like it appears in the Visual Studio
designer.

An example screenshot of what I'm tyring to do can be found here:
http://www.jcsoftwaresolutions.com/VisualizeAppDump.jpg

The user SHOULDN'T be able to:
- Move or close the form
- Move or resize the components
- Interact with the components (e.g. write the in the textboxes, drop down
comboboxes and select items)
- Edit the form or components in any way

but he/she SHOULD be able to:
- See the layout
- Select a specific control, which should then be outlined.
- If the control is a tab control, he/she should be able to switch between
tab pages like in the VS editor
- It the control is a MenuStrip, he/she should be able to drop the menu to
see the items (but not click them) - actually, the user should be able to
keep the menu dropped and select a menu item, which should then be outlined
(but not editable).

My question is: Where would you start doing something like this? My Idea was
to open the designer file, read it line by line and create a new form
containing the desired controls. Then show it in a MDI client area or panel
or whatever.

The problem is:
How do I keep the user from moving and resizing the form?
How do I keep the user from interacting with (most of the) components on the
form (e.g. write the in the textboxes, drop down comboboxes and select
items)?
How do I let the user "select" the components?
What should I do if the form file contains references to a third party
control that is not installed on the machine where the program runs?

Please let me hear how you would accomplish it... I'm really looking forward
to getting some ideas.

Cheers,
Johnny J.
Jan 11 '08 #1
1 1659
I would suggest looking at some of the opensource IDE alternatives to Visual
Studio. Perhaps some of the code can be used to achive your requirements.

Look at http://csharp-source.net/open-source/ides to get started. I have
not used any, but they seem like they may help.

"Johnny Jörgensen" wrote:
Now, the following will probably sound weird to you, but I can assure you
that there is a good reason for why I want to do it. Unfortunately, I'm not
ad liberty to disclose WHY at this moment in time, so you will have to take
my word for it.

What I want to do in the application I'm developing is to open a Visual
Studio designer file (C# or VB) and present the user of the application with
a picture of the form - almost just like it appears in the Visual Studio
designer.

An example screenshot of what I'm tyring to do can be found here:
http://www.jcsoftwaresolutions.com/VisualizeAppDump.jpg

The user SHOULDN'T be able to:
- Move or close the form
- Move or resize the components
- Interact with the components (e.g. write the in the textboxes, drop down
comboboxes and select items)
- Edit the form or components in any way

but he/she SHOULD be able to:
- See the layout
- Select a specific control, which should then be outlined.
- If the control is a tab control, he/she should be able to switch between
tab pages like in the VS editor
- It the control is a MenuStrip, he/she should be able to drop the menu to
see the items (but not click them) - actually, the user should be able to
keep the menu dropped and select a menu item, which should then be outlined
(but not editable).

My question is: Where would you start doing something like this? My Idea was
to open the designer file, read it line by line and create a new form
containing the desired controls. Then show it in a MDI client area or panel
or whatever.

The problem is:
How do I keep the user from moving and resizing the form?
How do I keep the user from interacting with (most of the) components on the
form (e.g. write the in the textboxes, drop down comboboxes and select
items)?
How do I let the user "select" the components?
What should I do if the form file contains references to a third party
control that is not installed on the machine where the program runs?

Please let me hear how you would accomplish it... I'm really looking forward
to getting some ideas.

Cheers,
Johnny J.
Jan 12 '08 #2

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

Similar topics

6
by: DraguVaso | last post by:
Hi, In my application, on some given actions while debugging in Visual Studio, I suddenly get a "System.ComponentModel.Win32Exception was unhandled" Message="Error creating window handle."...
1
by: GoodDay | last post by:
GoodDay.. Trying to nest the designer generated Namespace of a form-project in another namespace. with "MyCompay::MyApp" The program builds correctly. However, when try to view the form in...
2
by: DaWoE | last post by:
Hi all, I'm fairly new to ASP.NET. What i want to do is creat a online registration form. On the first step is getting the users details and the number of people he wants to register. Based on...
7
by: Jason | last post by:
We have a developer who claims the Visual Studio designer is not sophisticated enough to build enterprise grade web pages and thus hand codes all of his HTML in such a way as to make the designer...
3
by: Crazy Cat | last post by:
Hi, I'm developing an application that is basically a VB.NET front end to a SQL Server Express 2005 database -- right now I'm using VB.NET 2005 Express until my MSDN subscription gets delivered...
1
by: Nathan Sokalski | last post by:
I have created a custom control for ASP.NET using VB.NET. My control inherits from the System.Web.UI.WebControls.CompositeControl class, and is working fine. However, the Visual Studio .NET designer...
1
by: Vanyok | last post by:
Hi everyone :) I'm a newb to C-Sharp but more I learn about it - more I like it. I need some help please. I'm trying to find out to dynamically allocate form controls. For example I want to have 5...
8
by: WT | last post by:
Is it normal that Visual Studio sets the PreInit handler for a Page from the OnInit code ? No chance to fire it as OnPreInit is run befor OnInit. ??? CS
2
by: Dave | last post by:
It seems that if I put just html inside a master page, everything works fine. But if I put other controls (such as WebControls and/or my own custom controls), I can't seem to access the content...
1
by: Johnny Jörgensen | last post by:
Now, the following will probably sound weird to you, but I can assure you that there is a good reason for why I want to do it. Unfortunately, I'm not ad liberty to disclose WHY at this moment in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.