Yesterday I added a new user control to a project I was working on: right click on the project name "Estimator", then add, then new item, then on the add new item dialog I typed the name of the user control, and I created my ButtonWithCheck.vb control.
My user control appeared on the toolbox, I inserted it in a form, used it, kept working on my project, and everything was fine. I saved and closed the solution.
Today I open the solution and I got an error: "Could not find type 'Estimator.ButtonWithCheck'. Please make sure..."
Greetings. I have a DataGridView control in a form, and as of a day ago, when I click on the control, I get *no* properties listed in the Properties pane of the IDE. The properties pane is totally blank. Neither properties nor events are visible. I have tried everything. Prior to this, the properties and events displayed normally.
Other controls' properties are displayed when I click on them, but not the DataGridView control. If, after clicking on my DataGridView control, I use the combo-box on the Properties pane to look at any other control's properties, they come right up. If I then select my control's name (DataGridView1) in the Properties pane combo-box, the IDE crashes completely and I have to restart.
I tried a repair re-installation. The same things happens.
I can set properties etc. programatically, but that sorta defeats the point of an IDE, not so?
For some reason a control on my form has disappeared. I can select it in the properties window and view all the properties (Visible = True) but I can't see it. It also doesn't appear when I run the form. How can I delete it, or bring it back?
The charting control has disappeared from my toolbox in VS2010. I know it was there when I upgraded to 2010 a few weeks ago. Both chart items are checked in the Choose Toolbox Items dialog but it doesn't show up in the toolbox. I'm pretty sure it was under the Data category. I tried resetting the toolbox but that didnt bring it back.
I'm having a problem importing a user control into a new project.I've created and tested a user control using the guide at url...If I choose Debug>Build, a .dll file is created in the release folder.According to what I've read, I should be able to open the toolbox in my new project, right click>choose items, browse to the dll and then import. This all works, but the control is 'greyed out' in the toolbox, so I can't drag and drop it onto the userform in my new project.I also tried importing by 'Add Reference' in the solution explorer and got an error about using a later version of the .NET framework, so I've set both the user control and new project to compile with the .NET 3.5 framework.
I have created a C# user control which I want to use in VB.NET .. the control works fine, but in VB.NET the Intellisense does not show any of the C# user control function descriptions (in summary xml doc tag). If I use the same control in a C# project the Intellisense show each function's description as intended..
am build my first windows user control project. It consist of the User Control window and a textbox. The idea is that it will only accept numbers as user input.I have added the controls and code in the textboxes keypress event.Built and added the control to the VS toolbox. Started a new app and added the control to the designer.
I have a "windows form" user control--that is, not on a web page etc. This user control has a form within the user control project. However, code from within the user control can't 'see' the form even though it is a public class---I don't understand why this is the case.
So how can I access the controls (a couple of radio buttons) on the form from code within the user control? I tried creating public properties on the form to return the state of the radiobuttons, but this still doesn't work. I get a "Reference to a non-shared member requires an object reference." error
Should I not be able to see the form since it is a public class?
I'm coming over from VB6 in which you could use 'user controls' to create reusuable custom controls. They were simple and contained and you can easily create several instances of a user control within the same or other apps. In vb2008 there are user controls but I can not figure out how to add them to forms or or other apps. Can someone please give me the the basic steps to add a custom user control to a form or project.
i want to create a user control using WIA but i m get a error message at run time Error Assembly generation failed -- Referenced assembly 'Interop.WIALib' does not have a strong name. i m working of windows server 2003.
I have an application going here Form1 has a panel on it named TargetPnl. I need my TargetPnl to display my user control named Vviewer when I click my SearchBtn and also need it to disappear when I click another button.
I created a simple user control and everything went fine.Then I created another of the same control (as a different project) from scratch (creating the controls in a different configuration; but pasting code from the previous one from a text file).As far as I know I did everything the same for creating a user controlCreate a Class Library project Then Project>Add New Item> User Control Then delete the initial class that was added automatically (usually named Class1.vb) Put all of my code and components into the user control class.However, when I wanted to run it in the debugger as I did in the previous project, I now get an error message:"A project with an Output Type of Class Library cannot be started directly."
how can i call a VB function - deleteevent() in usercontrol.ascx.vb from a javascript function in clickhandler(e) in usercontrol.ascx. The call should cause a postback because I need the usercontrol to display the changes.I am currently trying to do it by using a linkbutton with style display:none, and calling its click event from the javascript function. But i dunno how to call the click event.
I have an aspx page that has two different user controls. I want to find user control A and be able to set properties, etc., from user control B.
I was thinking I could do something like this:
Dim CMFilters As Control = Me.Parent.FindControl("CMFilters")
...but that doesnt work to be able to set properties and call methods. I somehow need to get the user control and and declare it as that user control type.
I now realize that it is incorrect because the container's InitializeComponent property initializations have not run yet and they must be run prior to Refresh being called.
How (where) can I run Refreash after the container has initialized this user control.[cod]e...
i am using vb.net 2005 to developed desktop application I am having two windows form user control , the first control name con.vb containing the design and code for connecting to database and getting a list of my project values in combo box.
Now the second user control report.vb which i am using to generate some reports , since the code behind is using connection to connect to various project database , so i want to get the value of
First user control into another how i can get the i have tried the below but its giving me error in run time but no error in design or code behind -
I am trying to build a tournament bracket application. In order to build the application efficiently I would like to make a user control "GameControl" that represents a game and give it attributes that represent the names of the competitors "TeamNameA" and "TeamNameB" ,an attribute "Winner" to represent which team should move on, and an attribute "NextRoundGame" that assigns another instance of the user control so that it can assign the "winner" to one of the "TeamName" attributes of the next round in the competition. If the controls were native to VB I feel like I could do it easily (I have only spent about 30 hours self teaching/tutorial following) but I can't seem to find out how to pass values to custom attributes of custom user controls through code.
Can I safely move ReferencePath information from a .vbproj.user (or .csproj.user) file into the corresponding project file? Note: All developers will be using developing from the same location on their machines.We'd like to allow users to maintain their own settings for other things, but have this basic info be setup once and checked into source control to be shared to all.
All the controls on one of my forms has vanished. I was attempting to doubleclick a radio button to get to the CheckedChange event, go some sort of COM error, then the next thing all my controls dissapeared off the form. I got some other strange things happening.[code]...
I went to go open up my form a minute ago and everything is missing!!! It is all there, but it is not. The form looks like a completely blank form with nothing on it. But all the controls are still there, somewhere, because if I click the dropdown at the top of the properties window, I still see all my controls, and my code does not have errors. It was working fine 10 minutes ago!!
I am creating a form for work where managers can report when they find a customer's personal information laying around on a desk (we work at a call center where agents answer calls for a wireless cell phone provider, so we take personal information security very seriously). Anyway, I am wondering if there is a way to have a text box autofill with that manager's windows username (since they will need to be logged into their own profile to use the form).
i have a windows from project and in that project i created a user control lets call itcustombutton1 now i can use that control quite easily either at design time or runtime by creating a new instance of it like
I was designing a Form in VS.NET but the form controls etc have dissappeared. I am left with a pnael which i can write code in but cant see the Form or its controls.
However - if i press the play button then i appears again but dissapears again when i close the form after playing it.
I don't know what happened I compiled the program and everything just disappeared from my main form....i can't name buttons the same thing that i recently had before everything disappeared so i know it still has to be there somewhere, i just don't know what to do.
I have a vb.net application, it is so far so good in high resolution. When I set the screen resolution of the machine to | 800 x 600, the header of the Save button has disappeared. If you look at the attached file, that means caption "F12" disappeared. I tested it in different machines, sometimes it is there but it may not be there in other machine.
I don't know whether it is the code error or machine environment setting up. OS: WIN XP SP2.
I've just started using Visual Basic - I'm completely new to programming altogether and thought it might be a useful skill - and I've been slowly working my way through the tutorials - from 'Learn VB' in the Start Page - and now the MsgBox function has disappeared! I have no idea why, as I'm doing the same thing (I think) as I was always doing. New Project > Windows Forms Application > Right Click on 'Form 1' in the solutions box > Source Code. Anyhow; when I type MsgBox there is neither a dropdown box with that name (IDE I think it's called?) and it becomes underlined with a squiggly blue line. I seem to remember that, in the IDE box, there were several different types of logos next to each name, but now only the logo that shows a windows with what looks like green highlighter written on it (you can see it if you type in #If) appears. I've already restarted the computer (via the start menu).
ps. I'm Running 'Visual Basic Express 2008' - and downloaded that yesterday (23/11/09)