IDE :: Prompt Designer To Ask For Control Name?
Feb 17, 2009
I'm using VS2008, targetting the 3.5 framework.I'm getting sick of having to create a Control, then manually rename it later. Is there any way to force the Designer to ask me for the name in a Dialog as it is attempting to create the Control? Or even to autofocus to the Control Name in the Properties menu?
View 2 Replies
ADVERTISEMENT
Jan 27, 2011
I am attempting to update an existing winforms application, that was created with a dataset control on all the winforms pages. I have ported it from VS 2008 to VS 2010 and I need to update the database section and connect it to the SQL backend using traditional code method.In the Solution explorer, when I click on the Dataset files, and click "Exclude From project" I am unable to build the project.Is it advisable to comment out the code lines that refer to the dataset in the .designer.vb files?
View 1 Replies
Mar 12, 2009
Showing Command Prompt On Winform Control
View 1 Replies
Jun 30, 2011
I have created a VB.NET program using windows forms. The program runs on a remote PC and displays information on a screen. The computer does not even have a mouse or keyboard connected to it. The program shows the information based on the file that is loaded.I want to be able to change this file remotely to another file that is already on the remote PC. I can't use a graphical remote desktop client as we have very limited bandwidth.So, my idea is to change the file using the command prompt.I'm not sure how to do this. Should I use something like this and load DosModule first:[code]How would I then read commands that is send to the program? I also only want one instance of the program running.
View 1 Replies
Mar 21, 2010
Is it possible to make a form that can set the properties on a custom control in the designer? What I mean is I want to know if it is possible to show a dialog that allows you to set the settings for a certain property like if you were adding items to a listbox.
View 3 Replies
May 1, 2009
I've played around with this and have figured most of it on how to set the properties of most controls in the designer. I have 2 check boxes I need to set the values on but do not know how. 2 fields one for each in the db with a char(1) value, can be Y or N. If it a Y in the db how would I set it as checked on the form?
'cboPosition
Me.cboPosition.DataBindings.Add(New System.Windows.Forms.Binding("SelectedValue", Me.FmfieldmanmasterBindingSource1, "position_name", True))
Me.cboPosition.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.FmfieldmanmasterBindingSource1, "position_name", True))
[Code] .....
View 9 Replies
Jun 9, 2010
I have a form that has a tab control on it. The tab control contains three tab pages.I have been coding for some time now and just discovered that I could not access one of the pages; the IDE complains that the object is undeclared.
View 1 Replies
Jul 22, 2009
I am working on a application which is basically a screen designer. I have implemented the form designing capabilities using IDesignerHost and other interfaces. In my application user can pick a component from toolbox and drop it on the designer screen and can configure the properties from property window. I have my own set of properties which gets populated from database. Screen designer is working fine but the problem occurs when user changes some properties from property window. Say user changes property 'Width' then I change the width of the selected control in designer but the problem is SelectionOverlay shows the old size. When I select another control and select old control again, SelectionOverlay(resize handlers which appears around the control) shows properly. How can I tell the SelectionOverlay that the size of the control is changed.
View 2 Replies
Jul 6, 2009
I'm getting this exception in the designer when I try to look the form that contains the tab control in design mode. After I click OK, the designer simply shuts down
View 1 Replies
Nov 25, 2011
I want to add a List(Of Book) property to my user control. I defined a Book class and BookCollectionEditor class for CollectionEditor. And also I defined a public property named BookList for my user control. For a custom control it works fine but for user control, the designer does not display my property. On markup I can add a Book item but on designer it gives error: "Type 'System.Web.UI.UserControl' does not have a public property named 'BookList'."Isn't is possible to define a list property for a user control?
<TypeConverter(GetType(ExpandableObjectConverter)), Serializable()> _
Public Class Book
Private _name As String
Private _author As String
[Code]...
View 1 Replies
Sep 16, 2011
I have written a Visual Studio 2008 addin that adds controls to a Form. I want some of those controls' Visible property set to False so they're hidden during runtime, so I do this:[code..]
This doesn't work. Not only is the control invisible in the designer window itself, but the Visible = False code doesn't even make it into [FormName].designer.vb. I have tried forcing Serialization on the Visible property like so, to no avail:[code...]
View 1 Replies
Aug 5, 2011
I need to add attributes to certain controls in a Windows Forms project. It needs to look something like this: [code] I can go in and edit the designer file to get more-or-less the desired effect, but those designer files sometimes come with the caveat that they are automatically-generated files. I'm worried that the designer might overwrite any changes that I make to the file. That said, is there a way to add attributes to controls using the designer or is there some way that I can add the attributes in a separate file?
View 1 Replies
Apr 5, 2010
How do I set a User control (or a class with a few properties) to appear in the tan bar at the bottom of the Designer? I have tried googleing it but, I don't know what that bar is called (Kinda Hard to Google without know what to Google)
View 2 Replies
Sep 21, 2010
I'm writing a custom control and I want to add a "MessageText" property of type String:
<Browsable(True),
DefaultValue(""),
Category("CustomControls"),
[code]....
The MessageText property is a multiline text, and the user must be able to set the text using the designer. The problem is that the designer doesn't allow to enter a newline directly for a string property.I want the same behaviour as the system TextBox's Text property, where you can click on the down arrow and write lines in the small text-editor that appears:How do I do that?
View 2 Replies
Feb 16, 2012
I created a server control which consist only of fews buttons.
CWNavigation.vb
<ToolboxData("<{0}:CWNavigation runat=""server""></{0}:CWNavigation>")> _
<DefaultProperty("Id")>[code.....
I then referenced it in my ASPX page. Take note that the control are in the same solution, same project located in Commun/Navigation/CWNavigation.vb.
<%@ Register TagPrefix="NAV" TagName="CWNavigation" Src="~/Commun/Navigation/CWNavigation.vb" %>
I added it to the page.
<NAV:CWNavigation ID="CWNavigationService" runat="server" />
But the designer file along with the code-behind generate it as.
Protected WithEvents CWNavigationService As Global.System.Web.UI.UserControl
View 1 Replies
Nov 27, 2010
I'm using VB.Net. I have a WPF User Control called "NavigationPanel" which I created with the Designer. By default, its scope is Public. When I change its scope to Friend in the file NavigationPanel.xaml.vb, I recieve the following error:
[Code]....
View 1 Replies
Jun 4, 2011
I am making a TabStrip control to hold a number of tabs just like TabControl, but only with the tabs, no page. The control has a "Tabs Collection", which stores a list of "Tab" class. "Tab" is not inherited from Control, but each tab has its events. So when the user add a "Tab" in the "Tabs Collection", each "Tab" instance should have a (Name) identifier, which user can access it in the code, and with WithEvents keyword so users can add event handlers to each "Tab". The expected out come should similar to this:
Friend TabStrip1 As TabStrip
Friend WithEvents t1 As Tab
...
Me.TabStrip1.Tabs.Add(t1)
[Code]....
View 3 Replies
Feb 5, 2012
I have a really simple user control.Using the Designer I put two TextBoxes on it, nothing else.Here's the entire .vb file for this user control:[code]
View 6 Replies
Dec 30, 2011
A recent project of mine has been to make a designer. I've finished everything, but when I click the controls to show the properties window, the control interacts with the cursor. So my question is: How do I freeze the controls from interacting with clicking or key presses without disabling the control itself?
View 11 Replies
Sep 24, 2009
I have cooked up my first iteration of a code generator which creates the basic Entity models from a SQL Database Schema. Currently, It will scan a SQL Db Schema, and create .vb code files complete with private members and Public property declarations for every User table in the Database. My next step is having it add the basic CRUD procedures as well. Are we mere mortals able to access whatever technology allows the Partial class files created by vs to be hidden/Linked to their "parent" files, such as the Partial Class files for Windows forms or any other designer-generated control? My thinking is that it would be handy to be able to re-generate code files from the database if necessary to reflect changes in the schema, without overwriting any other properties or methods added to a class in addition to those derived from the database. SO I am hoing I can have the Auto-generated output go to a Partial Class file, and then use a regular class file of the same name for the rest of the code. My Concern is the multiplicity of files that might result, so I was hoping it is possible to "tuck them in" to the parent code file in the Class View.
View 7 Replies
Jun 4, 2011
what account for this error message in ls beta 2?'' The last change wasn't successfully persisted.Please shot down the running application.
View 1 Replies
Feb 8, 2011
The company has a Visual Studio 2010 Ultimate project that is written in Visual Basic. The project has several strings in the resources file (Resources.resx). One of those strings (VersionSuffix) contains "" when we are distributing a normal version of our product and "BETA" when we are distributing a beta version of our product. Most of the time we distribute a normal version of our product. Therefore, most of the time the resource string VersionSuffix contains "".
Recently, we attempted to distribute a beta version of our product. Therefore, we changed resource string VersionSuffix from "" to "BETA". However, it quickly became apparent that the resource string VersionSuffix was being used as the default value for several control properties in the form designer. For example, if I draw a rich textbox on a form then file FORMNAME.Designer.vb will contain the following.
Me.RichTextBox1.Location = New System.Drawing.Point(286, 306)
Me.RichTextBox1.Name = "RichTextBox1"
Me.RichTextBox1.Size = New System.Drawing.Size(134, 33)
Me.RichTextBox1.TabIndex = 32
Me.RichTextBox1.Text = Global.PROJECTNAME.My.Resources.Resources.VersionSuffix
We are unable to find anything anywhere that indicates that this resource string should be used as the default value for control properties. Therefore, we have no idea why this resource string is being used for this purpose. We would like to change the control property assignments in the designer from Me.RichTextBox1.Text = Global.PROJECTNAME.My.Resources.Resources.VersionSuffix
Me.RichTextBox1.Text = "" However, we don't know why these strange assignments are being made. Therefore, as soon as someone adds another control the problem will most likely return. Does anyone know why this is happening and how to prevent it from happening again?
View 10 Replies
Mar 30, 2011
My self and most everyone else on our team is having the same issue with VS2008. The designer will not render many forms in designer mode. Currently I am getting this error "The type 'Team.CAD.UI.My.Resources.Resources' has not property named 'view_16'" Well veiw_16 is in the resouces file.
View 2 Replies
Mar 24, 2010
How can i make it so vb can run a cmd prompt and all the output will be displayed in textbox1.
View 2 Replies
Apr 15, 2010
I have created a VB 6.0 Active-x control for an ASP.NET application.The control is responsible for downloading files from Server to Client machine and installing them.In general will have a set of applications needs to be run in sequence order.Every time i try to install an application it asks for UAC prompt and then proceeds to installation.Functionally it is working fine.But my client requirement is UAC prompt should come for the first process only and should not prompt for the following installations.I am using CreateProcess() API method for installations.
View 5 Replies
Mar 13, 2012
I am trying to figure out how to have a prompt open up when I open a program.
I am trying to set a size to an Array and I want the Prompt to ask for the size that is needed.
View 2 Replies
Apr 19, 2009
I need to sort my code to work for Visual Basic 2008 Express Version, I am trying to open the Command Prompt through Visual Basic and make Visual Basic run through the Command Prompt. By this i mean i need Visual Basic to Send Messages from a text box on my design to the command prompt, e.g to make my program go through the command prompt to do the basic hide files in a picture.
[Code]...
View 1 Replies
Aug 12, 2011
I'd like to ask about the way in ASP.NET VB to detect the changes in stocks prices, if the price inceased, the containing cell inside the grid blinks in green, decreased will blinks in red? ex: if the price now 10.00$ and increased to 10.01$ the containing cell will blink with 1 second in green..
View 1 Replies
Jun 29, 2011
I am trying to import Oracle tables to SQL Server. Now i am specifying user name and password for oracle. But how to prompt oracle to ask user name and password when its DSN is selected and store in variables(user id and PWd)
Through out this process i am using ODBC connections.
View 2 Replies
Dec 24, 2009
I am not a developer but I like tweaking with system, I am recently trying to create an app that can reset admin password, but the problem is that I am not able to run the following command from standard account.
net user user_name * I know it is because of security reason but there must be some way so that software developer can tweak it, can someone guide me..[URl]..
View 14 Replies