| |
thread by: Zytan |
last post Feb 22 '07 by: Zytan
What is the difference between these two lines?
Dim args As Object() = New Object() {strText}
Dim args As Object() = {strText}
args seems usuable from either, say, like so:
Me.Invoke(delegate, args)
Zytan
|
thread by: tshad |
last post Sep 24 '08 by: James Hahn
In VS 2008, why doesn't ToString require "()".
If I have Option Strict On on why can I do both:
selectedIndex.ToString()
selectedIndex.ToString
or
sQuery = temp.ToUpper().IndexOf("friend")
|
thread by: R Tirchet |
last post Nov 20 '05 by: Nak
hi
i'm looking for an example of localization using resource files
|
thread by: James Radke |
last post Nov 20 '05 by: Cor
Hello,
I found some code that I could use in my application on the web, but it is
written in C#, and I would like to convert it to VB. And I am having
problems with one section. Is there anyone that could tell me how to
convert these two things?
1)
|
thread by: R |
last post Nov 20 '05 by: Sueffel
In the "good old days"... I used to put most of my code in different
modules, to keep it tidy, then it was no problem writing in a module like:
Form1.textbox1.text = "Some text"
or from a form
Form2.textbox1.text = me.textbox2.text
Now, in vb.net iI get an error saying "Reference to a non-shared member
|
thread by: Anony |
last post Nov 20 '05 by: Jon Skeet [C# MVP]
Hi All,
I'm trying to chunk a long string SourceString into lines of LineLength
using this code:
Dim sReturn As String = ""
Dim iPos As Integer = 0
Do Until iPos >= SourceString.Length - LineLength
sReturn += SourceString.Substring(iPos, LineLength) + vbCrLf
iPos += LineLength
|
thread by: Geoff Jones |
last post Nov 21 '05 by: Geoff Jones
Hi
Suppose I have two forms: Form1 and Form2. I create and show an instance of
Form2 in the code of Form1 e.g.
Dim myForm2 = New Form2
myForm2.Show()
How do I tell myForm2 that Form1 is its parent? That is, when I look at
either "Parent" or "ParentForm" in Form2, they both show "Nothing".
|
| |
thread by: Joergen Bech |
last post Feb 23 '06 by: Joergen Bech
(Slightly religious question):
Suppose I have the following class:
---snip---
Public Class MyClass
Private _MyVariable As Integer
Public Property MyVariable() As Integer
Get
|
thread by: suraj |
last post Oct 12 '06 by: Liz
Hi All,
I am sorry if am cross posting but just wanted to get the right answer
for this. I have a experiece of 15 years yes i am a old man now. Most
of exp is in electrical field. After 15 years for various reasons i
want to swithc to Softwares.
After consulting many of my freinds who are already in this field i did
the following :-
|
thread by: Newbie Coder |
last post Dec 31 '06 by: Spam Catcher
How to create a system restore point in VB.NET 2003 only, please?
Google never came up with anything of any use
TIA
|
thread by: Master Programmer |
last post Feb 20 '07 by: mg
I love VB.Net! The next version is going to be even better. I'm sorry if I
offended anyone with my rants. Please forgive me. OK?
|
thread by: Peter |
last post Aug 8 '07 by: Cor Ligthert[MVP]
I am wondering if I should turn to C# from VB. How long will this turning
cost for an ordinary man?
Thanks for any response,
Peter
|
thread by: AussieRules |
last post Nov 20 '05 by: Herfried K. Wagner [MVP]
Hi,
I want to use the user color scheme to set the color of my forms.
I now I have to use the. System.Drawing.SystemColors, but which color is the
color of a form background as used in other applications.
In the end all I want to do is
form1.backcolor = system.whatever.color
|
thread by: Crirus |
last post Nov 20 '05 by: Jay B. Harlow [MVP - Outlook]
Hi
I have about 1000 records of users to store.. I dont like the ideea of a
database server...
How to store does data in a structured way?
An XML?
How big can became such an xml, because I whould like to load it and search
for data.
Can I search for some data without loading all xml into memory?
--
|
thread by: kjvt |
last post Nov 20 '05 by: kjvt
Based on a prior posting, I've written a function to convert a
recordset to a dataview. The first call to the function for a given
recordset works perfectly, but the second call always returns a
dataview with a count = 0. Can someone explain why and how I might
work around this problem?
Here is the code for my function:
Public Shared...
|
| |
thread by: Chad Z. Hower aka Kudzu |
last post Nov 20 '05 by: Chad Z. Hower aka Kudzu
I have an implicit conversion set up in an assembly from a Stream to
something else. In C#, it works. In VB it does not.
Does VB support implicit conversions? And if so any idea why it would work in
a C# program but not VB?
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
|
thread by: aam |
last post Nov 21 '05 by: Nak
how can i set up vb.net to interact with a game i'm playing online ? the game
is a java applet. i'm trying to write a program using a winform to assist me
with this game.i tried using sendkeys but wouldn't work.i need to have the
program automatically click a button for me in the game every few seconds or
so.how would i do this ? api call or...
|
thread by: Cap'n Ahab |
last post Jan 2 '06 by: Cor Ligthert [MVP]
I have used VB3 - VB6, so learning all this OO stuff is reasonably new
to me (although I looked at Java a few years ago). Anyway, I thought I
would write a small class to begin with, with a property and 2 methods,
along with a constructor (where you use New(), I think, yes?).
So, I decided to create a class that represents a die, which can...
|
thread by: Zhiv Kurilka |
last post Aug 6 '06 by: Mihai N.
Hi,
I have a text file with following content:
"((^)|(.* +))§§§§§§§§"
if I read it with:
k=System.IO.StreamReader( "file.txt",System.Text.Encoding.ASCII);
k.readtotheend()
|
thread by: Nick |
last post Jul 24 '08 by: Stephany Young
Hi there
I'm trying to use the IsDaylightSavingTime property of the datetime
object.
The PC I am using is in GMT,
DateTime.Now.IsDaylightSavingTime() returns true
DateTime.UtcNow.IsDaylightSavingTime() returns false
|
thread by: Cor |
last post Nov 20 '05 by: Herfried K. Wagner [MVP]
Hallo,
I have promised Jay B yesterday to do some tests.
The subject was a string evaluation that Jon had send in. Jay B was in doubt
what was better because there was a discussion in the C# newsgroup on 25
September. The regular expressions where in that newsgroup too involved.
I told yesterday night, to Jay that I would test all 4...
|
thread by: A Jafarpour |
last post Nov 20 '05 by: Herfried K. Wagner [MVP]
Hi everyone, hope someone can tell if there is any way to,
dynamically, build an statement and then call some
functions to execute the statement. I know examples always
help, so here what I am trying to accomplish:
Dim myStatement as String
myStatement = "Dim result as integer result= 2 * 3"
now is there any way to actually let a program...
|
thread by: Cor |
last post Nov 20 '05 by: Herfried K. Wagner [MVP]
This are the people who are awarded for ther work in the newsgroup 2003-2004
http://mvp.support.microsoft.com/default.aspx?scid=fh;en-us;mvpaward&style=toc
Except Herfried you see nobody on this list who is real active in this
farmost largest developer newsgroup
As Fergus Cooney once said"this is the backyard from the Microsoft...
|
| |
thread by: Stan Sainte-Rose |
last post Nov 20 '05 by: Trev Hunter
Hi,
What is the better way to save image into a database ?
Just save the path into a field or save the image itself ?
I have 20 000 images (~ 10/12 Ko per image ) to save.
Stan
|
thread by: Eric Sabine |
last post Nov 20 '05 by: Cor Ligthert
In my Finally block, I was using cn.close (where cn is an ADO.NET
connection object, SQLConnection to be exact) and then I came across the
following in some microsoft code.
If Not cn Is Nothing Then
CType(cn, IDisposable).Dispose()
End If
I have to admit, I'm not sure what happens here. Will someone explain this
line of code (the...
|