What The First Line Of Each Property Means
May 5, 2009
I have been given the following code that I want to change to VB however I dont understand the first line of every property:
1<ConfigurationProperty("mailSubject", DefaultValue:="Mail from TheBeerHouse: {0}")> _
2 Public Property MailSubject() As String
3Get
[code]...
View 2 Replies
ADVERTISEMENT
Aug 25, 2009
Me.datagridview.InvokeRequired property means in vb.netadil
View 3 Replies
Nov 9, 2011
I've got a piece of code of a class. When initialised a new object is made on a picturebox. But what I don't know is how does the program know that the public property x and y means the coordinates of the object?
[code]...
View 1 Replies
Mar 20, 2009
What this line means? Inherits System.Windows.Forms.Form
View 3 Replies
Jun 14, 2012
This is a WinForm VB.NET application. Please see the picture below:How to add a line break in a multi line textbox in Visual Studio designer's property section?I tried using abc & Environment.NewLine & def but that was not working.
View 2 Replies
Sep 23, 2011
Is there any way I can put Public Properties on a single line in VB.NET like I can in C#? I get a bunch of errors every time I try to move everything to one line.
C#:
public void Stub{ get { return _stub;} set { _stub = value; } }
VB.NET
Public Property Stub() As String
Get
Return _stub[code].....
View 2 Replies
May 10, 2010
When I put a label on a form, the Text property in the designer can be expanded to a multi-line edit box. (This is in VS2005.)
Is there a way to get that type of edit box on a custom String property of a usercontrol?
View 4 Replies
Nov 20, 2010
What Does : Dim Array() as String means and what Dim Array as String() Means?If I pass a array to function like below:Public Sub Array_AddSomething(ByVal strEntry As Object, ByRef strArray() As Object)
[Code]...
View 3 Replies
Nov 19, 2009
i am still new in VB.net if someon can just help with these codes below: [code] what does the () after each one of these declaration means are they arrays?!
View 2 Replies
Dec 13, 2010
What exactly does the "calling code" means? A method to do an action?or else.,
View 6 Replies
May 13, 2009
I think I've misused this method and would like to know what it actually does.I 've looked it up on msdn forum and found this
[code...]
What does it mean by removing all the rows in all tables? Is it the datagridview table? When it says "removing", does it mean that it deletes everything?
The reason I misused it is because I thought dataset.clear means it flushes the record held in dataset.
When I click on the add new icon on bindingnavigator, a new form will appear, which allows me to insert data
[code...]
when I close the insert form, the parent form will be activated and datagridview will display the new record I just inserted. I thought the dataset.clear method helped display the new added record but then I realised I could do without the dataset.clear method.
[code...]
View 5 Replies
Apr 11, 2011
I saw something really strange today, that I have not seen before.I saw a variable declared as:Dim a as Long? I am obviously familiar with the Long datatype but what is Long?
View 4 Replies
Feb 21, 2010
how do i delete a certain row by either double clicking it or by means of another form.
View 2 Replies
Apr 30, 2011
i want to make a facebook application for messages purposes means from that app i want to send and receive messages only?
View 11 Replies
Mar 6, 2009
Is it possible to trigger event whenever seconds on stopwatch change (that means every second, but it has to be synchronized with seconds)?
View 6 Replies
Nov 17, 2009
Private Sub TextBox4_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox4.KeyPress
If (e.KeyChar < "A" OrElse e.KeyChar > "Z") Then
e.Handled = True
End If
End Sub
If e.Handled = True means we can enter a to z and A to Z in textbox.If e.Handled = False then what it means??
View 1 Replies
Mar 31, 2009
If I increase the capacity of a given list, or add elements until count>capacity, does this mean the program is actually copying the entire list's contents to a new space in memory (similar to redim preserve with arrays)? If so, than I have really been hurting the performance of my lists, as before I was inserting and adding without a second thought. This seems a strong restriction on the dynamic abilities of lists.
View 2 Replies
Apr 8, 2009
I'm working on a CNC control program, based on a DLL that someone else wrote. No problems with that sofar, as i get good support from the writer.
The problem i do have to tackle is the following: I want to acces all the functions by means of softkeys ( the F-Keys at the top of our keyboards ) when the program starts it shows the Main menu softkeys ( F1-F12), and each F-key has a function assigned to it, some will make the machine move, others will show another menu, or a fileopen/save dialog, depending on the chosen keys.
All works fine and handy-dandy, except for the F10 key, it seems to be "Sticky", when i press it, the program will not react to any other key, only the F10 key can get it back in "normal state" accepting every key with a function assigned..
How to "unstick" the F10 after pressing it?.. because pressing F10 now, means no other key will do anything, and that may become dangerous, when the machine is moving and it must be stopped..
View 11 Replies
Dec 9, 2011
I'm having some very weird issues with interfaces right now.
I have a very simple setup. In one of my class, I have a Property implementing a Property from an Interface.
In my class it's like:
Private _oForm As IForm
Public Property Form As IForm Implements IContainer.Form
Set(value As IForm)
[Code]...
I have like dozens of interfaces like this working throughout my project and I can't believe this simple one can't work!
View 1 Replies
Oct 14, 2011
what i need to do is open a txt file, read line by line, decode each line into an array and display. Now all works ok apart from one line.
sTextLine = objReader.ReadLine() <-- Value of string cannot be converted.
full code here
-------------
Dim objReader As New System.IO.StreamReader(sOpenFile.Text)
Dim sTextLine As New ArrayList()
Dim sText As String = ""
Dim i As Integer = 0
[code]....
View 3 Replies
Mar 23, 2012
I want to set a property of an object that is an array type. If I was declaring and initialising an array of objects, I'd do this: Dim x() as SomeObject = {obj1, obj2}
I don't seems to be able to do something similar with the property, can you do this, does anyone know the correct syntax? myObj.ArrayProperty = {obj1, obj2}
I get Expression Expected Error on the first {
Infer Off
Explicit On
Strict On
Answer : myObj.ArrayProperty = New objType() {obj1, obj2}
View 2 Replies
Jan 16, 2011
how to read text from a listbox line by line and put current line in a label?
View 3 Replies
Dec 1, 2011
How would i go about reading a file Line by Line that within that line The values are delimited by " Example of the data:
"bob" "cat" "1243"
"steve" dog" "6789"
I've started this with this code but not sure how to go about the next stage:
Using MyReader As New _
Microsoft.VisualBasic.FileIO.TextFieldParser(My.Application.Info.DirectoryPath & "Records28112011.jd")
MyReader.TextFieldType = FileIO.FieldType.Delimited
[code]....
View 9 Replies
May 3, 2010
dim cn as oledbconnection
cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:valid.mdb")
[code]......
View 4 Replies
Jun 9, 2010
If i use a stream to modify few bytes in a file without changing the total number of bytes
does the stream rewrite all the file even if just few bytes have been replaced?
View 1 Replies
Aug 21, 2010
tags As HtmlElementCollection = WebBrowser1.Document.All
View 4 Replies
Jul 5, 2010
I am trying to read in a TextBox line by line and take the first 7 characters of each line and output everything in another TextBox.This is what I have so far.
Dim line, lines() As String
lines = TextBox1.Text.Split(Environment.NewLine)
Dim i As Integer = 0
[code].....
View 1 Replies
Jul 23, 2009
I created 3 timers, i want each timer to take turn start which means timer1 stop then timer2 start, once timer2 stop timer3 start. But my code seem to be running together once i click the play button.And is there any ways to easy control how my picturebox move? Because my code for controlling it movement need to keep finding the correct number for it to move.
[Code]...
View 1 Replies
Mar 16, 2011
Locality Not repeating code..Modifying program means modifying one aspects.
View 11 Replies
Jul 19, 2010
I'm trying to read my boss code an I ran into this code that I haven't seen before.
<asp:Label ID="Label5" runat="server" Text="<%$ Resources:Labels, otherPublic%>"/>
View 2 Replies