I am using VS 2013 Professional. I am trying to make a website in ASP.net Web forms (C#). While using the web designer in visual studio, I cannot drag and drop elements vertically. In other words, no matter where I drop the element, it appears at the start of the line. I've done research and this appears to be a common problem. However, still no solution found. How do I enable FULL drag and drop control, not just vertically ?
You can move Controls freely in VS 2013 by:
Remove all current controls
Go to Tools > Options > Html Designer > CSS Styling > Change positioning to absolute for controls added using Toolbox, paste or drag and drop.
Now drag and drop a new control in page.
* 4. Click on the Label that appear above the control (asp:button#Button1 for instance) and move it any where you want.
A friendly piece of advice:
But it seems that you aren't familiar with web designing, this way is not recommended, it's not a WindowsForm, you deal with wide rang of browsers and resolutions.
In fact when you can move controls freely, you set style="position: absolute".
When your web page is finished, then open it and resize your browser, then you will completely understand what I'm saying.
If you want to design a real web page, you should go for CSS and do a little search about it.
Related
I'm new to editing web pages on ASP.NET webforms and is currently exploring, whenever I add items, they are always added on top left and I can't move it to center, I just want my button to be at center.
I'll use my website for school purposes only and most likely will be disposed after some 2 years, that's why I used webforms instead of MVC because this is a short-lived project
How do I move it freely?
I'm not too sure what you mean, however, I will try and provide a solution.
Unfortunately, because of a bug, the menu is disabled for and based controls. To enable the menu, add style=”display:block” to labels or hyperlinks. This will be fixed in the next service pack. You can then use the Position dialog to set positioning mode:
https://devblogs.microsoft.com/aspnet/absolute-and-relative-positioning-in-visual-web-developer-2008-designer/
this is a good website to help you.
Go to .aspx Source page and modify the control's style like this:
style="position:absolute; top: ...; left: ...;"
Now you can drag it to anywhere you want. But setting the position of the control programmatically is a better choice.
Currently I am working on a project in which a combo box determines which panel is shown. This gets very messy since all the panels are on top of each other and it becomes very hard to determine what is what.
I was wondering if there is anything that can help me in Visual Studio 2013 to solve this.
You could use Document Outline window which provides an outline view of elements present on the form.
On the View menu in Visual Studio, click Other Windows, and then click Document Outline. The Document Outline window will open.
There is another link which explains How to: Layer Objects on Windows Forms.
By layering you could manipulate their z-order of control at design view. There is option to change the Order of control either Send To Back or Bring To Front.
MSDN reference also explains how you could manipulate ordering programmatically.
I am working on a project in Visual Studio 2013, and recently I have found that the controls on any form simply refuses to move when I use the mouse to drag and drop. Instead it lets me drag, then as soon as I move the cursor it snaps back into place. Then when I let go, it selects the control the cursor is hovering over.
The keyboard keys work fine, but I don't see why the program has simply changed the rules on me from a convenient system to an annoying and tedious one.
The controls are not locked and the problem effects every form. If it helps, I use Citrix as a thin client on my computer to access school programs.
Hi can you please check the CSS styles
setting:Tools--> Options-->HTML Designer-->CSS styling--> then check
the "Change position to absolute for controls added using toolbox,
paste or drag and drop" check Box.
It should work
i am building a C# application, i have explored its all controls but i cant find the left menu style which i usually see in software applications for example visual studio, i am attaching the image of what i need.
Please let me know how can i use it in my forms. I have used a tab menu control in visual studio, but it is not what i required, its tabs are vertical, but i want the exact like i shown in attachment. I think it requires some reference to add.
I don't think that control is available, which means you would have to make one yourself. Here is a link from someone that made one. I haven't tried it: Visual Studios "My Project" Tab Control
There is no such a control in the ToolBox by default. But you could create one for you.
Creat a user controller.
Added a SplitContainer and set Dock.Fill.
Add a FlowLayoutPanel to the Left panel. Add buttons or labels as you wish and implement the click event.
I have two questions.
I am usinq Devexpress Winforms
What is the name of control of the
Visual studio toolbox.I wanna add a
control list like visual studi
toolbox.What is the name?
How can I add the flow chart to my
c# project?
For Dev Express, I would perhaps try something like the XtraNavBar:
Windows Side Bar Control
For a flow chart, I don't think Dev Express has a C# winforms flow chart right now.
See comments from Dev Express
#Deneme, The style of control that you see as the Visual Studio Toolbox is called 'an accordion control'. There is not one in the standard forms toolset, but it is not too difficult to build your own out of buttons & panels, and you can tailor it to your own needs and situation.
As for your second question about adding a flow chart, I am not aware of a single tool that you can drag and drop on to a form and set your users loose, but again, it should not be too difficult for you to create panels & buttons to create your own. Depending your needs you may be able to use some pieces of the Office Developers Toolkit to help you get there.