.net - Using A New Version Of A User Control WITHOUT Removing And Replace Each One?

Nov 6, 2011

I'm self-taught in VB.net, having been a VB6 developer for years. I'm now out of the field but I'm making a forms app that I need for my new business. I am using VB2008 Express, and I'll upgrade to later versions when necessary. Because I am self-taught I mostly work from examples and there's a lot about .NET I don't understand.

SITUATION:I've built a Usercontrol. (A custom datetimepicker which I call "datebox"). Then in my application project, I add it to the toolox, then plunk it on a form. It works great so I use it many times in my project, each time with a various properties. No problem so far.

[Code]...

View 1 Replies


ADVERTISEMENT

Removing Tabs With User Control From Tabpage

Nov 19, 2009

I have a application with a tabcontrol. I dynamically open new tabs on which there is a custom control which is made of a graph and a datagridview with data. I fill this from a csv file. when I open few tabs like this my application memory goes over 120 MB. When I remove the tab I call the dispose on the custom control and a dispose for the tab. But the memory stays where it was (120+MB). It goes down only if I minimize the program. And when I show it again its around 10MB.

View 3 Replies

Removing Certain Properties In A User Control Forcing One Value And Not Editable In Design Mode?

Sep 25, 2009

How can I basically lock a default property so the user cannot edit it? For example, if I wanted to lock the BackColor property, how can I make it so the end user of the control can't edit it?

View 1 Replies

IDE :: Assembly Version, File Version And Publish Version In ClickOnce In VS 2008

Mar 31, 2009

How they relate and differ from each? What are the best practices for version control? Is there a primer about publish online? Or a good book?

And is it possible to make ClickOnce and a msi in one solution of VS 2008? If so, is there any conflict or pitfall?

BTW I am using VB if that makes any difference.

View 1 Replies

User Control And Panel - TargetPnl To Display User Control Named Vviewer When Click SearchBtn?

Nov 6, 2009

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.

View 1 Replies

User Control - Calling A VB Linkbutton's(within A User Control) Click Event From Javascript?

Apr 11, 2009

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.

View 2 Replies

Find And Interact With A User Control On Page From Separate User Control?

Oct 17, 2011

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.

View 2 Replies

End User .Net Version Requirement?

Jan 24, 2011

If I am developing a windows forms application in Visual Studio 2008, does the end user that installs the application need dotnet 2.0, 3.0, 3.5? Only winforms, no web (except it calls web services).

View 4 Replies

Removing All Tabs In A Tab Control?

Dec 1, 2010

is there a way to remove all the tabs on a page so that i can just bring back the one i want? this is for VB 2008 by the way.

View 6 Replies

Removing Blank Row In DataGrid Control

May 25, 2010

Is there a possiblity by any chance that a blank row in datagrid will be remove? Let's say the datagrid has this kind of info :

Column 1 | Column 2 | Column 3
User 1 NY 290-5542
Null Null Null
User 2 CA 350-5555

Lets assume that row 2 has a data and I inputed the data in row 3, however I change my mind I deleted the data in row 2 and that will leave row 2 blank. Is there a method where I can remove the row 2. The first thing come up on my mind was use a timer wherein it runs all the time.

View 8 Replies

VS 2008 Removing Properties From A Control That Is Already Used

Sep 28, 2009

I first noticed this problem using C#, but I thought at that time it was something that did not happen in VB, so I posted a similar question in the C# forums. I never saw it happen before, but it seems it does happen in VB too, so I decided to post the question again here in the hope that VB at least has something that helps me..The problem is that I have many (around 30) instances of a custom control on a Form. The custom control is just a class inheriting from Panel with some new properties. I decided to create two BackgroundColor properties (1 and 2) to allow for gradient backgrounds. I'm not sure if this matters, but I simply left the second BackgroundColor property empty (never initialized it), because I was not using it yet.After placing around 30 instances no my form, all in different levels of nesting in different FlowLayoutPanels (took me an hour at least to get everything right), I tested it out and decided it looked ok, and it didn't need a gradient background color after all.So, I went in the custom control code and simply deleted the second BackgroundColor property.The result was 30 errors in the form's Designer.vb file. It seems each control was still trying to set the property (to Color.Empty), but obviously could not find it.I could no longer access the form's design view, except if I click the 'ignore' button and lose all the controls.

Is there no way I can 'safely' remove a property from a control that is already on a form, so that the designer file updates itself accordingly and no longer tries to set the removed property?It seems foolish that I have to remove the 30 errors (actually 120, because I still need to remove 3 more properties) manually from the designer file, when I know the editor is perfectly capable of finding all references to some name and for example renaming them (the context menu Rename function), so why not delete them?I am sure I'm simply missing something basic here that I somehow never learned and never needed before in 2 or 3 years of using VB.NET.If not, do I really have to remove 120 lines manually, each hidden deep in the designer code in different lines?!I know I could simply remove all controls and re-add them, that would get rid of the errors, but it will take me forever to set them up again correctly, including the events etc..

View 3 Replies

VS 2008 Removing Properties From A Control That Is Already Used?

Feb 19, 2009

I first noticed this problem using C#, but I thought at that time it was something that did not happen in VB, so I posted a similar question in the C# forums. I never saw it happen before, but it seems it does happen in VB too, so I decided to post the question again here in the hope that VB at least has something that helps me...

The problem is that I have many (around 30) instances of a custom control on a Form. The custom control is just a class inheriting from Panel with some new properties. I decided to create two BackgroundColor properties (1 and 2) to allow for gradient backgrounds. I'm not sure if this matters, but I simply left the second BackgroundColor property empty (never initialized it), because I was not using it yet.

After placing around 30 instances no my form, all in different levels of nesting in different FlowLayoutPanels (took me an hour at least to get everything right), I tested it out and decided it looked ok, and it didn't need a gradient background color after all.

So, I went in the custom control code and simply deleted the second BackgroundColor property.The result was 30 errors in the form's Designer.vb file. It seems each control was still trying to set the property (to Color.Empty), but obviously could not find it.I could no longer access the form's design view, except if I click the 'ignore' button and lose all the controls.

Is there no way I can 'safely' remove a property from a control that is already on a form, so that the designer file updates itself accordingly and no longer tries to set the removed property?It seems foolish that I have to remove the 30 errors (actually 120, because I still need to remove 3 more properties) manually from the designer file, when I know the editor is perfectly capable of finding all references to some name and for example renaming them (the context menu Rename function), so why not delete them?

View 2 Replies

Run A User Control Sub After Container Has Initialized User Control Properties?

Dec 22, 2010

In a user control I have the code shown below.

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...

View 1 Replies

VS 2005 Using Combo Box In User Control And Getting Selected Value In Another User Control

Aug 31, 2009

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 -

MR.MainForm.Connection1.project_combobox.SelectedV alue.ToString

Error i am getting is :

System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
Source="MDR"

View 1 Replies

VS 2010 Removing Control Array Controls?

Mar 16, 2012

I have added controls to the form using a control array.. However, when I re-run it they stay and more appear. How do I get rid of the first set?

View 10 Replies

Is There Version Of .NET Framework 3.5 That Does Not Require Downloading during User's Setup Procedure?

Mar 30, 2010

I made a little program for Hobby-use, and I like it to be installed by an installer. There's an installer program (Windows Installer 3.1?) deliverd with Visual Studio 2008 but that does not do the job completely. I want a coupling to be made between a program and a the users startup directory.If Windows Installer 3.1 can do that after all, can somebody explain how? If not, is there a free or low cost, simple to use (no scripting) installer program what will do the job? At last: Is there a version of .NET Framework 3.5 that does not require downloading during the user's setup procedure?

View 5 Replies

Microsoft Script Control, Version 1.0 X64?

Feb 22, 2012

I am using Microsoft Script Control, Version 1 on the application and it works fine on 32-Bit OS, but when i upgrade to 64-Bit OS it stops working and the only workaround is to build the application as x86 and the application will work fine on x64 OS but will run under 32 Bit process.

Now I am looking for alternative ActiveX or method to get my application work on native 64 Bit OS.

Is there a quick way of getting this fixed with minimum code change?

View 5 Replies

Pass Version Of Windows To A Control?

Aug 25, 2008

how to return the following operating system data to a control:1) Version of Operating System2) Version of Service Pack3) Version of .Net Framework

View 7 Replies

Control Which Version Of System.IO.Ports Application Uses?

Jan 16, 2009

i think there are errors in the SerialPort DataReceived Handler in .Net 3.5 and .Net 3.5 SP1. is there a way i can control which version of System.IO.Ports my application uses? i am using VB 2008 Express.

View 3 Replies

VS 2010 Auto-increment Version Control

Apr 26, 2010

Since my VB6 days I've longed for this feature. Every time you build a version it increments by one. On VS2005/2008 I've seen a few 3rd party programs or tips and tricks to get something similiar. I mean who wants to see a version no. like 1.0.1234.5678789 I used to use autobuildversion but can't seem to get it working on 2010. Has anyone managed to get the auto increment to work in any shape or form. I can't find the AssemblyInfo.vb file to edit so my program is stuck on 1.0.0.1 unless I manually increment it? I mean is it so hard to implement a built in auto increment function, or am I missing something?

View 5 Replies

VS 2010 Simple Version Control Guide?

Apr 10, 2012

I'm a novice who does not need installers yet and does not collaborate and I was hoping someone might be able to point me to a simple guide for incrementing versions and backing up the source files so that if I ever needed to I could get back to the previous versions. I just don't want to get into Visual Source Safe, Team Builder, or other big hairy version management software. Also my VB Express book only talks about using the ClickOnce solution which doesn't seem like it's a fit for my needs. I'm thinking I should be able to do a build manually incrementing the version and manually archiving files or folders to a certain location.

View 4 Replies

Access User Control Attributes From A User Control?

Mar 27, 2009

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.

View 6 Replies

Version Control Add-In And Allows Multiple Check-outs Of A File?

Nov 23, 2010

I'm looking for Version Control software that works with VS 2008 & allows multiple check-outs of a file, merging the changes as each version is checked back in. Obviously this would require manual resolution when two programmers changed the same procedure,but that rarely happens here-what usually happens is we have two (or more) programmers working on different parts of the program that happen to occur in the same file so only one of them can actually do their work at a time. Highly inefficient.

We're currently using Visual Source Safe, by the way. I 'inherited' this so I'm not *absolutely* certain it can't be configured for this, but if so none of the older programmers (in terms of time in this office) know about it. I think they used a home-grown program. Besides, I haven't been able to remember who I heard about it from so remembering that really isn't a help-at least not yet.

View 4 Replies

C# - Replace An Image In A PictureBox Control?

Apr 10, 2010

Following on from my question here [URL]

If I replace an image in a picture box, should I dispose the original image first?

Or, what about this situation:

Dim bm As New Bitmap(32,32)
bm = New Bitmap(32,32)
bm = New Bitmap(32,32)
bm = New Bitmap(32,32)

Does bm need only to be disposed at the end, or should it be disposed before each re-creation?

A big oversight there on my part. I knew a control took care of disposing its children but It hadn't occurred to me that I should dispose an old image if I replaced it.

View 3 Replies

Replace One Control With Another Based On Selection?

Feb 12, 2012

On my form I have two radio buttons. One for CDs and one for books. If I select CDs I have a group box that changes visible = true and I have txt boxes there I want to input. If I select books I want the groupbox to remain visible = false and in its place a text box to appear. How would I do this? I know I can just overlap the controls but that looks hideous in designer.

View 3 Replies

Component One Spell Checker Control (version: 2.2.20082.82) With Apostrophies And Parenthesis

Dec 9, 2010

I am having an issue that I hope someone has a solution regard the Component One Spell checker control (version: 2.2.20082.82)... I am currently using the C1.Win.C1Spell.C1Spell control on a windows form application written in VB.net. The user will enter notes into a text box and push a button on the form that will call the .CheckControl() method and passing in the notes text box to perform a spell check on.

[Code]...

View 1 Replies

Items In TextBox - Removing It From A Textbox If They User Unchecks The Item?

Aug 31, 2010

I have a checkListBox with items. I want a textbox to contain the items were checked. How can I go about removing it from a textbox if they user unchecks the item?

Private Sub frdList_ItemCheck(ByVal sender As Object, ByVal e As System.Windows.Forms.ItemCheckEventArgs) Handles frdList.ItemCheck
Dim item As String = frdList.SelectedItem[code].....

View 12 Replies

Code That Works In Excel Version 2003 Does Not Work In Version 2007

Oct 21, 2008

This code no longer works in ver 2007:' Obtain max resources available for Excel

[Code]...

View 3 Replies

Make Programs Use A Lower Version Of Net.framework Other Than The Newest Version 4 That Comes With VS2010?

Jun 10, 2010

Is there any way to make my programs use a lower version of net.framework other than the newest version 4 that comes with VS2010?I use my programs within a closed network and there isn't an easy way for me to install any software since I'm not the administrator.

View 3 Replies

Auto-fill A User Input Control With The User's Windows?

Feb 11, 2011

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).

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved