VB 2005 Add A Form To DLL And Keep It Private To The Dll?

Apr 24, 2010

I am wondering if there is a way that I can add a form to my DLL and keep it private to the dll? I have a class which handles communication. I would like to be able to call a status form that would have a progress bar on it to show the status of a file upload and perhaps a form for handling comm settings.

The class is public with several public methods and properties but I do not want the form to be available outside the DLL. When I add a form to the project it is set to public and when I change it to private it tells me it must be inside another class.btw any methods used must be supported by CF V2 as this will be ran on Mobile devices.

View 14 Replies


ADVERTISEMENT

VS 2005 Modules Vs Private Classes With Shared Members

Mar 28, 2011

I've read that modules are basically shared classes. For a module though, you can call a method directly without prefixing the module name. So I can do this: methodTest("abc", mod1Enum.enum2)But for a class with shared members I have to fully qualify the method call, and in this case fully qualify the enum:[code]In our conversion from VB6 to .NET the need to fully qualify all calls like this might be an argument for us to bring our VB6 modules over as modules instead of converting them to classes.

View 7 Replies

VS 2008 Sharing Variables - Private Sub Could Use The Variable Created On Private Sub

Jul 23, 2010

if for example i have two private sub I declared a local variable on private sub a... is there a way that private sub b could use the variable created on private sub a? Im asking because im in a problem in my app were using global variable is not an option to make the long story short

View 5 Replies

Difference Between Dim And Private Inside A .net Form?

Mar 23, 2011

difference between the Dim and Private inside a form class?

View 3 Replies

Make Private Controls In A Form?

Jun 23, 2010

make all the controls that i've added to my form (in design time) Private? or do i have to manually open up the .designer.vb and edit it?

View 2 Replies

How To Access Controls' Private Properties On Another Form

Feb 25, 2010

I am trying to access the controls' properties on another form without having to modify the code of the other projec (the one containing the controls that I want to access) because it is already compiled as a DLL. In this DLL that I am trying to access, the functions/sub-procedures are all declared as private. Would there be any way of accessing the controls' properties without having to modify the DLL? Basically what I am trying to do is create a sort of console application wrapper for the DLL that would create a new instance of the DLL's form and then make certain checkboxes checked and click certain buttons. Basically, I am trying to automate the form as it currently exists.

View 7 Replies

How To Access Variable Located In Private Sub On Same Form

Jul 25, 2009

How to access a variable that is located in a private sub and then display that variable in another private sub located on the same form.

My actual code is:
Public Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Dim strFileName As String
strFileName = OpenFD.FileName
OpenFD.InitialDirectory = _
[Code] .....

Obviously, the sub in blue has nothing in it currently and so this is the one I would like to access the variable in. The variable I want to use again is 'FILE_NAME'.

View 27 Replies

Make Form Private In Class Library?

Feb 27, 2012

I'm programming a class library, i want to add form but i need this form to be private so it cannot be seen from outside the library.

View 4 Replies

What’s The Difference Between Private Sub And Private Function

Dec 14, 2011

I am completely lost on procedures. Whats the difference bewteen Private sub and private function?

View 1 Replies

Make Compiler Flag Unitialized Form's Private Variable As Error?

Jun 29, 2010

I can make the compiler give me an error (Use of variable prior to assignment) with:

private sub Test()
Dim ord As Order
Dim ord2 As Order

[code].....

View 2 Replies

Remove "private Subs" From A Form?

Nov 20, 2010

I was wondering if there is a way to remove "private subs" from a form. Many times I double-click the wrong button in the form, and that sub which pops up will stay in the code forever, which is making the code more messy.

Another thing is that if I change the name of a button in the buttons properties, the "Private sub button1_click..." in the code will always have the old name. Is there any way to update this name in the code?

View 3 Replies

Transferring A Form Array Into A Private Class Array?

Mar 15, 2010

If I make the following array in a push button event and I want to put those array variables in a class array. How do I do that? I am just beginning to learn about classes in vb.net but I am having problems using classes and arrays.Is there any good tutorials on that subject.

[Code]...

View 7 Replies

Store PDF File Into Sql Server 2005 And Display In A Picture Box On VB 2005 Window Form?

Mar 13, 2009

I am using memorystream to get and store images into sqlserver 2005 table image field. This process is working and I am able to display image in picture box. I need to be able to store PDF files into the same field and be able to display in a picture box.

View 2 Replies

Calling Private Subs In Another Private Subs?

Jun 15, 2009

I'm trying to call a private sub in another private sub. For example ;

[Code]....

View 13 Replies

VS 2005 Copy Form Within VB 2005 Project?

Oct 12, 2009

I'm attempting to copy a rather complex form from one part of my project and use it (modified) within another part (ie, depending on whether it's maintenance or an outage, you'll get a slightly different email screen).

My first attempt failed miserably, as I had simply right-clicked and pasted the form within the project, assuming renaming the controls would work. nope, I didn't realise that there was stuff in the original form that was renamed as well, and that created a monstrous pile of errors.My second through fourth attempts also failed, generating errors in forms that (I thought) weren't related or connected. Once I deleted the copied form, all was fine.

So, short of trying to rebuild the form from scratch (using a different naming convention for my controls etc.), is there a simple way of doing this? This seems to be such a simple task, but alas I was wrong....(or, at least it's not easy with the information I have right now.

View 7 Replies

VB 2005 - Register Form - Store The Added Username And Pasword To The Login Form?

Mar 11, 2010

i have a main menu on my program which has the option of registering. I have enter name and password ..and a button Confirm

i want to be able to store the added username and pasword to the login form so that it will work...

what must i do? also where would this data be stored...

View 4 Replies

VS 2005 Child Form Remain Enabled While Modal Form Displayed?

Oct 28, 2010

I have a VB. Net App where I want the user to open a modeless form which contains reference information about items in a select box. If the user double clicks the item selected in the list box a modal form is opened to edit the item.I want the previously opened reference form to remain active/enabled, that is, I want the user to be able to click on it, move it, etc.I was able to get the form to at least show up on the task bar by setting it's "ShowInTaskBar" property to true, however, when it comes to the front the user can still not move it to the side to view all of the Edit Forms information.

View 7 Replies

Forms :: [2005] Form-To-Form ComboBox Item Defaulting?

Jan 18, 2011

I have been creating a call management application and I am having a problem with something that I have spent weeks on trying to get working and nothing I try is working for me. My application is an MDI application written in VB.NET 2005 Professional, using .NET Framework 2.0. It uses a back end database using Microsoft SQL Server 2005.When the MDI application launches, a form is displayed to the end user asking for phone number (MaskedTextBox) and a partner name. The partner names are within a ComboBox.

When the end user types in the phone number and selects a value from within the ComboBox, s/he clicks on the start button. This then opens a second form. The phone number from the MaskedTextBox is to default in a second MaskedTextBox (this I am able to get working without issue.) The partner name selected from the ComboBox is to default on the second ComboBox. This is the part where I have been working on it for weeks and not able to get it to function.

The second form has many ComboBoxes, all of which pull down items from a particular table within the database. Some of them are editable and some are not. The ones that are editable are also auto complete Suggest/Append on the ListItems.I wrote a sub to handle the population of these ComboBoxes and also to handle if they are editable or not. All of this is working. However, my main issue is that I can't get the value on the second form to default to what ever was selected on the first form. I do not get any errors but regardless of what I do, the second form always stays as the first item in the list regardless.

The code I am using is as follows:

<CLSCompliant(True)> Public Sub PopulateDropDownListFromDB(ByVal cboName As Elegant.Ui.ComboBox, _
ByVal TableName As String, ByVal ColumnName As String, _
ByVal UseAutoComplete As Boolean, _
ByVal UseSQLDistinct As Boolean)

[code]....

View 2 Replies

VS 2005 Moving Rich Text Box String From Form To Form?

Apr 15, 2009

simple problem Basically in form1 i have a line of SQL code in a rich text box called rtb_select

what i would like..This code to run under a connection string called strSQLSelectQuery in form2

I have been told someting like strSQLselectQuery = rtb_select.text would work however because rtb_select is in a different form in the same project it does not recognise rtb_Select

View 2 Replies

VS 2005 - Generate Form Code - Put The Buttons On The Form

Oct 30, 2009

I'm making a game maker, and I just need to know how to put the buttons on the form. where to add the button code in the Form1.Designer.vb file? I just need to know what the syntax of InitializeComponent is.

View 7 Replies

VS 2005 Event Is Lost When A Second Form Is Called From The First Form

Dec 31, 2009

I have two forms. Form1 and Form2. The user is supposed to fill out some information in form2 which then will be used to compute some data in form1. However when I used the code, Form2.Show, within a function in form1, the form2 is diplayed but when the user fills the data and submits them using the ok button, the code does not return back to the function in Form1.

View 3 Replies

VS 2005 Form Load Vs Form Shown Events?

Aug 25, 2010

aside from the difference mentioned below, what are other difference the two events might have and how will affect the application as a whole? What is more preferred to use and why?

Form Load:
*Do stuff*
Form shows up on monitor
Form Shown:
Form shows up on monitor
*Do stuff*

View 9 Replies

VS 2005 Pass A Value From An Independent Form To A Child Form?

Nov 24, 2009

how to pass a value from an Independent form to a Child form...

here whis is the data from..

the indenpendent data is selected from the datagridview by just double clicking the cell the selected data will pass into the combox of child form (Note: this is combobox not textbox)...

i'm done with textbox it work fine..

look:

Independent form when user duble click the datagridview

Private BoxToUpdate As TextBox
Public Sub Start(ByRef DescItem As TextBox)
' Me.Close()

[Code]....

how could i able the value into combobox from independent form into child form...

View 1 Replies

[2005] How To Use Bindingsources From Main Form On Dialog Form?

Mar 2, 2009

My project has a single dataset with about 6 datatables. Each of those datatables has a TableAdapater and a Bindingsource on the main form (due to various databound controls).

Now, I want to have a second form for adding a new record. If I bind the controls to the datasource it creates new TableAdapaters and new Bindingsources on that form. I was wondering if it's possible to simply use the ones from the main form instead like this

[code...]

View 3 Replies

Difference Between Public Sub And Private Sub And Private Function And Public Function And Sub And Shared Function?

May 31, 2011

explain me the difference between them? I'm new to visual basic, and I need to know the very basic things in Visual Basic allowing me to become a professional User

View 8 Replies

VS 2005 Connecting A Form With Another Form?

Jul 10, 2009

i took two forms named From1 and Form2....Then i added a button in form 1...When i click the button in Form1 then it will display the Form2....so i did the following:

in the code i added:

Attachment 71871

the output i get:

Attachment 71872

Also,I changed the StartPosition property of the form2 to center screen to get the Form2 at the center of the screen.but what should i do to get the Form2 at a desired co-ordinate according to my wish other than the options present in the StartPosition property such as centerscreen,centerparent,etc etc??????I tried the manual but its not for giving the desired co-ordinate of the Form2 display........

View 5 Replies

VS 2005 Form Icon In MDI Form?

Aug 11, 2010

I'm going mad about a simple (???) problem in my VB.NET application migrated from an old VB6 application.In the old one, this is how the MDI form is when there is no form opened:and this is how the MDI form is when there is the form openedThe 3 spot icon is the icon of the form.Then, this is the situation in my new VB.NET app (I've changed the main icon of the app):no form opened

View 3 Replies

When To Use Dim Vs Private

Nov 17, 2009

I am pretty new to VB.Net and OOP in general and am picking stuff up every day, but it is so easy to become burnt out with the sheer amount of info. Therefore I am taking it slowly. Yesterday I was reading my book and read that using Dim for class level variables is allowed(if the compiler is set so) but is bad design and I should instead use Private. Dim defaults to private anyway. So my question is where should I use Dim instead of Private?

View 14 Replies

VS 2005 - Form Load - Retains The Previous Values During The Form Load

Jul 27, 2009

Imports System.Data
Imports System.Data.OleDb
Public Class Form1
Dim con As OleDbConnection
Dim cmd As OleDbCommand


[CODE]...............

The insertion part of the form works great. But my problem is in the form load part......If i leave a field blank(Null),then perform Save operation,close the form after successful insertion and then reopen the form,then it retains the previous values during the form load......This is only in case where i leave a field blank in the previous data entry in the database.......But if i enter values in all fields then form load is working great.

View 2 Replies

.net - Using Private Function?

Oct 30, 2010

I am using following code to run a private function.I have two values in my combo box, One and Two and two private functions with the same names, Private Sub One() and Private Sub Two()I want my application to call the function whatever value user choses in the combo box.If One is chosen in the combo box, Private function one should be called.Code is below, that does not work

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim vrValue = ComboBox1.Items(1)

[code]....

View 3 Replies







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