all groups > vb.net > june 2005 > threads for wednesday june 22
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Yield Keyword in VB.NET 2.0
Posted by Sahil Malik [MVP] at 6/22/2005 10:01:31 PM
What the heck - I can't find it. A bit shocked to see it missing though.
So "Does VB.NET have the yield keyword, or any equivalent of it" ?
--
- Sahil Malik [MVP]
Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync
--------------------------------------------------------------------------... more >>
ListView Column COlor
Posted by Lespaul36 at 6/22/2005 9:57:53 PM
I want to change the color of certain columns in my listview. I know it can
be done using customdraw, but I haven't found much code to help with it.
Any help in vb.net would be great.
TIA
... more >>
Connection string for Piped Delimiter CSV
Posted by Yan at 6/22/2005 9:49:04 PM
hi,
I need to connect a csv file as data source. the connection string currently
using is
cnxStr = "Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=" + CSVFolder +
";Extended Properties=""Text;HDR=No;FMT=Delimited;IMEX=1\"""
it's working, however it's only able to read a row as one co... more >>
Changing date format with Regex
Posted by Terry Olsen at 6/22/2005 8:52:05 PM
I have a function that returns the date in the following format:
6/22/2005
I need the format to be:
050622
I have zero experience with RegEx but I believe that would be the way to go
here. Can someone give me some info on this? Or if RegEx isn't the way,
what would be the best meth... more >>
Filtering Datatable
Posted by Srinivas at 6/22/2005 6:04:02 PM
Hi,
I have a DataSet with a couple of datatables in it. I would like to
filter the datatables in this dataset with a particular condition and assign
these data tables to a new Dataset. So the resultant DataSet is a subset of
the original Data Set. Please let me know the best way of doing t... more >>
phone number regex
Posted by Brian Henry at 6/22/2005 4:12:48 PM
I have phone numbers like this in a data table
123-435-1234
1231231234
432.234.2321
they all have different formatting, what I want to do is get them all
formatted like this
(123) 123-1234
Regex.Replace(Convert.ToString(drRow("Phone")), "(\d{3})(\d{3})(\d{4})",
"($1) $2-$3")
see... more >>
Help: I can't delete a file on a mapped network drive using vb.net!
Posted by createdbyx NO[at]SPAM gmail.com at 6/22/2005 3:49:49 PM
I am trying to make a file sync utillity to sync files between my
laptop and my desktop pc. On my desktop machine (xp pro sp2) I have
shared my "Visual Studio Projects" folder using windows simple file
sharing. And have specified the "Allow network users to change my
files." option as well.
T... more >>
Form / Dataset Changes
Posted by Mitchell Vincent at 6/22/2005 3:38:07 PM
I have the follow function for detecting when my bound dataset has
changed (by the user, I hope).
Public Function HasFormChanges() As Boolean
Dim row As DataRow
Dim i As Integer = 0
For i = 0 To (Me.DataTable.Rows.Count - 1)
row = Me.Data... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
VB 6 Com Interop question
Posted by Bryan Dickerson at 6/22/2005 3:35:23 PM
I'm writing a DLL for which I want to expose a COM interface. I found the
check box on the Configuration to do that. So I built the solution, got
into my VB6 project, added the reference and started adding code, but there
was no intellisense, no properties, nothing. What did I do wrong?
... more >>
Security Warning mess
Posted by ray well at 6/22/2005 3:16:28 PM
hi,
when my client runs an app i'm developing for him he get the following msg
===================
Open File - Security Warning
The publisher could not be verified. Are you sure you want to run this
software?
Name: the apps name.exe
Publisher: Unkown Publisher
Type: Application
Fr... more >>
Threading a routine with parameters?
Posted by Amjad at 6/22/2005 2:32:03 PM
Hi,
To start a new thread of a sub routine I use:
'///////////
Dim t as Thread = New Thread (AddressOf MySub)
t.Start
'\\\\\\\\\\\
How do I start a thread of a sub routine that takes parameters?
For example:
'////////////
Sub MySub (filePath as String)
if File.Exists(filePath) Then Fi... more >>
Frustrated with preventing user resizing datagrid columns, please
Posted by Nina at 6/22/2005 2:32:02 PM
Hi there,
I've tried everything that I know to prevent usre resizing datagrid columns,
but nothing works. Following are the code that I used. Please tell me
what's wrong with them. Thank you.
P.S.: dg is datagrid
Protected Overrides Sub OnMouseDown(ByVal e As
System.Windows.For... more >>
VB.NET Overloading problem/question
Posted by Brian Haynes at 6/22/2005 2:03:05 PM
I am having a problem with overloading. An example:
Public Class Base
...
End Class
Public Class Derived Inherits Base
...
End Class
Public Class Client
Public Sub MethodX()
Dim obj as Base = new Derived()
MethodY(obj)
End Sub
Public Sub MethodY(arg as... more >>
flicker when toggling btwn child forms
Posted by Jesse Aufiero at 6/22/2005 1:56:17 PM
I have an MDI application with two maximized child forms. At any given time
only one of the child forms is in the foreground and visible. To alternate
between the two child forms, I can type Ctrl-Tab. This results in a
seamless toggling between the two forms - no flickering.
However, whe... more >>
How do I...
Posted by Bryan Dickerson at 6/22/2005 1:51:35 PM
I have a simple list box that I want to show a list of names and also I want
to store in the list box an id, just a string value, so that when the user
clicks on a name I can use the id to get information about that name. I
know how I would do it in VB6 (using the Tag property). Is there a b... more >>
dummy question :-)
Posted by Luis Arvayo at 6/22/2005 1:00:34 PM
Hi,
How do I compare if two variables are the same instance of a class ?
Example
dim instance1 = New MyClass
....
dim instance2 = instance1
.... or
dim instance2 = New MyClass
.....
'Now compare if the two instance are the same
If instance1 = instance2 Then
....
End If
The abo... more >>
overriding XP styles in ProgressBar
Posted by Randall Arnold at 6/22/2005 12:03:06 PM
I've written an app in VB.NET 2005 Beta that monitors temperature of several
devices. I am using the ProgressBar for visual indication of temperature;
all readings in expected range cause the bar to be blue continuous and when
that threshold is exceeded the bar turns red continuous.
This w... more >>
file date comparation
Posted by JFB at 6/22/2005 11:26:06 AM
Hi All,
I'm trying to find if a file name that includes the date is before todays to
do some procedures.
In my IF statement is working is just a few dates before but not is a year
before.
How can I fix this?
Tks in advance...
This is what I have:
'Set today's date
Dim todayDay As String... more >>
How to make constants available for the whole application?
Posted by Bill Nguyen at 6/22/2005 11:19:21 AM
I need to make a set of constants to be available for the whole application.
Public const is confined to the form from which constants are declared.
Is there a way to declare once and all forms can access the constant values?
Thanks
Bill
... more >>
Scrolling Image and Text in a WinForm
Posted by Yavuz Bogazci at 6/22/2005 11:07:06 AM
i have the following problem:
my customer wants to show some informations in a WinForm. He has Images and
Textelements with are connected. It should look like this:
scroll << - ... Image + Text + empty space + Image + Text + empty space +
Image + Text + empty space ... << - scroll to left
... more >>
Service restart itself?
Posted by Matt at 6/22/2005 9:33:13 AM
Is there an 'easy' way to have a service stop and restart itself? I
currently have a seperate service running who's job is to watch the other
service and restart it if there is a problem... can I eliminate that one and
have the service restart itself?
Thanks,
Matt
... more >>
Microsoft Access in VB.NET
Posted by Rodrigo at 6/22/2005 9:31:02 AM
Hey There
In VB6 It was easy for me to create a Data Control and use Ms Access
Databases using SQL sentences, but I don't know how to do this in VB.NET
I whant to access a DataBase in access in the same folder of the
program, without having to register it in windows, how can I do that?
Also, ... more >>
Ticks to DateTime
Posted by Tommy at 6/22/2005 8:53:39 AM
How can I take a long variable from Datetime.Now.Ticks and restore that
number into a datetime variable?
Similar to the sample below that doesnt work.
Dim i as long = Datetime.Now.Ticks
Dim dt as Datetime = CType(i, datetime)
Thanks
... more >>
Subclassing an Exception
Posted by Arne at 6/22/2005 8:38:05 AM
I have a generic catch block for exceptions of type Exception
Once inside the block I would like to know if my exception is of type
System.Data.SqlClient.SqlException. Actually I would like to pass the
variable of type Exception to a generic error handler, where I need to know
the specific Ex... more >>
Installation of Visual Basic .NET
Posted by Raymond Lang at 6/22/2005 7:31:06 AM
I have an unusual situation in my facility. I need to install Visual Basic
..NET onto a user's system, however per corporate policy, we cannot install
the IIS services or FrontPage Extensions onto the computer. Because of this,
we're unable to install the software currently. What we need to... more >>
Handling related mouse events for the same control
Posted by John Dann at 6/22/2005 7:26:34 AM
This question has arisen from an earlier thread but is really a
separate issue:
I have a VB.Net listbox control on a form. I want to be able to do 2
things with items displayed within the one listbox.
1. Reorder items using drag and drop with the mouse.
2. Delete items eg by double-click... more >>
passing variable to function
Posted by thomasp NO[at]SPAM msala.net at 6/22/2005 6:52:38 AM
In the code below I have a function that tests if a file exists. It takes a
variable named strFileName, simple enough. My question is, is there a way
to pass it a variable with another name as long as the variable is a string?
In different subs the variable of the file name may have a differ... more >>
Byref and ByVal
Posted by thomasp NO[at]SPAM msala.net at 6/22/2005 6:45:32 AM
Will someone tell my the difference between ByRef and ByVal when passing
values between subs?
Thanks,
Thomas
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadb... more >>
Tricky string replacement
Posted by Roshawn Dawson at 6/22/2005 6:38:40 AM
Hi,
I have a string that contains text as well as some html tags. The tags
in question are <br /> tags. This is what I'm aiming for:
1. Search the string for any occurrence(s) of <br /> tags
2. If there are any, count the total number of <br /> tags found
3. For each odd-numbere... more >>
Icon & embedded resource
Posted by Pippo at 6/22/2005 3:25:02 AM
I've created a c# dll with some classes and i've included some icons that i
can see with ILDASM like namespace.iconfile.ico
I re-use this dll (dll reference) and relative classes in many vb project
How i can re-use icons?... more >>
Putting multipule Dataset tables into one table
Posted by kieran at 6/22/2005 1:57:21 AM
Hi,
I have a dataset that has a number of tables in it, each table has only
one column - that column is the same name in each table.
I now want to have all these tables as one table and then loop through
the rows of this one table, and put them into an arraylist.
I was trying to do this... more >>
how can one compile vb code into dll?
Posted by gg at 6/22/2005 1:49:05 AM
how can one compile vb code into dll?
The vstdio build project it tends to build exe. When I looked at the build
in help I did not find anything about configuring for DLL. I even try
custom build but did not see anything like dll.
When I looked at the command line tools and sample, I only ... more >>
where has the metadata gone ???
Posted by (cmrchs NO[at]SPAM yahoo.com) at 6/22/2005 1:45:04 AM
Hi,
I'm compiling a vb file in .NET 2005
and try to view the assembly-exe using the ildasm tool but I get an error :
"Failed to open meta data"
whereas in .net 2003 it was no problem.
how come ?
how can I view what's inside the 2005-assembly ?
thanks
Christian
*********... more >>
Redistrbution of the Net Framework
Posted by Husam at 6/22/2005 12:43:01 AM
Hi EveryBody:
I made project by using VS.Net 2003, and as you know all the project made by
VS.Net it requeried .Net Framework ?
And I made web site to sale my project ,as e-commerice ?
my question is about Copyright :
Can I add the Net Framework to my web site in case if the coustomer ... more >>
Variable in URL
Posted by jonhrs NO[at]SPAM gmail.com at 6/22/2005 12:17:46 AM
Hi,
I am VERY new to programming and VB.NET.
I have a windows form which has radio buttons and passes a variable
into the URL which is the server name, this is attained from a text
box.
It opens up IE no problem, but it doesn't pass the servername variable
into the URL properly. Can anyo... more >>
Open a form using a variable
Posted by James White at 6/22/2005 12:00:00 AM
I wish to open a form using a variable derived from a table. The =
Application is based on the switchboard principle from Access. However =
in the absence of do.cmd openForm, I have to use this code.
There has to be a better way to instantiate a form surely.
Select Case strArgument.ToUpper
... more >>
Any one know that how to do
Posted by at 6/22/2005 12:00:00 AM
Hi all,
how can I update client pc date/time after I got server datetime when
start the application program ?
Thanks
Edmond
... more >>
Hiding Inherited properties
Posted by Juan Pedro Gonzalez at 6/22/2005 12:00:00 AM
Hi,
I've develpped a reusable UserControl. The only headache it's giving me is
how to hide the inherited properties such as AutoScroll, DockPadding, etc...
wich could cause some visual Anoyances on my control.I've tried
<System.ComponentModel.Browsable(False),
System.ComponentModel.EditorBr... more >>
Enterprise Library Configuration Block
Posted by José Miguel at 6/22/2005 12:00:00 AM
Hi!
Do somebody know a way to use object collections with enterprise library
configuration block?
Thanks
... more >>
Send message to TCP device
Posted by Matt at 6/22/2005 12:00:00 AM
We have an Intermec stationary computers setup to basically clock people in
and out... I have code running (borrowed from Planet Source Code and
modified to suit) to receive packets from these computers each time someone
swipes their card. The code sends back a response to the device with
... more >>
RS232.VB problem
Posted by Tony Papadimitriou at 6/22/2005 12:00:00 AM
Hi all,
I've written an app using RS232.VB (by Keith Langer 2/5/02 -- Modified to
handle overlapped IO and provide asynchronous read/write) and the executable
works as expected under XP Pro but, the RS232 portion of the app doesn't
work under Win98SE.
Any ideas?
TIA
Tony.
... more >>
dataview update problems
Posted by Tony Papadimitriou at 6/22/2005 12:00:00 AM
Hi,
Here's a short description of a problem that took me a couple of days
to bypass (not solve):
I update a table thru a dataview (or dataset, no difference in
behavior for this problem) and all but one column (a middle column,
if that matters) get updated when I do .acceptchanges
All co... more >>
|