Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
all groups > vb.net > september 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

Text File Manipulation
Posted by Garth Wells at 9/30/2006 10:53:59 PM
I need to open up a .csv and replace all adjacent commas (,,) with comma zero comma (,0,). Anybody have an example of how to do this? Thanks ...more >>


Registry enigma - please help!
Posted by JOSII at 9/30/2006 7:47:01 PM
Getting a string of boolean value into and out of the registry is no problem. Here's the problem: Although you can place an object into the registry and retreive it, I need to place an ArrayList object with 10 string items into the registry and retreive them later. I tried this: key.Se...more >>

Crystal Report or MS Word?
Posted by jmar at 9/30/2006 2:13:33 PM
I posted a week ago and received one response. I'm looking for the opinion of several experienced .NET people before I proceed so I'm posting again. Sorry for the repost... I am updating a VB4.0 quote generation program to VB.net. The old program takes user inputs, performs calculations, sa...more >>

(newbie - VB2005) writing to file
Posted by Opa Vito at 9/30/2006 1:24:03 PM
Hello, I give up .... probably I'm too stupid to understand but I cannot figure out how to write a string to a certain place in a file. This is what I like to do: Somewhere in a file is a section called '[settings]', every time the application is opened there is a veryfication to see when...more >>

Logic Operators with 3 arguments
Posted by pamelafluente NO[at]SPAM libero.it at 9/30/2006 10:03:25 AM
Hi, what is the appropriate way to to the following operations for three arguments (a,b,c) (wikipedia has definitions, in case): NAND, NOR, XNOR ? Thanks -P ...more >>

Permission Problem
Posted by Pitaridis Aristotelis at 9/30/2006 12:00:00 AM
I have an application which uses an Access Database to store the various information. It was working perfect until I had to put it in a shared folder in order to be able to use it from various machines. Now, when I try to execute the application, it displays the following error message: Requse...more >>

Filestream problem
Posted by khan at 9/29/2006 9:43:06 PM
Hi guys I see blue line underneat the word FileStream in the following code in line 2. Can any one help me to find out what am I missing Imports System.IO Imports System.Windows.Forms Public Class Form1 Inherits System.Windows.Forms.Form Private Sub Button1_Click(ByVal sender As...more >>

Events and Windows Services
Posted by Jason at 9/29/2006 9:12:00 PM
If I write a windows service that raises events, is there a way I can listen for and catch those events from a windows forms application? TIA, Jason ...more >>



pb with text encoding...
Posted by Eric bouxirot at 9/29/2006 4:13:38 PM
hi, i have one new probleme... if i execute one command from command line. (subversion software) i get some text in french...with accent.. but if i execute the same commande from my code : Dim myProcess As Process = New Process() myProcess.StartInfo.FileName = EXEName ...more >>

DirectX
Posted by Dennis at 9/29/2006 4:13:01 PM
Where is a good internet site to learn about DirectX, i.e., what it is, what it does, and how to use it with VB.Net. Also, is it faster (or even possible) to draw to a bitmap with Direct X or with using GDI. -- Dennis in Houston...more >>

Help Needed in VB
Posted by Craigbob at 9/29/2006 3:46:01 PM
Hi, I'm new here and it has been several years since I've done any serious VB coding. I used to do a lot of VB6 development and have not really touched it in about 8 years. .NET is brand new to me as well. I need to create a quickie application either in VB6 or preferably VB.NET that do...more >>

listbox drop style
Posted by GS at 9/29/2006 12:09:16 PM
in visual studio 2005 express VB I found mention of drop style for listbox but so far my searches came up empty as to how and what they are. I was to set height and I figure I can probably do something with setting height during the focus events to simulate drop down list However if there ar...more >>

vb6 to vb.net migration
Posted by bartj1 NO[at]SPAM gmail.com at 9/29/2006 11:58:41 AM
Hello, I am a vb (classic vb5/vb6) programmer who is getting his feet wet with ..net. I have been attempting to use various old vb functions and tweek them as required to get thme to run under .net. In many cases I was pleasently surprised by how easy it was, and in other cases I have had to...more >>

Two Pass Update - best way?
Posted by Hexman at 9/29/2006 10:52:57 AM
Hello Again, I have a table that contains data that needs to be ranked. There are actually 2 columns that need to be ranked. I have already completed the task but did it in a "Brute Force" way. I created a datatable did a select (got 72,000 recs) and order by. Looped thru the dt updating each...more >>

String -> StringBuilder Optimization
Posted by Michael D. Ober at 9/29/2006 9:52:06 AM
OK, I can't figure out a way to optimize the following VB 2005 code using StringBuilders: Public Const RecSize as Integer = 105 Private buffer As String Public Sub New() init End Sub Public Sub New(ByVal value As String) buffer = LSet(value, 105) End Sub Public Sub init() ...more >>

When to display a tooltip in Win Form Datagrid
Posted by mfleet1973 NO[at]SPAM yahoo.ca at 9/29/2006 8:23:48 AM
Hi Gang. My program displays tooltips in the datagrid. Right now the tooltip displays all the time. However, I only want to display the tooltip when the text is too long for the textbox. How can I detect that the text is too long for the textbox it is displayed in? I use vb.net 2003 an...more >>

how to find specific date?
Posted by ibiza at 9/29/2006 7:53:15 AM
Hi all, I need to find a specific, for example the third friday of a given month/year. How to do that? thanks :) ...more >>

vb.net 2003 Data Wizard Form
Posted by Peter Newman at 9/29/2006 7:40:02 AM
i have used the data wizard form to create a data form with a datagrid on it. What i want to do is add a new coloum and put a Button in it. can anyboody showm me how to do this .... I will need the onclick event for the button as well eg cell 1 cell2 cell3 text ...more >>

vb.net DataGrid
Posted by Peter Newman at 9/29/2006 5:56:02 AM
Is there any way of finding out how mwny rows of data there are in the grid ?...more >>

UserControl(?) Question
Posted by teslar91 NO[at]SPAM hotmail.com at 9/29/2006 4:38:48 AM
I've designed a UserControl that acts as a custom DataSource. However, when I add it to a form, I don't want it *on* the form itself, but in that little area below it (does it have a name?) where the built-in Data controls such as the BindingSource go. How can I do that? ...more >>

Think BEFORE you post.
Posted by GhostInAK at 9/29/2006 3:24:48 AM
I'm seeing a terribly distubing number of questions that have no purpose in existing. As an example: How do I change the position of a stream? Hmm.. Could it be some method on the stream itsself? Probably. My advice, pleading advice, is that you USE YOUR DAMN BRAINS before spewing your ...more >>

Create new "me"
Posted by M O J O at 9/29/2006 1:23:03 AM
Hi, Instead of doing this.... Public Class Form1 Public Shared Sub CreateAndShow() Dim f As New Form1 f.Show() End Sub End Class I would like to make it generic by doing something like... Public Class Form1 Public Shared Sub CreateAndShow() Di...more >>

Learn about XML?
Posted by Grumpy Aero Guy at 9/29/2006 1:02:07 AM
I would like to expand my "horizons" and learn what XML is all about. Been programming for a long time, but XML I only know superfically at best. Can anyone recommend a good book to help someone like me get up to speed that's elementary enough, but that I won't outgrow in two weeks... (??) ...more >>

Data Binding - Checked List Box
Posted by Stephen Plotnick at 9/28/2006 11:15:36 PM
My understanding of data binding means that when a user changes a value on the screen it actaully changes the value in an Access table. If this is true here is what I want to do: Threee field Access table: First field and second field are text. Third field is a yes/no. I want to creat...more >>

A little shove in the right direction please.....
Posted by smerf at 9/28/2006 9:56:35 PM
I want to code a local proxy that I can point my browsers to... The reason for this is to be able to grab the pages before they hit my browsers and filter out undesirable content. Any help you can give as far as tools or components or general info on this topic would be greatly appreciated...more >>

How to figure this one out - "The isnull function requires 2 argument(s)"
Posted by Hexman at 9/28/2006 9:27:03 PM
Hello All, In SS EE I have nulls in a column. I want to select and eventually change to a zero (its a smallint column). I've tried selecting 'null', 'dbnull', etc. Then I read about the ISNULL function. From the example I got, I received the "...requires 2 arguments...." error. Read up on i...more >>

refrence a form object using a varible.
Posted by xnakxx NO[at]SPAM gmail.com at 9/28/2006 9:15:12 PM
for the sake of making my crazy question eaiser to understand i will try to simplify it as much as possible. Let's say I have a form with one textbox (txtname) and one button (bntGo). How would i go about changing the "text" attribute of the textbox using the var "name"? I am sure that this ...more >>

What in the world is my prof trying to say? Dealing with MsgBox
Posted by James at 9/28/2006 7:36:03 PM
What does this mean? 'To specify more than the first argument, you must use the MsgBox function in an expression' I'd love to see an example. Thanks! ...more >>

Or in MsgBox Function
Posted by James at 9/28/2006 6:51:23 PM
Can someone explain to me what the Or does here? Dim intReply as Integer = _ MsgBox(strPrompt, MsgBoxStyle.OKCancel Or MsgBoxStyle.Critical Or MsgBoxStyle.DefaultButton2, strTitle) I don't have VB on this cpu... will it display the ok and cancel buttons and the critical icon ... i sti...more >>

time formatting error
Posted by linuxnooby NO[at]SPAM yahoo.com.au at 9/28/2006 6:38:23 PM
Hi I am trying to display a unix timestamp as a time of day. I can do this but I lose 10 hours. Is this something do with locale or is there an error in my code?? The timestamp is for 11.20 am, but the message box displays 1.20am !! Dim timestamp As Integer = 1159492831 Dim dt As Date ...more >>

System.Windows.Forms.WebBrowser - Javascript
Posted by Spam Catcher at 9/28/2006 5:11:29 PM
Is there a way for Javascript within a WebBrowser Control to access the parent .NET application? I was using another IE control and it had this ability. Anyone know how to do this in the .NET 2.0 browser? Thansk!...more >>

Truly transparent label.
Posted by T Clancey at 9/28/2006 4:38:21 PM
Hi all. I've been working on a small and very simple label design app for a few days now, I've got most of my problems solved, although I'm sure there are some more just around the corner! The current issue is trying to get dynamically created labels to be truly transparent. Setting the...more >>

Command line argument
Posted by snow at 9/28/2006 3:34:15 PM
Hi all, I want to drag a file and drop to my application icon on the desktop to open the file. I use command line statement to catch the file location, like the following: dim cmd as string = Microsoft.VisualBasic.Command() cmd is the file full path, it works if there is no white space in...more >>

Setting breakpoints in VB2005
Posted by Jerry Spence1 at 9/28/2006 3:02:03 PM
In VB6 you could set a breakpoint when a variable had changed value. I can't find this in VB2005. Is it there somewhere? -Jerry ...more >>

Citrix, VB.NET and Repaint
Posted by Paul at 9/28/2006 2:55:40 PM
I have a VB.NET form with a DataGrid. When I toggle to Excel (for example) and then back to my application the repaint of the DataGrid is really slow. You can see the repainting happening. When I toggle back to Excel, it does not do that. The repaint is quick. I'm running this within a Citr...more >>

Writing to Multiple Files - VB6
Posted by M at 9/28/2006 2:02:57 PM
Hi, I have an idea that I want to write to many (qty unknown untill run time but in the order of 5) text files as my application runs. They're log files dealing with different aspects of the application and will ultimately be sent to different users, hence why they have to be different files....more >>

regex question
Posted by GS at 9/28/2006 1:24:10 PM
what is a good regex expression for remove html <img ....> tag? I tried "<img [/:.a-z =0-9\""_;&]*\->", RegexOptions.IgnoreCase) but it is not quite working thank you for your time ...more >>

Converting a string to a Form object
Posted by Kevin S Gallagher at 9/28/2006 10:07:03 AM
I found this code (pretty sure it was from a MVP) for converting a string variable to a form object which works fine within a form. Take the code and place it into a code module and it fails on the second line in regards to Me.GetType.... any idea how to get this to work outside of a form? ...more >>

JavaScript, ASP, and VB :)
Posted by JimmyFo at 9/28/2006 8:46:11 AM
Hi, this is a bit complicated but maybe someone can help here. I have an ASP.Net 2.0 page with a JavaScript file selector. I did this because I wanted to be able to select multiple files at a time. Here's a quick preview of the JS and ASP to show you what it looks like: ASP <td style="width...more >>

How to find the position of the first dash in a string
Posted by Rob at 9/28/2006 8:20:52 AM
lets' say I have a value ABCD - 123 How can I return the position of the dash ? ...more >>

Iterate a structure to get name and value
Posted by csgraham74 at 9/28/2006 6:33:43 AM
Hello, just wondering if someone can help me - im using the following code to iterate around a structure and get the name of each varaibale in the structure. Basically i need to get the value of the item in the structure as well as the name. Would anyone have any ideas on how to go about this...more >>

keypressed
Posted by Peter Newman at 9/28/2006 5:03:02 AM
vb.net 2003 i have the following procedure Private Sub StrLicence_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles StrLicence.KeyPress Select Case e.KeyChar Case Microsoft.VisualBasic.ChrW(13) MsgBox(" ENTER PRE...more >>

Are optional parameters really an advisable thing to use ?
Posted by pamelafluente NO[at]SPAM libero.it at 9/28/2006 3:58:21 AM
Hi guys, In the past I have used several time optional parameters in my function. But Now I am more inclined to think that they are more dangerous than useful, and probably better to be avoided. I'd like to hear your various opinions on this matter. Thanks, -P ...more >>

Looking for a real working transparent picturebox
Posted by Andreas Kammann at 9/28/2006 12:00:00 AM
hi there, iam still looking for a transparent picture box , that works also with 2 pictureboxes over each other or working over an panel. i don't find solution. or is there out another custom control ? i have tryed it with directly paint in an other picturebox, but the problem is with restor...more >>

(newbie -vb2005) going back to begin of file with StreamReader
Posted by Opa Vito at 9/28/2006 12:00:00 AM
Hello, I do a reading of a file with a StreamReader, reading line after line. How do I force the reader to go back to the beginning of the file and start reading again (or go to a specified line) when it reaches the end of the file? Thanks Opa Vito...more >>

Handle Worked - can someone please double check
Posted by Miro at 9/27/2006 11:37:58 PM
I wanted certain text boxes ( only certain ones ) to always be Trim'd so that spaces are not in the begining, nor the end of the text entered. I created my own "Handle ?" - i hope thats the right terminology, and it works. Is this the right way to do this? I had to use DirectCast to get the...more >>

Multiple child forms - updating the right one
Posted by Kevin at 9/27/2006 9:25:09 PM
I've got an mdiParent form. I open an instance of a child form like this: Dim frmChild as New frmCustomers frmChild.Show() I've got a few of these open at a time. On each frmChild I open another form that displays customer data. When I make changes and save the customer data, I need the up...more >>

Export array from vb.net to excel
Posted by michealmess NO[at]SPAM bigpond.com at 9/27/2006 8:59:05 PM
Can anyone help me. I wish to export an array from vb.net to excel ranges. This will happen for multiple files. The ranges names will not be start and end in the same cells on all files. How do i do this? ...more >>

File converting/sending help
Posted by Bonzol at 9/27/2006 8:19:47 PM
vb.net 2003 VB Hey there, I have a program that uses remote connections and it can send strings to the clients and from clients to server. Now we need to send files this way, is there anyway to convert files such as images,, exes,, anything? to a string and send it? then recomplie it as a f...more >>

Getting form properties from another running application
Posted by Andrew E Chapman at 9/27/2006 7:53:02 PM
I would like to retrieve properties such as position and size of another application running at the same time as my .NET application. The other application may or may not be .NET. I understand how to retrieve the handle and window name, using, eg: Dim proc() As Process proc...more >>


DevelopmentNow Blog