all groups > vb.net > may 2006
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 31
Highlighting text in DataGridView
Posted by sh at 5/31/2006 9:15:47 PM
How can I highlight the text in a cell, as if it had been selected with
the mouse?
I have a validation routine that checks the data in each column. If a
cell fails the validation, I show a MessageBox with an error message. I
then want to highlight the bad data. But I can't seem to do that.
... more >>
Synchronize VS2005 Projects directory?
Posted by Mark at 5/31/2006 8:03:39 PM
I started to use MS Visual Basic 2005 Express Edition to learn how to
program in Visual Basic. This Express Edition saves projects in this path:
C:\Documents and Settings\Username\My Documents\Visual Studio 2005\Projects
Is there a way to synchronize the Visual Studio 2005 Projects director... more >>
VB 2003, 0x80040213
Posted by Tull Clancey at 5/31/2006 6:29:11 PM
Hi all.
I'm using the following code to attempt to send Email, it's part of an
application I'm writing. I don't need any fancy stuff, just a simple text
message. This code is just for testing but the final thing wont be any
different apart from dragging info from a database.
I can't ge... more >>
An Unhandled exception of type 'system.stackoverflowexception' occured in mscorlib.dll
Posted by vighnesh at 5/31/2006 5:34:44 PM
Hi All
Can anyone please let me know how to catch an unhandled exception like
" An Unhandled exception of type 'system.stackoverflowexception' occured in
mscorlib.dll "
I am unable to catch this using "try - catch - end try" block.
Thanks in advance
Regards
Vighneswar
NGV33010
So... more >>
Strong Name Problems
Posted by Chubbly Geezer at 5/31/2006 4:58:47 PM
I have been working on a VB 2005 DLL which has previously been working. I
would create the DLL (reporting.dll), install it, run 'gacutil' and 'regasm'
and my Access 2000 DB could see it and use it.
I have recently added some new functionality, which included splitting out
some classes into... more >>
Saving an Excel file as text
Posted by herman404 at 5/31/2006 3:30:31 PM
Hi everyone, I have a script that saves an excel worksheet as a CSV
file. However, I need to save it as a tab delimited text file, since
csv won't work for our purposes, because of commas in the numeric
amounts passed in. A sample of our script is below, and I need to know
the constant to save a... more >>
Socket and ThreadPool
Posted by fniles at 5/31/2006 3:05:40 PM
I am using ThreadPool to call a sub in a class. The first time the
ThreadPool is called, I created a socket in the thread. I can connect a
client to the socket and send a message to the client (in ThreadMain),
but when the client send a message to me, the Sub SocketClient_OnRead
event did not ge... more >>
datagrid vertical column separator
Posted by Jose at 5/31/2006 2:27:32 PM
Please how shows the vertical column separator line in a datagrid?
Thanks a lot
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Opinion: VPN or Web Service?
Posted by Robin Mark Tucker at 5/31/2006 1:51:12 PM
I'm wondering what arguments you people might have for/against implementing
an internet based system via. either Virtual Private Network (ie. the client
thinks it's local) or via. a Web Service. It seems that the VPN requires
greater system administration and can be a pita to setup, but tha... more >>
Best way to sort...
Posted by Military Smurf at 5/31/2006 1:51:02 PM
I have a string array full of values like this:
05 00 0A 5E 4C 40 40
03 00 C0 9F 27 60 57
08 00 C0 9F 36 71 35
01 00 0A 5E 4E 40 13
I want to sort them in an ascending fashion based on the two left-most
numbers, such as 05, 03, 08 and 01. What is the best way I should try to do
thi... more >>
Best way to clear errorproviders?
Posted by Tom at 5/31/2006 1:47:25 PM
Just wondering what others were doing to clear the errorprovider? What
I mean is that, during processing of a windows form, I may turn on
(i.e. SetError) the errorprovider for various fields. Now, once I have
committed the data (or reset the form), I want to be able to 'clear'
all these flags be... more >>
Spiritual programming?
Posted by CR at 5/31/2006 12:25:14 PM
I just received the error message "An exception has been thrown by the
target of an invocation." So, I did as any good Christian would do, I closed
Visual Studio 2005 Standard, said a little prayer, reopened Visual Studio,
and the error was gone! Invocation = Prayer, so the target of a prayer... more >>
Assembly - Where did I come from?
Posted by Phill W. at 5/31/2006 12:04:33 PM
Within an Assembly added to the Global Assembly Cache,
System.Reflection.Assembly.GetExecuting.Location
returns the path to the shadow(?) copy buried under
C:\Windows\Assembly\Gac\...
Is there an [easy] way of finding out where the DLL was /before/ it was
added to the GAC? (and prefere... more >>
Deployment Question
Posted by Joe at 5/31/2006 11:47:02 AM
Hello All;
When I deploy my application (which consists of an executable and a config
file), does the user need the .NET framework installed on his machine for my
app to run or does the Setup Wizard distribute the required components along
with my executable?
TIA,
--
Joe... more >>
Me.close vs. End
Posted by cj at 5/31/2006 11:26:19 AM
What is the difference between using Me.close vs. End to stop the
execution of a program?
I've been using me.close and putting code in the form.closing event to
make sure things are stopped before the program execution stops. This
has been working for me even when the startup is sub main p... more >>
custom panel control
Posted by Smokey Grindle at 5/31/2006 10:53:06 AM
I am trying to write a custom panel control that I can place objects into at
design time, however, i want a header on the top of it which can not contain
controls (its a static header) in the image shown below, I have a red
outline marking the region i dont want a control to be able to be plac... more >>
phone number regular expression problem
Posted by venu at 5/31/2006 6:24:49 AM
Hi,
I have a different requirement and it is :
I need to validate a phone number field.
It may or may not be a US phone number.
The constraints are :
***********************
# It should accept any number of numbers
# any number of - hyphens
# and one + symbol
# no other charac... more >>
Show dynamically selected row in datagridview
Posted by Karl Rhodes at 5/31/2006 2:39:36 AM
I have a datagridview which is populated via a datatable.
What I would like to dynamically set a selected row and have that row
show up in the datagridview and not have to manually scroll to find the
selected row.
I had a look for all kind of "datagridview1.rows(i).focus" but there
doesnt s... more >>
Silent install for SQL Express?
Posted by ljh at 5/31/2006 12:00:00 AM
If I develop a SQL Express DB for my app, how do I distribute SQL Express
also? Is there a silent install for SQL Express (like for MSDE)?
Also, how do I put my DB in the new SQL Express instance and attach to it
instead of to my local development copy?
... more >>
C# to VB Conversion - 800 lines got - 2 lines beyond me
Posted by Kaypee at 5/31/2006 12:00:00 AM
Howdy all
am trying to convert c# app to VB so change alter parts of it.
But am getting confused by a couple of bits... at least ;-)
a)
private point[] path1(point p1, point p2) {
int minX = Math.Min(p1.X, p2.X);
int maxX = Math.Max(p1.X, p2.X);
for (i = minX + 1; i < maxX ... more >>
'UnauthorizedAccessException' - 'Global\.net clr networking'
Posted by NickP at 5/31/2006 12:00:00 AM
Hi there,
I've been experiencing a strange issue for a short while now and have
managed to make a tiny replication of the bug.
The uploaded a VB.NET 2005 project which implements a single instance
application, it's very basic.
http://nickpateman.m6.net/Files/xpbug.zip
P... more >>
vbc.exe
Posted by Microsoft at 5/31/2006 12:00:00 AM
hallo
ich hab gleich 2 Fragen :
1. Wie kann ich einen webservice beim kompilieren mit der vbc.exe
referenzieren
2. wie kann ich eine config datei beim compilieren mit einbinden
thx for help
... more >>
Seeking report component....
Posted by ljh at 5/30/2006 11:00:41 PM
Wasn't there a report component that you could use in a VB/VB.Net app that
would allow end users to create thier own reports to save and run?
I swear I remember seeing such a thing....but I can't remember the name.....
... more >>
Determine caller class name
Posted by qingxun NO[at]SPAM gmail.com at 5/30/2006 8:28:20 PM
Hi!
Is there a way in VB.NET to determine the caller's class name?
System.Reflection.MethodBase.GetCurrentMethod.GetType basically telling
me what is my current executing class, but I wanted to know, which
caller class invoke my existing class method.
Any help is much appreciated.
Bo... more >>
Determine caller class name
Posted by qingxun NO[at]SPAM gmail.com at 5/30/2006 8:17:52 PM
Hi!
Is there a way in VB.NET to determine the caller's class name?
System.Reflection.MethodBase.GetCurrentMethod.GetType basically telling
me what is my current executing class, but I wanted to know, which
caller class invoke my existing class method.
Any help is much appreciated.
Bo... more >>
Randomize string
Posted by Samuel Shulman at 5/30/2006 6:12:13 PM
Any function to randomize strings?
thank you,
Samuel
... more >>
AxWebBrowser problems in VS2005
Posted by Dave Booker at 5/30/2006 5:41:02 PM
It appears that I cannot correctly install the AxWebBrowser in VS2005.
I can instantiate an "AxWebBrowser browser" and refer to its members,
properties, and methods. I'm having trouble with the AxWebBrowser.Document:
When I print browser.Document.GetType().ToString() at runtime, I get
"msh... more >>
Why choose SQL Express over Access?
Posted by ljh at 5/30/2006 4:22:23 PM
Why would you choose SQL Express (which requires an installed application to
work) over the simplicity of an Access database which has no dependencies?
... more >>
Visual Basic 6.0 X Visual Basic 2005 Express
Posted by Zardax at 5/30/2006 3:30:00 PM
Hi !!!
I need to know if there is compatibility between VB 6.0 and Visual Basic
2005 Express
Everything I need is to compile the VB 6.0 code in Visual Basic 2005 Express
without re-write the code.
So If anyone has any idea about this...
Thanks for any information.
... more >>
How to test internet connection in VB.NET?
Posted by John Riddle at 5/30/2006 3:12:02 PM
Hello,
I have an application that runs continously gives an error and stops working
if the internet goes down (which happens for about 5-10 minutes several times
a day. Can anybody tell me how to test for internet connectivity when this
happens and then pause processing until internet conne... more >>
Saving changes to a database
Posted by Tony A. at 5/30/2006 3:06:01 PM
I'm working on an application using VB .Net 2005 and MS Access 2003 for the
database. The table I'm trying to update has a key field. When I click the
Save Button the update seems to work in the dataset, but the database is not
updated. The code I'm using for the btnSave is:
Private Sub ... more >>
Setting the correct tabindex
Posted by Mike Eaton at 5/30/2006 2:32:01 PM
Hi there,
I've got what I hope is a simple problem to solve...
Here's the back story: I have a windows form. On the form is a panel
containing three textboxes. Also on the form is a text box and an ok button.
Here's the problem: On condition A, I want input focus to go to a textbox on ... more >>
Date Time Picker
Posted by JaimeM26 NO[at]SPAM gmail.com at 5/30/2006 1:56:00 PM
How can I capture a keypress on a date time picker when the calendar is
in a "Dropped Down" state? I am trying to capture the "ESC" keypress
when the drop down calendar is showing. Right now It will not fire an
event, it will simply close the calendar then if I hit "ESC" again, it
will fire th... more >>
Anyway To Compress PDF from .NET?
Posted by cmay at 5/30/2006 12:48:12 PM
Does anyone know of a component, free or otherwise, that will allow me
to open a PDF and save it in a compressed format?
The MS ReportViewer saves PDFs in a totally useless bloated format.
You can get a 20MB pdf. You open it and save a copy using acrobat and
the copy is 220KB.
IF anyone ha... more >>
Changing the color of a pen
Posted by mark blackall at 5/30/2006 12:09:58 PM
Hi all,
I can see how to change the color of a pen in VB.net, but how would I change
the color randomly? I guess it would have to be some way of accessing the
color by a number, rather than its name.
Thanks
Mark
... more >>
A couple of newbie questions
Posted by melton9 NO[at]SPAM hotmail.com at 5/30/2006 11:53:24 AM
I'm trying to do some things in vb.net and am having some trouble. I
generally work in VBA excel but would like to expand my horizons. I
have a couple of questions.
1.)I'm having trouble calling subs from different forms etc. I tried
making the sub public etc but still couldn't get it to rec... more >>
architecture question: not representing inheritance in the data model
Posted by PJ6 at 5/30/2006 11:35:16 AM
First up, I know I'll get some good answers here, but in general, are there
any newsgroups devoted to overall application architecture?
Second, sorry for cross-posting but in this case I think it's appropriate, I
want to hear answers from both sides.
Instead of representing inheritance in ... more >>
vb2003 and Sqlbase
Posted by Peter Lux at 5/30/2006 11:07:22 AM
I'm writing a query tool using vb and Sqlbase and noticed that when I do a
'non-query' statement, it automatically commits. I'd like to have it wait
until a 'commit' is issued before the commit. I thought you had to do this
in a transaction. I changed the code to do a transaction, but now when... more >>
VB.NET & SQL Server Connection Example
Posted by Chris Moore at 5/30/2006 9:50:03 AM
I am new to .NET & SQL Server and am having fits trying to connect to a SQL
Server Database/table. Can someone please please please send me a copy of
their connection process (connection, dataadapater, fill, whatever is
needed to actually connect to the database & table) including querying a... more >>
Data Table Index
Posted by Chris at 5/30/2006 9:33:30 AM
I have a remote database with two table A & B. A contains 100 or so
columns and anywhere from 21-50k records. B has 5 columns and anywhere
from 100-200k records. B has a many to one relationship with A. I need
to process all of these records one by one. What I'm doing right now is
pulli... more >>
Detect Right mouse click and key press
Posted by John Wright at 5/30/2006 9:29:17 AM
I need to backdoor my program for IT. I want to set a form so that if an IT
staffer has the left ctrl key press and right click on a picturebox a hidden
control will appear (a checkbox) to override the startup of the program.
How is this done?
John
... more >>
Copy child from one tree view to another
Posted by Bobby at 5/30/2006 9:15:20 AM
Hello Tom and all,
I am also doing almost similar kind of task. In my tree View, I am
using 2 tree view from different access table which are almost similar.
I want to drag and drop childs from one tree to another. I read youe
messages, so think you alreay did it so can you please help me, its... more >>
vb.net continuation
Posted by Wendy Elizabeth at 5/30/2006 9:10:02 AM
I am writing a vb.net program that needs to create a table in the same format
each time it creates a new table. This is a "ulility" program that I am going
to be using it for.
Right now I have keyed this large table into sql server 2000 and the
vb.net program I wrote loads all the columns a... more >>
How to join tables in a DataGridView????
Posted by Mark at 5/30/2006 8:33:14 AM
Did Microsoft just gut the capability of its wizard in this regard?
Has anyone successfully done this with the wizard, or do I have to
write everything by hand?
Thanks for any tips.
... more >>
VB.NET Winforms app + MSWord (for spellcheck)?
Posted by Ben R. at 5/30/2006 7:53:02 AM
Hi,
I'm trying to take advantage of Word's spellchecker from a vb.net app. I get
this to work but I have a lot of questions about deployment. First, after I
add the appropriate COM reference in VS.NET 2005, is there an extra .NET
assembly that I need to include with the project to make it ... more >>
Rounding Problem
Posted by Jason at 5/30/2006 6:48:02 AM
I am having a rounding problem in a value i am trying to display in VB.NET.
If I have the following code:
Dim x As Single = 2726.795
Dim y As Single = Math.Round(2726.795, 2)
Dim s as String = String.Format("{0:0.00}", y)
The value of s is 2726.79
If I have the following code:
Dim y As Si... more >>
Knowing window handle from an control itself
Posted by qingxun NO[at]SPAM gmail.com at 5/30/2006 3:00:48 AM
Hi!
I am writing a custom control. Is there a way for my control to refer
to the form (that hosted this control) handle programmatically?
What I wanted to do is to set form property when the control properties
changes. How could I refer to form during design time when the form is
unknown?
... more >>
ASP.net - GridView
Posted by WayDownUnder at 5/30/2006 2:24:02 AM
Hello,
I have a gridview control bound to a objectdatasource.
The primary key column is on the grid but made visible = false.
Because the column is invisible I cant get to the cell value when the user
presses
the edit button on the grid.
Code
Sub CustomersGridView_RowEditing(ByVal sender A... more >>
Thread issue ??
Posted by Tlink at 5/30/2006 1:04:14 AM
I have a master control program that needs to run continuously, accepting
data and updating a datagrid for the user. As a result I have setup 2
threads, one accepts and processes incoming requests and updates the
database, whilst the other thread is started once a update has been
committed t... more >>
The most basic SQL Server questions....
Posted by ljh at 5/30/2006 12:39:32 AM
(sorry if this posts twice....I waited several hours and didn;t see it - so
here it is again.....)
Perhaps I am somewhat dense.....but, I still need to know.....
What do you need to do in order to ship a SQL server Express or Developer
edition database with your Visual Studio .Net 2005 appl... more >>
|