Difference Between Dim And Private Inside A .net Form?
Mar 23, 2011difference between the Dim and Private inside a form class?
View 3 Repliesdifference between the Dim and Private inside a form class?
View 3 RepliesI am completely lost on procedures. Whats the difference bewteen Private sub and private function?
View 1 RepliesWhat is the difference between Private Sub /private Function / Private Class and to use them?
View 4 RepliesI always used to define variables like Dim xxxx As yyyyy. In the tutorials I'm looking at though they do Private Const xxxxx As yyyyy. I wonder just what is the difference here? What is the significance of this change? What am I actually doing with 'Dim' and what is this Private Const doing different?
View 12 Repliesgive me a good resource that explains the difference between a Private, Public, Shared Functions/Sub/Variables? I normally use Public for Subs/Functions inside of Modules I call from other parts of the program. But I'd like to get more of an understanding of how and when to use them. I want as little as impact to a system that is running my programs as possible, so i guess the key here is I'm trying to just get more proficient in my coding.
View 8 Repliesi have have a few questions about the syntax of the lan.:
1) What is the 'Get' statement and when do you use it?
2) Whats the difference between public, private, protected etc... when declaring functions and subs.
3) When would you use the overrides property?
I'm trying to make an application that calls a function to create a timer, but I cant use WithEvents or Private inside of a function or sub, Is there any way to do this?
View 5 RepliesI have as sub that is triggered from the file system watcher when the new file is created in spec. directory.I need to call some function to do something with that file. [code]
View 6 Repliesexplain 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 Repliesif 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 RepliesI believe there wont be any diff if user clicks the button on the form and the click event is fired OR if we call the button click event / function in the code. Because in one my project, this does make diff. If I click the button on the form, the App works great but same button if I click it thru the form code, the whole process crashes. This happens in Vista / VB.net.
View 12 RepliesI can't make difference between public class and private class and friend and protected friend class.
View 1 RepliesI 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.
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 RepliesI 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 RepliesHow 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'.
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 RepliesThe following code does create a form within a form and does place NotePad inside the child form. You have to manually start NotePad prior to execution (I work on that later) but the code does work¦ My problem is now I want to manipulate the properties of notepad i.e. focus, size, location, etc. but I cannot figure out how to reference notepad and its properties.
[Code]...
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].....
What is the difference between these?
A.) Using xForm as New frmCall()
xForm.ShowDialog()
End Using
B.)Dim xForm as new frmCall()
xForm.ShowDialog()
xForm.Dispose
C.) frmCall.Show()
They are all showing the form and I know it has difference but I don't know what. Can somebody explain this?
i am asking about using the progress bar into the status bar to move when i load any child form inside the MDIParent form.
View 1 RepliesThere's a richtext box in Form 2 and a WebBrowser in Form 1. The richtext box contains several hyperlink. How can I navigate the WebBrowser in Form 1 by clicking the links inside the richtext box in Form 2.
View 4 RepliesInside a form, I would like to display a pdf file which is already available in my resources (template file "untitled"). In this pdf file, I have some fields which get their values from some texboxes in another form. My aim is, when the user triggers the button to call this form, it should insert the values inside the pdf file and display the output pdf inside the form.I have written the code to an extend but could not finish it myself after my many trials... Now here are the two things I cannot manage:I can use a directory to read the template pdf "untitled1.pdf". But my aim is to use the file inside my resources. can save the output file in a directory but this is not I want to do. I want to display the output pdf.
View 1 RepliesI have a quick simple question, what is the difference between a windows form and a web form? I am using Visual Studio 2008 express. I am trying to add a email form to a browser that I created and I am uncertian what type of form to use. My biggest problem is trying to understand what the differences of form types are. Are they just templates to make it easier to design on the front side or something else?
View 5 RepliesHow does Visual Studio and other similar programs display a form in their IDE? Is it possible to achieve the same or a similar effect using C# or VB.NET?
View 3 RepliesIn MDIParent, in my formload in MDIParent, one form is load. And i want the form when i click a button, there is another form will be loaded INSIDE the MDIParent?
View 4 Replieshow to minimize child form inside of parent mdi form in vb.net? I change the property of "IsMdiContainer" to "True". but when i minimize parent mdi form, it is not minimize the child form.
View 2 RepliesI have a MDI form containing 2 other forms that I first created via GUI and than manually added to the MDI form.Form1 = MDI formForm2 = Form containing a WMP and buttonForm3 = Form containing a butoon. This form's opacity is set to 50%, to make it semi invisible.My MDI Form looks like this
Public Class Form1
Dim f As New Form2
Dim g As New Form3
[code].....
I have the main Form, Form1, and when I press a button, I want it to load another form, centered inside the other form The best example I have is something like Photoshop. When a popup box comes up, it is centered by the main window.
[Code]....
I would like to place a form inside of a form, how would I do that?It would be like photoshop, where the tools form is inside the main form, or the filter form is inside the main form.
View 9 Replies