vb

Boolean variables and three-state CheckBoxes: How best to do type conversion?

This is in VB6 (may also apply to VB.net) CheckBoxes can have three states (Checked, Unchecked, Greyed). But I'm using them to set boolean variables (MuteSound, etc.) This is definitely a value that has only two states. Unfortunately, the Checked and Unchecked don't correspond to a True/False value. So, I can't have: bMuteSound=Chk...

Visual Basic Power Packs problem!

Hi all, I include the power packs in my app, and now I encounter problems when I try to deploy it to some other Win-XP machines which do not have Visual Studio (2008), although I include its DLL inside the installation package. The DLL is "C:\Program Files\Common Files\Microsoft Shared\Visual Basic Power Packs\1.1\Microsoft.VisualBasic...

A First Chance Exception

Good evening, everyone; My name is Braden and I'm using Visual Basic 2008 Express Edition. I've been running through the MSDN help documents to get a hang of Visual Basic. After trying out the example using timers --one drags a label and timer component into the designer and adds the following to the components subroutine Label1.Text...

Splitting Excel File Using VB

I have an excel worksheet that produces data into another worksheet. After this I export from the worksheet into a csv format. I need to be able to split the data every 250 rows into a new file regardless of the information contained. I'm using VB for the coding in this. Any help greatly appreciated. Thanks ...

What's the best way for a C# developer to learn VB?

I'm a C# programmer who needs to pick up some VB. The syntax differences are easy enough to figure out, but there are other things I'll need more of a tutorial on. For example, VB's "strict" mode in Visual Studio is something essential to me, but something I wouldn't have learned just by comparing language syntax. Any recommendations ...

Changing the style of Individual cells in a datagridview row

Is it possible to give individual cells in a data grid view row different styles such as backcolor, fontcolor etc? I do not mean giving the whole row a new style, only a specific cell. ...

Moving keyboard focus away from listbox

Hi! I'm developing a program in WPF (VB) that relies on keyboard navigation only. In my program, I have a listbox that displays up to 20000 items. What I want is that when the listbox has keyboard focus, and I move to the bottom item that is visible (using ArrowDown), I want the focus to move to the next item outside the listbox. I'm...

parallel port programming

Hi, quick question: Can parallel port receive and send data at same time? And if u have more tips about VB and parallel port programming, please feel free to tell me. :) Thank you ...

VB Question(easy): Adding an error message

Hey I wrote a programme that would add, delete, save and search through records in a database (recordset) however I was doing it in a team. My task was to add the search function to the programme, which I have however I am having problems with adding an error message for when somebody types a word/anything that isn't in the database/reco...

Rectifying runtime error while using Ajax controls

hi, I am using Ajax controls like CalendarExtender,FilteredTextboxExtender,Accordion,MaskedEditExtender,ConfirmButtonControl,ValidatorCalloutExtender etc in my application.I am also using Validators like RequireFieldValidators,RangeExpressionValidator etc. When i am running the application, i used to get the following error. Error:- S...

How to Rollback Data in vb.net

Hi, I have a page in which there are 3 sections.In the first section,i have some details to save in the Database.I am saving these details through a StoredProcedure(sql) named Procedure1.The details are stored in a table named Table1.There is a Primary key in the table named "ID".This "ID" is inserted automatically in the table. In the...

To calculate days in a month

hi guys, i have a textbox that displays date in format,for eg:March,20,2008.Then i need to get total days n march in year 2008.Can anybody help ...

Will upgrading Office from 2003 to 2007 break VB programs which use Excel through the COM interop?

Assume all traces of Office 2003 will be removed from the computer. UPDATE: I understand that I will still be able to use .xls files. I'm asking about automating Excel through the COM interop from outside Excel. When I add a reference to Excel to a VB project, it gives me a different version of the dll for different versions of Excel. ...

Visual Basic - taking information from one window and putting it into another

I am developing a game and I want an options window to be used so that the user enters data into this and it carries to the main window instead of being lost... I tried it with my recent program , guess the color , but it did not work the way I thought. I thought that I could assign it to a string in a textbox to a variable and it would...

RunTime Error '70' Permission Denied in VB6

Hi, I am using VB6. The tool that i have created extracts few zip files and unzips them onto a folder that i create locally.In the clean up part of my code, i have deleted the folder using this code If (f.FolderExists(path + "Extracted Files") = True) Then f.DeleteFolder (path + "Extracted Files") End If When i run this...

Including an asp vb page in an aspx c# page

Can I have an aspx page written with a C# code behind file. And include an asp page with code written in vb? ...

How To Check If Microphone Is On

I'm using VisualBasic (and I'm kind of new to it) how can I check if the microphone is on? I'm capturing a video from the web cam, but I need also to make sure that the microphone is on. I caould not find out how to check that. Please help ...

VB Replace problem with HTML ascii codes

So I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti = Replace(teksti, "<", "& lt;") teksti = Replace(teksti, ">", "& gt;") teksti = Replace(teksti, """", "& quot;") teksti = Replace(teksti, "'", "& #8217;") teksti = Replace(teksti, "%", "& #37;") teksti = Replace(teksti, "&", "& amp;") teksti = Repla...

Loading VB forms/UserControls into ActiveX control

I have developed an ActiveX control in VB 6.0. I have a placeholder in my ActiveX control, where I need to load a user control developed in VB 6.0 at runtime. The user control has to be part of another DLL/OCX file. How do I load the user control in VB dynamically? All the user controls have some common functionalities. Can I implement...

Capturing IR Data using VB.NET

Just found an old IR reciever (Microsoft eHome Infared Transceiver) and i'm trying to write an application that can use data it captures... Any examples or jumping off points for this are appreciated. Thanks! ...