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 > december 2007 > threads for december 8 - 14, 2007

Filter by week: 1 2 3 4 5

Disable Button During Processing & Re-Enable After Processing?
Posted by Donald A. Fisher at 12/14/2007 5:58:35 PM
Hello. I've been working a vb project and have a form with a button on it that performs some actions after disabling the button when clicked: Code disabling button and starting actions: Private Sub btnCreateExcel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnC...more >>


SQL Server BCP utility to copy a table in and out of SQL Server to a CVS file
Posted by fniles at 12/14/2007 2:55:36 PM
I would like to copy a table(s) from SQL Server 2005 to a CVS file and vice versa. I was thinking to use the BCP command line utility, but I have a few questions: 1. The machine where I am going to run BCP utility does not have SQL Server installed, so BCP.exe and its underlying DLLs are n...more >>

Create a class that calls back to the caller
Posted by Academia at 12/14/2007 1:25:13 PM
I need to create a class that calls back to the caller. Like the way a sort routine would call a routine that compares two objects. Can you tell me how to do that and/or point to some sample code that does that? thanks ...more >>

Date Formating
Posted by cmdolcet69 at 12/14/2007 1:20:10 PM
How can i format a Julian day and only the single digit in the year. I only wnat the julian day and the last digit of the year (7) For example the code below i thought would do this however i get errors: strBarcode = strBarcode & Format(CStr(DateDiff("d", DateSerial(Year(Date), 1, 1), Dat...more >>

Setting Text on Different Form
Posted by Fred at 12/14/2007 1:01:02 PM
I have two forms, the first having a label and a button that opens the second form. The second form has a button that I want to set text in form1's label before closing. I have no problem getting the 2nd form to show, but when I click the 2nd form's button to set the text in the 1st form's labe...more >>

Simple threading question
Posted by HardySpicer at 12/14/2007 11:42:17 AM
I looked here http://www.devx.com/DevX/10MinuteSolution/20365 and found that he uses a definition Dim t as Thread My version of vb 2005 does not accept this. Is this out of date? It has threading and a whole lot more. Which do I use? Thanks Hardy...more >>

How to make dropdown display updates?
Posted by clara at 12/14/2007 10:48:01 AM
Hi all, After insert an new record into database, I want to let it dsiplay the new added field , I repopulate the items , and call refrest, but the new item is still missing. Clara -- thank you so much for your help...more >>

webbrowser control: how to capture event of mouse hovering over the link or mouse click events in webbrowser only?
Posted by P-GPS at 12/14/2007 10:32:30 AM
Hi, 1. I have a webbrowser control in a VB .NET (3.5) application. 2. I want to capture the event and call a function whenever the mouse is hovering over a hyperlink. How do I do this? 3. I also want to capture the mouse clicks only in the web-browser. How do I do this? I don't want to use t...more >>



How to get the Assembly version of a file
Posted by Steve at 12/14/2007 10:23:44 AM
Hi Guys, I know how to find the FileVersion using FileVersionInfo, but struggling to find a way to get Assembly Version. Any help would be appreciated. Thanks in advance, Steve. ...more >>

RichTextBox - the correct choice and how to loop
Posted by JCCDevel at 12/14/2007 10:20:33 AM
Hello, I'm working on a pretty simple web app in which the user will be pasting in a list of values (letters and number - like "1V456") most likely from an Excel worksheet. I then want the application to check this list against tables in a sql server database for different things (like - do...more >>

Store Connection Strings
Posted by John Wright at 12/14/2007 9:38:00 AM
I need a good way to securely store my connection strings for my database. Right now I have them in the program resources, but this could be reflected out correct? In VB 6 I used a INI file that stored the values in an encrypted format. So, what is the best way to do this in .NET? John ...more >>

VB .net (webbrowser control) How to capture javascript events (status bar changed/mouseclick etc.)
Posted by P-GPS at 12/14/2007 8:59:08 AM
Hi, I am loading a webpage in the "webbrowser" in a VB .NET application. There are some javascript events which occur when I click a particular button, or link etc. However, these are AJAX applications, so on the status bar of a regular internet explorer browser, I see "DONE" and javascrip...more >>

Question about VBA
Posted by roger_27 at 12/14/2007 8:13:03 AM
hey, I'm going to be working with a program called CRT, it uses VBA to do some scripting. I'm a .NET developer, namely C#, but I want to learn VBA to see if I can make a program for someone. what this program needs to do is highlight a certain field of data in this application, copy it,...more >>

Mozilla ActiveX Control (1.7.12) crashes
Posted by kimiraikkonen at 12/14/2007 7:46:12 AM
Hi, I decided to try Mozilla's famous webbrowser control as an alternative to IE, but this control crashes when i navigate some websites like google.com and google.com's drop down links like "calendar" or others.. Error report includes nss3.dll and i use Mozilla ActiveX Control 1.7.12, if someo...more >>

Why date is changed for no reason?
Posted by clara at 12/14/2007 7:45:00 AM
Hi all, I just retrieve a date field into a texbox, but the date has changed when it is read from database. The database is designed by others,I not sure whether there is something wrong in database or in coding? Clara -- thank you so much for your help...more >>

Structure to Byte Array in VB.NET
Posted by tash.robinson@gmail.com at 12/14/2007 7:39:56 AM
I have been pulling my hair out with this and have searched and found some solutions but I can't seem to get them to work as expected. I have a structure, which I have declared explicitly using <StructLayout(LayoutKind.Explicit)> The structure does contain some arrays, but it is something li...more >>

Tabbing an Xml File
Posted by bg_ie@yahoo.com at 12/14/2007 6:36:04 AM
Hi, I'm working in VB6 and I'm processing an xml file which is tabbed as follows - <?xml version="1.0"?> <Barry> <Meta/> <Data> <Block Version="01"> <NODE Name="1" Value="A" Updated="false"/> <NODE Name="3" Value="B" Updated="false"/> <NODE Name="8" Value="B" Updated="fals...more >>

Error with adapter.update command ( formatexception ) ?
Posted by tommydnp at 12/14/2007 2:01:59 AM
When I use an adapter.update(dataset, "myTable"), I get the following error: System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list. at System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMa...more >>

Way OT: What is it?
Posted by John at 12/14/2007 12:27:24 AM
Hi I have received below from someone. ..- .-. . | -.-- --- ..- | .- -. | .. -.. .. --- - | This has nothing to do with dot net but I thought a lot of intelligent people come here and may be able to help me figure out what it is. Any help would be appreciated. Many Thanks Regards ...more >>

Remove/Delete lines from an array
Posted by Barkingmadscot at 12/13/2007 11:58:50 PM
I am stuck, i can workout how to remove lines from an array I have loading a text file (a Log), I know which lines a need, but the logs can be upto 30K sometimes bigger. I found trying to delete the lines from the log file before loading in the array took ages, i thought i would be alot quic...more >>

EnC with VS 2005 Std SP1
Posted by kris at 12/13/2007 8:29:31 PM
Hello, I had VB 2005 code working in EnC mode. But after harddrive crash, I have installed VB 2005 w/SP1 but my code no longer works for EnC mode. Please help. PS: If I create new project I can do EnC. Thanks, kris ...more >>

need join help
Posted by cj at 12/13/2007 4:50:38 PM
My code below gives me "SQL: Column 'BTN' is not found." It will work if I use an inner join or just join but those two joins don't return all the rows. BTN has 5 rows, but arcust01 has only has matching records for 2 of them. I need the other 3 returned with nulls in the fields from arcu...more >>

Can I get a list of ALL the fields and methods of class?
Posted by Alexander Vasilevsky at 12/13/2007 3:08:13 PM
Can I get a list of ALL the fields and methods of class? http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas discount ...more >>

Reading WndProc Messages
Posted by John Wright at 12/13/2007 12:53:02 PM
First some background: I have been asked to develop a program that access our data warehouse. It requires a login and password to use so we created a custom control that is placed on the form, the user types in their username/password, we validate then return either true or false. The pro...more >>

sharing classes amongst various projects...
Posted by Brad Pears at 12/13/2007 12:51:56 PM
Obviously this can be done - just not sure how... There are two developers who are developing vb.net applications. We have Visual Studio 2005. One developer has developed a ton of classes that I would like to utilize in my projects as well. What is the best way we can go about doing thi...more >>

OO development question...
Posted by Brad Pears at 12/13/2007 10:41:40 AM
I am working on a vb.net 2005 project and I have an OO design question... I have a form on which data on the form is made up from three related tables in a 1->M->M situation. ie... Table 1 and Table 2 are in a 1-M relationship and Table 2 and Table 3 are also in a one to many relationship (u...more >>

DLL problem
Posted by John Wright at 12/13/2007 10:23:39 AM
I have been given a DLL from the corporate office to use in our programs. It takes in two pieces of information (both strings) does something with it, then returns a status back (true/false). It is a control that is added to a form and I don't have access to anything on this object but the re...more >>

Crystal reports
Posted by slinky at 12/13/2007 8:30:01 AM
Thanks in advance... I have a main form which I have Menu items for users to choose reports to run. When the user chooses a report another form pops up - on there is a combobox from which the user chooses one of five items, each calling a different report, and an OK button and a Cancel button. B...more >>

Treeview Hittest Info
Posted by pmcguire at 12/13/2007 7:15:01 AM
I'm trying to use the Hittest to determine where on a node my mouse is. Only I want to know stuff for which there isn't a flag -- eg "Is the hit in the upper part, the center, or the bottom part of the treenode?" How do I do this? Must I somehow override TVM_HITTEST? Is there an easy way...more >>

Change textbox backcolor after data change?
Posted by Dean Slindee at 12/12/2007 8:38:22 PM
Anyone got a quick and easy way to change the background color on a textbox after the user has change the text value. Already have lots of forms written, so an approach that does not depend on adding code to an event on every textbox would be great. Just the same, I don't see an event spec...more >>

Flash Content Asp.Net Page
Posted by Charlie Brown at 12/12/2007 5:52:56 PM
I am working on a site that has embedded flash content in it. The site is based on MasterPages. When we embed a flash object using Dreamweaver it inserts its own code to run the flash object (actually its a fix for the annoying "click here to activate"). However, when combined with Master Pag...more >>

any problems running VB Express 2008 or .Net framework on a 64-bit cpu?
Posted by Richy at 12/12/2007 5:42:50 PM
I'm looking at getting a new computer with an intel core 2 quad q6600 2.4ghz and I was wondering if there are any problems with running VB Express 2008 on such a system or the .Net framework itself? I've read that the Express version won't compile 64-bit code, but as long as it compiles 32-bit...more >>

Put this code in a Class?
Posted by EManning at 12/12/2007 2:24:05 PM
I'm very new to VB.Net and am struggling with the concept of classes and when to use them. I have found some coding to email exceptions to myself that might occur in this project I'm developing. I would like to make this coding available to other projects that I will be developing in the fut...more >>

life and scope of variables in vb.net?
Posted by Jason at 12/12/2007 2:15:04 PM
What's the correct term when talking about the life of a variable in vb.net web? in a vb.net codebehind for asp.net, is it possible to define a variable in one sub, and call another sub and expect to see it? I know the answer is no, but why is that? for example: sub hello() dim x as s...more >>

Using System.IO.Compression.GZipStream to zip multiple files
Posted by Nathan Sokalski at 12/12/2007 1:50:59 PM
I have an application in which I need to allow users to download multiple files at once. All the sites I could find on the web when looking for help suggested creating a zip file, and letting the users download that. This would be fine, except for the fact that not all users will be downloadin...more >>

Managing Virtual memory
Posted by Michael Kansky at 12/12/2007 1:15:37 PM
I have a simple windows app written in VB.net. It has IE control on the form. Once IE control gets utilized by navigating to different www pages, Virtual memory used by the application rises and when garbage is collected the Virtual memory taken by the app stays the same and never gets releas...more >>

Use of AxImage
Posted by Jerry Spence1 at 12/12/2007 11:46:39 AM
I noticed when adding Toolbox Items in the IDE that, under the COM tab I have some Microsoft. Forms 2.0 Controls. I'm not sure where they came from (VB2005, .Net 3.0??), but they have some really nice features. I used the Image control and using the various properties made a nice button which ...more >>

Can I use VB.net program to send a email (without using MS Outlook)
Posted by win at 12/12/2007 11:41:33 AM
Please answer me. Thanks. ...more >>

How to convert this C# code into VB 2005 code?
Posted by Mika M at 12/12/2007 11:36:09 AM
This should be easy, but I don't figure it out... private void setInfoText(string text) { if (this.statusStrip1.InvokeRequired) { this.Invoke((MethodInvoker)delegate() { this.pnlInfo.Text = text; }); } else { this.pnlInfo.Text = text; } } ...more >>

Signing apps causing problems
Posted by Smokey Grindel at 12/12/2007 11:22:26 AM
I signed all our apps with the same digital key file. It ran perfectly fine on my local machine... but when I build it as as setup project and install it on another machine I get errors like System.IO.FileLoadException: Could not load file or assembly 'AssembyNameHere', Version=1.0.2901.218...more >>

VB.NET Really slow filestream
Posted by Frank at 12/12/2007 10:03:04 AM
Hello all, I'm new here and I've searched a lot before posting my question, but I can't seem to find a solution to my problem. I'm working on a database program that I created myself, I created my own file format and I store information about clients in there. So far, so good, but when I tr...more >>

SQL error on SQLDMO
Posted by Darin at 12/12/2007 9:58:16 AM
My application uses SQLDMO. It works fine on SQL 2000 and SQL2005 32bit, but when i ran it on SQL2005 64bit, i received an error: Runtime Error: r6034 Then: Retreiving the COM class factory for component with CLSID () failed due to the following error: 8007045a. What can I do? Darin...more >>

Animated Controls
Posted by NickP at 12/12/2007 9:49:33 AM
Hi there, I've made a few animated controls but would like to check on the correct procedure for doing so as unfortunately every now and then, without warning, I recieve a GDI+ Exception stating that the graphics object is kin use elsewhere. Basically my user control has the foll...more >>

Crystal Reports and custom objects question
Posted by Terry at 12/12/2007 9:13:03 AM
I am brand new to using Crystal Reports and am trying to generate a report based on a custom object - in another project. I have a layered design, with all my business objects in a seperate project. I created a new project as part of the solution, added a reference to the project containing ...more >>

Date compare .. Is it the DATE OLDER than 72 hours ago?
Posted by jc at 12/12/2007 8:48:39 AM
RE: Date compare .. Is it the DATE OLDER than 72 hours ago? I've got a gridview with a label column with text that looks like this.. 12/12/2007 11: 07:25 AM I am able to Change type that into a datetime field. Dim GridDate As Date = CDate(GridOrders.Rows(dgItem.RowIndex).Cells(2).Text...more >>

How to call SQL Function from vb.net
Posted by Harsha at 12/12/2007 5:23:35 AM
Hi PLease let me know how to call the SQL User defined function from the VB.Net code? I have sevaral functions in my SQL database which is created out of database project. I want to execute these function from VB.Net Thanks in advance Sriharsha Karagodu...more >>

Character count in textbox
Posted by si_owen at 12/12/2007 3:23:38 AM
Hi Folks, I am trying to set up some code that will provide a character count for the text entered into a textbox on my form. I am coding in VB.Net using visual studio 2003 - web appliaction. I have sorted the VB code, which when execute via a command button it updates the label. Pri...more >>

Code in finalize causes session to end!
Posted by Rob at 12/11/2007 11:52:41 PM
This is a weird one... I've got a class called PageInfo that has the following finalize code: Protected Overrides Sub Finalize() MyBase.Finalize() Do While m_TempFolders.Count Dim TempPath As String = m_TempFolders.Dequeue Gran...more >>

How to make first column of a datagrid Read Only
Posted by Mr B at 12/11/2007 8:54:00 PM
I am using Vb.net 2003. I am trying to make the first column of a four column datagrid to be "read only". I have been trying to use the information from the following link to try to make the column read only: http://www.codeproject.com/KB/grid/practicalguidedatagrids4.aspx However, I a...more >>

VB 2008: Option Strict On + Infer On at class level
Posted by Armin Zingler at 12/11/2007 7:47:20 PM
Hi, after dealing with the new possiblities of the current VB version, I again and still wonder why Option Infer can not be used with Option Strict On at class level, i.e. when declaring a field: Dim x = 17 Now I found out that the same line does work within a procedure. Actually I w...more >>

VB, implementing the high score within this code
Posted by Flanders at 12/11/2007 4:34:03 PM
I have developed a small arcade game with the help of a few VB books. A scoring system was implemented in the design of the game but I as hoping that some one would be able to instruct me on how display the score at the end of the game. At the moment when a player finishes the game I have a wind...more >>

Another question about regex (not understanding)
Posted by maggie at 12/11/2007 4:09:00 PM
hi, I've been working getting a file parsed out using Regex. There's something I don't understand. When I define the pattern for my fields in my file, I am telling regex to grab those fields ( strings and salary figures, numbers with decimals) . Some of the fields contain commas, so that's ...more >>

Windows Login Event Monitor
Posted by Neil at 12/11/2007 2:41:26 PM
Hi I've written a bit of software that runs as a service for use at work which records when a user logs in and logs off. This allows us to monitor PC usage. This currently only runs when the service is started and stopped manually by Zenworks. I want to change it so the service is running a...more >>

Linq. Remove. VS 2008 Final Version
Posted by shapper at 12/11/2007 12:04:45 PM
Hello, I was using LINQ with VS 2008 Beta 2 and suddenly after installed VS2008 final version I get an error. My code is really simple: Dim database As New MyDbDataContext Dim tag = (From t In database.Tags _ Where t.TagID = index).Single database.Tags.Remov...more >>

High Score
Posted by Flanders at 12/11/2007 11:33:57 AM
I have developed a small arcade game with the help of a few VB books. A scoring system was implemented in the design of the game but I as hoping that some one would be able to instruct me on how display the score at the end of the game. At the moment when a player finishes the game I have a ...more >>

how do I stdout to a form instead of console
Posted by DougE at 12/11/2007 9:34:02 AM
Some people tryed to help in my previous post. But I don't quite have it. What I want to do is send stdout to something on a form textbox, panel, listbox -- something. I want to write to a form the same way you would write to a console using console.write(), except I want to send that output to ...more >>

Dropdownlist in Repeater Control Handling Postback
Posted by Charlie Brown at 12/11/2007 8:27:32 AM
I'm pretty sure this has worked for me before, but it's getting me nowhere today. The Index Changed event never fires the method. Autopostback is set to true in the designer. In the ItemDataBound Event, I am adding a handler for the dropdownlist Dim ddl as DropDownList = Ctype(e.Item.FindCo...more >>

Issues with datagridview last record updating sql database
Posted by awade@gulfstatesmanufacturers.com at 12/11/2007 8:06:19 AM
OK. I appreciate anyone's help with this. This is my first main program using VB.NET 2005. I've previously programmed in VB6. I've got a form with a datagridview object. Its bound to an SQL 2005 Express database. I currently can update the cells in the datagridview, and it updates the dat...more >>

Searching for a file
Posted by id10t error at 12/11/2007 5:42:00 AM
I need a way to search a computer for a text file using vb.net. What is the best way to do this? Thank you for your help...more >>

Repeated numbers
Posted by Robert Scheer at 12/11/2007 4:42:31 AM
Hi. I am trying to write a boolean function that checks if the user entered a sequence with 7 equal numbers, eg: 1111111, 2222222, 3333333 and so on. How can I do this in VB.NET ? Thanks, Robert Scheer...more >>

XPath
Posted by SiJP at 12/11/2007 3:44:01 AM
Consider the following XML <?xml version="1.0" encoding="UTF-8"?> <Root> <Data> <ID>1005</ID> <Reference> <Reference>ABC</Reference> <Country>UK</Country> </Reference> <Reference> <Reference>123</Reference> <Country>USA</Country> </Reference> </Data> </Roo...more >>

convert image to array of bytes or InPtr
Posted by Ricardo Furtado at 12/11/2007 1:53:03 AM
I'm using OpenGL in Visual Basic .net 2005 and i need to use the following function glBitmap(width as integer,height as integer, xorig as single, yorig as single, xmove as single, ymove as single, bitmap as System.InPtr) or glBitmap(width as integer...more >>

Run app from network share
Posted by B at 12/10/2007 11:26:05 PM
Can somedoby tell me the steps, or perhaps examples, which I have to complete to access .net application on client computer from network shared folder on server computer?? I made a release of my appplication and it is on my D disk (D:\Test) and I use third party control (xyz.dll) which is in ...more >>

LINQ Q. - find duplicate characters
Posted by Arthur Dent at 12/10/2007 10:34:33 PM
Hello all, I am trying to figure out how to do something in LINQ, IF I can even do it in LINQ. Online samples and such for LINQ is still a bit on the sketchy side. Here is what I want to do... I have some string, whatever, that doesn't matter. I want to find all the characters which oc...more >>

Save Microsoft Access database OLE Objects (jpegs) to disk via VB.
Posted by dmbuso at 12/10/2007 7:23:00 PM
I have an Access database with a table named 'tblMedia'. In tblMedia I have a field named 'Media' that is defined as an 'OLE Ojbect' field. In this Media field, I have pictures, they are jpegs. I'm using VB.NET 2005 and I would like to open the Access database and write the OLE Objects to the ...more >>

How to Reference Office 11 or 12 or both
Posted by Dean Slindee at 12/10/2007 6:59:25 PM
As a MS WinForm developer, I have built applications that reference Office assemblies in my apps for special purposes like Spell Checking (Word), etc. I have Office 12 at home but my employer has Office 11. Today, in order to compile the same application in both locations, I have been deletin...more >>

Regular Expression Mystery
Posted by eBob.com at 12/10/2007 3:45:18 PM
I have text such as the following ... COLOR="#CCCCCC"><B>zona de Belgrano...</B></FONT> What I want to extract from such strings is, in this case, "Belgrano". I have the following regular expression ... Zona[\ \s]+(de)?[\ \s]+(?<zone>[\w\ ]+)(\.){0,3}(<(/)?BR>)?[\s\ ...more >>

Bound Text boxes not updating table
Posted by Mr B at 12/10/2007 3:38:01 PM
I had originally posted this in another thread, but did not get and results. I appologize for cross posting but I really would like to get some assistance with this. I am new to developing in VB.net so my question may be very elementary with I need some assistance, so here goes: I am usi...more >>

Convert.ToDateTime ERROR
Posted by andrew at 12/10/2007 1:00:02 PM
I am running an ASP.net program written in VB. At one point I try to convert a date string into a date time object... this string is from a central dev server and the code works on many other machines. Convert.ToDateTime("") I get the string in the format MM/DD/YYYY (06/26/2007) The co...more >>

help with regex?
Posted by maggie at 12/10/2007 10:32:03 AM
hi, I need some help with a reg. expression. I have a comma delimited file with quotes. Not every field has quotes, only some. This is a sample of my file: 99,"01/01/2007","23,000",1,34,"henry",132,"45.00" I used some code from an article that I though would do what I needed, but it splits...more >>

Generic param must implement "shift" operation
Posted by Bob Altman at 12/10/2007 9:58:59 AM
Hi all, I want to write a generic class that does this: Public Class X (Of T) Public Sub Method(param As T) dim x as T = param >> 3 End Sub End Class So, I need to constrain T to types that implement the ">>" operator. Is there a way to do this? TIA - Bob ...more >>

Automating Applications Question
Posted by plangla at 12/10/2007 9:21:46 AM
I am trying to start the default e-mail browser automatically from a menu item click. The code works for the web browser but not for e-mail. This is the sample for web browser that works Private Sub MenuItem25_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuI...more >>

How to display the part of an infinity value?
Posted by kimiraikkonen at 12/10/2007 6:17:59 AM
Hello, I have an aritmetic calculation like this: First note that: i need a "timer" to get the value for value3. (however removing "timer" didn't differ) Dim value1 As Long Dim value2 As String Dim value3 As String value3 = (value2 * 8) / value1 Label1.Text = value3 which returns resu...more >>

Barcode scanning help desperately needed!
Posted by jim at 12/10/2007 5:55:45 AM
I need to have 2 simple barcode reader applications finished by midnight tonight. I have never written any barcode reader software and need any help that you may be able to offer. I do not know what type of barcode the user will have, so I need to be able to accept input from any industry ...more >>

Using Web Forms vs Windows Forms
Posted by Reds at 12/10/2007 5:22:21 AM
HI, I have just started using Web Forms. It seems that I'm not able to do some things that Windows Forms allow me to do. For example, I tried to implement a counter using a module level declaration, but it would not increment using Web Forms. Also, some controls such as textboxes, which wo...more >>

lame_enc.dll and VB.NET
Posted by kimiraikkonen at 12/10/2007 4:10:05 AM
Hello, I wonder a thing about free mp3 encoder lame if it supports to be used under Visual Basic .NET. I searched the net then i read sth than Lame is not accessible under Visual Basic directly. Lame was written under C language, so is that the reason that lame_enc.dll cannot be used in Visual ...more >>

RS232C Communication in VB.NET 2003
Posted by thomasc1020@gmail.com at 12/9/2007 9:21:59 PM
Hi, I am trying to write a code which reads in the iput characters from a RS232C port(COM port). I found out that 'mscomm' can be used to solve this problem on VB.NET 2005. However, I was unable to find out any information about 'mscomm' from msdn that came with my caopy of VS.NET and any in...more >>

One for the multithreading Gurus
Posted by dgleeson3@eircom.net at 12/9/2007 1:55:24 PM
Hello All Im having lots of fun with window handles and invoke. The code started off in a single class. Main thread set up a worker thread and the worker thread updated the progress bar on form1 (which only has a progress bar and a button). All worked well - No problems. The implementatio...more >>

problem with date conversion
Posted by Bob at 12/9/2007 1:22:47 PM
Hi, i want to pass the date/time from one page to another page like this: firts page: --------- <asp:HyperLink ID="HyperLink1" NavigateUrl="mypage.aspx?dat= & 'date.now'" runat="server">lijst</asp:HyperLink> the code-behind of mypage.aspx --------------------------------- Dim dd As Da...more >>

Windows Native Calls
Posted by jc at 12/9/2007 12:23:15 PM
Hello. I'm doing some prep work before taking the vb.net brainbench. I noticed one of the topics is : Consuming resources - Windows Native Calls Where can I get more info on this? What exactly is a Windows Native call? Controls that talk to the OS? I was MCAD in vb.net in 2003, and ...more >>

Resource Name is Invalid Identifier
Posted by Greg at 12/9/2007 10:01:00 AM
I've added some ICO Images to some buttons on my forms. I added them by selecting an Image via the "Select Resource" window. Anyway, all of my images are working just fine, I am getting a WARNING message that says - Resource Name "Picture Image Name" is not a valid Identifier. I don't und...more >>

Check for duplicates before inserting into Access
Posted by richardkreidl@northwesternmutual.com at 12/9/2007 7:20:37 AM
I'm trying to check for duplicates before I do an INSERT into the Access database table. I basically want to alert the user if the 'ProjectName' and the 'MileStones' are already in the table.. thanks Code Below: Private Sub btnADD_Click(ByVal sender As System.Object, ByVal e As System.Even...more >>

CurrentRowIndex always returns Zero.
Posted by Bill Fisher at 12/9/2007 7:20:30 AM
Disclaimer, I am very, VERY new to .net. I am currently working with vb.net Visual Studio 2003.and I have a problem with the CurrentRowIndex property of the DataGrid control. I load an xml file to a data grid (dgMenu) like this: Private Sub Form1_Load(ByVal sender As System.Object, By...more >>

Question about Structures
Posted by Jerry Spence1 at 12/9/2007 1:30:49 AM
As a base line to my question, a structure can look like this: Public FullName as xName Structure xName Public FirstName as String Public SecondName as String Public Title as ?????? (see below) End Structure I would like to add into the Structure statement Public Title which could be ...more >>

How to get what a variable is dimmed as? How to get what an object is declared as? If variable or object is Nothing?
Posted by recurr at 12/9/2007 12:21:13 AM
How to get what a variable is dimmed as? How to get what an object is declared as? If variable or object is Nothing? I want to do something like the following, but TypeOf and GetType doesn't seem to work when a variable is Nothing. The watch window is able to find the type, so why can't I with...more >>

Does e.CloseReason work for you?
Posted by Academia at 12/8/2007 6:45:48 PM
Protected Overrides Sub OnFormClosing(ByVal e As System.Windows.Forms.FormClosingEventArgs) MyBase.OnFormClosing(e) Console.WriteLine(e.CloseReason.ToString ) always writes UserClosing No matter if I'm closing the form, exiting the app, shutting down windows or using the T...more >>

how to use a session variable into a class?
Posted by Bob at 12/8/2007 11:12:41 AM
Hi, in order to check the value of a session variable in each page, i want to put the code into a shared sub like this: Public Class myclass Public Shared Sub checksession() If Session("myvar") = "" Then Response.Redirect("mypage.aspx") End If End Sub...more >>

Toggle Button
Posted by Greg at 12/8/2007 10:44:00 AM
I've been looking for a Toggle Button style control and can't seem to find anything. I want to have two buttons on the screen with only one of the two being pushed down (or true). One of the two buttons must always be pushed down and when the other one is pushed down on the other becomes false...more >>

MustInherit give a problem
Posted by Academia at 12/8/2007 10:03:51 AM
I create a form Public Class MyTool Inherits MyForm .... which uses: Public MustInherit Class MyForm Inherits Form .... The reason for the MustInherit is that the MyForm contains: Protected Friend MustOverride Sub SetThis() And get the error: The designer must crea...more >>


DevelopmentNow Blog