20,284 Topics
| |
in vb6 the most efficient/fast way to test if a variable/object was empty was to use [code] if lenb(x) = 0 then [/code] instead of using if x = "" in .net len(x) works, but is there a more efficient way? | |
im trying to determine if there is an item selected on the listview.. i have a listview that displays customers name with a .tag that holds there ID. how do you tell if the tag is 0 or empty before executing code? in vb6 i simply did [code] if .lstwhatever.selecteditem … | |
Hi all! Is that possible to use Crystal Reports 8 with VB2008 Express? Thanks in advance! | |
Hi all, I am currently developing a webpart that works as a submit for many web parts at once. When the Submit button is pressed, it sets a session variable and then when the page is realoded, each form on the screen responds to this and calls their own Submit … | |
i need help on how to move button over a panel from the form in which the button is created dynamically at run-time ? | |
I would like to be able to create images in either corel draw or word that I can just copy in vb design view like you could using the image control in vb 6.0 without having to store the picture as a file. | |
Dear Developers I have following codes on lostfocus of textbox1.text to search values. It works fine but how to navigate database. I mean what codes should I use for Next Record and Previous Record Buttons. My SQL database name is accounts and table name is employees Please help str = … | |
Hi I need to insert some data from Text boxes in an aspx page into an Access DB but I keep getting a Data type mismatch in criteria expression error. The problem is the Double which I think I have converted correctly. All the other fields are OK as strings … | |
Hello, I am relatively new to posting in forums, so forgive me if I posted in the wrong area. I am having difficulty with saving changes made to my database. First of all, I can create a patient in the database (MS Access), and save their contact info no problem. … | |
Hello, I am relatively new to posting in forums, so forgive me if I posted in the wrong area. I am having difficulty with saving changes made to my database. First of all, I can create a patient in the database (MS Access), and save their contact info no problem. … | |
I have a USB device (analog-digital converter) and DLL library for it (mDAQ.h, mDAQ.lib and mDAQ.dll). Can I use functions of this library in VB? How it may be done? | |
CODE [code=vb] Public Sub InstituteCreateButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles InstituteCreateButton.Click Dim InstituteName As String InstituteName = InstituteNameBox.Text Dim InstituteCountry As String InstituteCountry = InstituteCountryBox.Text Try Dim InstituteTableAdp As New InstituteBaseDataSetTableAdapters.InstituteTableTableAdapter InstituteTableAdp.Insert(InstituteName, InstituteCountry) MsgBox("Success") Catch ex As Exception MsgBox("Failed!") End Try InstituteCreateButton.Text = InstituteCountry End Sub [/code] … | |
HI Guys, I have written an app the prints out batches of documents for postings. Each batch is to be seperated by a red coversheet. I know that in our printing department, no matter what printer they use to print the batches on to they will always have the red … | |
I am so lost on how to get this code to work, and I am pretty sure what I have is all wrong. The problem is as follows: Each salesperson is assigned a 4 character ID, with the first character either an F (full-time) or a P (part-time). And the … | |
Hey, I created a custom datagridview column for a progressbar and included customizable color properties but I can't get them to work right. After compiling, the properties show up correctly in the Edit Columns popup editor, but changing the values has no effect. The designer generated code shows the original … | |
im trying to make the listview sort the listview items by column (whichever column was clicked, sort the list based on that column) in vb6 it was done by: [code] Private Sub ListView1_ColumnClick(ByVal ColumnHeader As MSComctlLib.ColumnHeader) Static olditem& With ListView1 .SortKey = ColumnHeader.SubItemIndex If olditem = .SortKey Then .SortOrder = … | |
[COLOR="Red"]This is a Library code i got from microsoft for format a textbox into a numeric format...but it's doesn't works because error message "numberFormatInfo is not defined" Can anybody fix this code.and teach me how to use this class... regards Soeppp[/COLOR] [CODE]Public Class NumericTextBox Inherits TextBox Private SpaceOK As Boolean … | |
What i am trying to do is create a conosle app in vb.net 2008. I have a XML file (data_file.xml), and a template file (template.txt). The template file contains a few sentences, each one containing a placeholder which needs to be filled. I need to create multiple output files (.txt), … | |
Dear Experts I have following codes to to show data in listview. It displays first column empty. The value of first column is displayed in column2. How to show value of first database field in column1 Please help Dim StudentID As Integer Dim Name As String Dim Address As String … | |
Hi, I am developing an image processing application and I face one problem. When I run the application, all I get is a blank form, even though I have a lot of controls attached to it. I know it must be a dumb mistake on my part, but I am … | |
:( I am have been trying to update changes from my vb.net program to an access database file and it simply will not work. I have am using table adapters. I'm not familiar with SQL so i can't go that route. It updates the dataset fine but not the database... … | |
hey, im wondering what is the best way to go about creating queries... my program.. i am creating a staff search program, i have craeted my databse and have included queries in access. but imnot sure how to call them in vb.net wondering if anyone can help me on that... … | |
Hello; I have several list boxes on a form, the items collection is filled at design time and the selectedIndex is changed at run time. when I change the SelectedIndex the backcolor of the control changes. I don't want this to happen. Thanks in advance for any help | |
Hi, i have a project to generate code for TabControl. I'm doing 1 form whit textbox-es to enter the tabcontrol properties (name, size, pozition ...) For the number of the tab pages in the control i'm generating dynamicly another tab control with the number of tab pages entered in the … | |
Hi im really new to VB and am stuck on an IF statement, heres my code: If TextBox12.Text >= 105.01 Then TextBox16.Text = TextBox12.Text - 105.01 * 0.128 ElseIf TextBox12.Text < 105.01 Then TextBox16.Text = "Not NI Eligible" End If When i debug it the error System.InvalidCastException is displayed four … | |
I am taking user names and id from a database and dropping it into a combo box for users to select there name. in vb 6 i used to do the following: [code] do until rs.eof = true with me.combobox.comboitems.add(,, rs.fields("Name")) .tag = rs.fields("ID") end with rs.eof.movenext loop [/code] the … | |
Im trying to make a anti virus program, I know that any antivirus should have a file contains a databse of virus signatures. how to build a database in VB.Net? I'm not asking about the way to create the databse. what i want to know is how to write the … | |
I am new in Visual Basic 2005 ! Can any one who can help me how to create set up file in Visual basic 2005 | |
hi im trying to retrieve data from a foxpro database in a date range selected by the user from 2 datetimepicker boxes dim date1, date2 as date date1=datetimepicker1.value.date date2=datetimepicker2.value.date i used this command oSql="select * from customer where between(customer.date,{^date1},{^date2})" an empty table comes up.....can any one help pleas | |
Hi Folks, Really desperate for help here as I've spent days trying to resolve this one. We have a VB 2008 web browser app using a webbrowser control on our Kiosks at our uni - it works very well and locks down the workstation so teh students can only use … |
The End.