20,285 Topics

Member Avatar for
Member Avatar for mcupryk

Dim substr As String = dr.Item(4) if substr is {System.DBNull} substr = "" if substr is "" then do not do substr = substr.Substring(0, 2) else substr = substr.Substring(0, 2) I need this in vb.net

Member Avatar for Andyc75
0
348
Member Avatar for CrashanBurn

Hi, Was wondering if anybody could give me his/her opinion about what i am doing. This program i am writing is basically a way to record orders. So i got a bunch of possible components required, which got their textfield(1 for product info, 1 for product price). Those are controlled …

Member Avatar for CrashanBurn
0
204
Member Avatar for like_bilal02

Dear Friends, I face a problem in crystal report that I fetched data from two tables 1 is Invoice Table and other one is Payment table. Its a kind of account software problem. Is that I want to make a Ledger or A/C statement Report but when data is come …

0
66
Member Avatar for jcb0806

I'm just trying to write the following out in an excel cell using VBScript. What I want in the cell: =BDS(A2,$B$1,"dir=H") I'm having problems with excel accepting the quotations for some reason this is what I have and is getting an error with: ""=BDS(A"& LC &",$B$1,"dir=H")""

Member Avatar for Marcel_Go
0
133
Member Avatar for sachin mali
Member Avatar for sheelap

IN VB.NET (VISUAL STUDIO 2005) I HAVE taken one textbox with some message and want to bold it by using chkbox control when checkbox is checked the text in textbox should be bold otherwise it is regular.i tried the code too many different ways but till now problem is not …

Member Avatar for Marcel_Go
0
91
Member Avatar for Joshua Kidd

I need some help with checking a process or if a certain window name is open on my project. Right now what I have is: FSXCheck = Timer fsx.exe = Flight Simulator X [CODE]Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load FSXCheck.Enabled = True End Sub …

Member Avatar for G_Waddell
0
121
Member Avatar for wewehalim

Hi, i have this datagridview containing column: {product, price, quantity, Total price}, and a 'calculate' button. I need to enter the quantity column and when I press 'calculate' button, it will calculate total price by price*quantity what i am struggling now is how to grab the 'text' in "quantity" column, …

Member Avatar for hansys
0
265
Member Avatar for AnooooPower
Member Avatar for @Kui

Hi, I'v just started learning VB. i need help with a program that allows the user to enter a month and a number of years. (e.g March and 10 years) The program then displays all the months of the year from the entered month in a loop that runs as …

Member Avatar for codeorder
0
144
Member Avatar for rookanga

My assignment is to get the Get Monthly Income (Num1) Get Monthly Home Rent/Mortgage (Num2) Get Other Monthly Payments (alimony, child support, student loans) (Num3) Display Allowable Monthly Car Payment Display Maximum Car Value (interest rate based on credit) (answer) [CODE]Public Class Form1 Dim Num1 As Integer Dim Num2 As …

Member Avatar for codeorder
0
182
Member Avatar for ayarton

[CODE] Imports System.IO Public Class frmRODSelectPage Private Sub btnSelectImages_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSelectImages.Click '--------------DECLARE VARIABLES------------------------------------------------------------------------ Dim FileName As String Dim Export As String 'filename only Dim DidWork As Integer Dim InitialDirectory As String = "E:\Hasbro\CaptureImageFolder\" Dim HotFolder As String = "E:\Hasbro\CaptureHotFolder\" '--------------END VARIABLES----------------------------------------------------------------------------- '--------------EXCEPTION HANDLING------------------------------------------------------------------------ …

Member Avatar for codeorder
0
105
Member Avatar for AnooooPower

I have a groupbox with quite a few checkboxes. I want a specific textbox to have custom string per checkbox in the text box. Exemple chckBox1 chckBox2 chckBox3 chckBox4 chckBox5 chckBox6 I checked 1, 3 and 6 So my textbox will contain as text ckbox1, chkbox3, chkbox6 if i uncheck …

Member Avatar for codeorder
0
3K
Member Avatar for johmolan

I have a method where I am making a trial period. When the date has exceded its trialperiod the program will not close. The code looks like this: [CODE] Public Sub DemoRestrict() If My.Settings.dteStartDate = Nothing Then My.Settings.dteStartDate = Now End If If My.Settings.intTime = Nothing Then My.Settings.intTime = intTime …

Member Avatar for AnooooPower
0
142
Member Avatar for rhian23

hi to all! Im having a problem with crystal report. I am doing a vb.net project. Actually its an Inventory System, I need to print a report by branch. I set the parameter field by branch id and name but it didn't work, all of the fields like product, price …

0
68
Member Avatar for Jessurider

hi can anyone tell me how to bring the [B]WebCamCapture[/B] in visual basic 2008 .......the attached project is one i got from internet............in that [B]WebCamCapture[/B] is something which i cant find also i cant bring that into a new project

Member Avatar for Jessurider
0
230
Member Avatar for emaduddeen

Hi Everyone, Can you tell me how to fix my query so I can determine if an amount entered into a textbox is < the largest number in a database table? Here is some sample data: [CODE] CategoryNumber ---------------- 10 20 30 40 50 [/CODE] If the user enters 35 …

Member Avatar for emaduddeen
0
96
Member Avatar for Polongo
Member Avatar for ddanbe

I was wondering why are there so many methods for adding a row to a DataGridView consisting of textboxes. I have 4, if you find more let me know. Have made a WindowsFormsApp and put on it a DataGridView, with 3 standard columns to it and a button with the …

Member Avatar for ddanbe
1
619
Member Avatar for vn412

Hi, i have a code where I dynamically generate the columns name and bind it it datatable. now I am iterating thru loop for each column and fill the datatable. My Problem is when I fill for first column row is already added to the position(e.g 0,1). I want help …

Member Avatar for Mariandi
0
2K
Member Avatar for Joshua Kidd

Any Ideas on how to get a picture of just a certain program widow and not the entire Desktop? This is the Code I used to get a pic of the Desktop [CODE] Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Dim bounds As Rectangle Dim …

Member Avatar for Joshua Kidd
0
281
Member Avatar for mr3army

Hi, Im trying to click a button on [url]http://www.threatexpert.com/submit.aspx[/url] but my code does not want to fill it in. It fails are the [CODE]Form2.WebBrowser1.Document.GetElementById("txtEmail").SetAttribute("value", TextBox1.Text)[/CODE] [CODE]Form2.WebBrowser1.Document.GetElementById("File").InvokeMember("click") If Form2.WebBrowser1.Document.GetElementById("File").GetAttribute("value").ToString = vbNullString Then Form2.WebBrowser1.Document.GetElementById("File").InvokeMember("click") Form2.WebBrowser1.Document.GetElementById("txtEmail").SetAttribute("value", TextBox1.Text) Else WebBrowser1.Navigate("javascript: WebForm_DoPostBackWithOptions(btnSubmit") End If[/CODE] What is wrong with my code Cheers

Member Avatar for codeorder
0
161
Member Avatar for CityThrille

Good day to all. How can I transfer entries from listview to disk using System.io? Help is appreciated. Thank you. :-/

Member Avatar for codeorder
0
95
Member Avatar for AnooooPower

I want to outpout part of a richtextbox content to a textbox. Exemple (This is just part of the richboxtext1: [CODE]<meta http-equiv="refresh" content="0;url=?sid=defd7592f5b806ad8a4fa1273bd73077"> <[/CODE] This is code i used but is faulty :( : [CODE]Dim strBuild As String = Nothing strBuild = Split(Split(RichTextBox1.Text, "sid=")(1), "''>")(0) TextBox6.Text = strBuild[/CODE] I want …

Member Avatar for AnooooPower
0
744
Member Avatar for CityThrille

Good day to all. I'm a VB.NET newbie. How can I search, for example ID Number, and want to highlight the listview item found in search from my first form? I'm using combobox from my second form to search. Thanks.

Member Avatar for CityThrille
0
212
Member Avatar for zepi

i have a problem with refreshing a datagridview. so i have an unbound datagridview that is not enabled. rows are added when a button is clicked. this works the first time, but when i click the button again, the new rows are not all displayed, only the rows that fit …

Member Avatar for zepi
0
183
Member Avatar for Tommymac501

Does anyone know how to copy subfolders from one place to another in VB?. I have a Template folder on a network share I want to use to set up the base folder structure on newly created job folders, however, I can't seem to get any copy methods to take …

Member Avatar for Tommymac501
0
657
Member Avatar for JOSheaIV

(I'll make this sweat and short, writting in class) Okay so I am working on a sudoku program, and am using a dataGridView for the gameboard. But I need to know how to create different boarders for the cells so that I can make up the 4 black lines that …

Member Avatar for ddanbe
0
654
Member Avatar for TechNewbie23

Hey! I am creating an application which will allow users to search parents names and display their childen respectively in a datagrid. I have created a form with two text boxes, a search button and a datagrid. The two text boxes are txtFName.text and txtLName.Text. On clicking btnSearch I want …

Member Avatar for TechNewbie23
0
222
Member Avatar for Steve Mac

Is there any way that i can be able to get the ExecutenonQuery to Execute faster. Am using it to run mysql queries that have joins from diffrent tables. As I have come to notice, the user has to wait a while before the statement ExecutenonQuery can be completely executed.. …

Member Avatar for Marcel_Go
0
204
Member Avatar for CrashanBurn

Hi, I am trying to get my little program to do some calculations. So far i got 15 textboxes, named TxtPP(followed by product type),so i got TxtPPproduct1, TxtPPproduct2 etc.... At the bottom of the form i got a disabled textbox which shows the total of all the above textboxes. Now …

Member Avatar for CrashanBurn
0
404
Member Avatar for moose333

Hello I am currently attempting to write the contents of a .hrm file into a datagridview and place each piece of data into its required column. This is the code I have at the moment which is currently just extracting some data from the .hrm file and placing it in …

0
115
Member Avatar for Smoogel

Hello there. I want to make a overlay for the whole PC. I don't really know how to explain it but you could use the example of a Dyslexic overlay (green, transparent paper for example) but I want that to cover the whole screen. Any ideas? Thanks:D

0
49
Member Avatar for dooleyis

Hi everyone, I was wondering if it is possible to point to a textbox created in the form designer via a string variable. Basically, I'm creating a golf management system with a feature allowing a user to define their own course. Each hole has a corresponding textbox into which a …

Member Avatar for dooleyis
0
216
Member Avatar for kazekagerandy

im working on an attendance monitoring system and im having a hard time on saving a picture on my picture box, at the "add employee" section of my program. i want to save the path of the picture on the emphoto field of my database and the actual photo on …

0
67
Member Avatar for tendaimare

i have code to produce a database and tables but now i am looking 4 code 2 add relationships to the tables i would have made [code] Sub Create_ALL_Tables(ByVal dbName As String) Dim sql_Area As String = "CREATE TABLE Area (Category_ID bigint IDENTITY NOT NULL," & _ "Category nvarchar(50) NULL,Area_Name …

Member Avatar for Momerath
0
99
Member Avatar for mr3army

Hi, I have my program all programmed but, i want to have only one button! How can i make it so if the radio button is selected it will do a certain sector of the code when the the actual button is pressed iv had a good attempt at if …

Member Avatar for mr3army
0
100
Member Avatar for vn412

Hi, Please help we with the code with Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) to find the location for access database in windows7 and vista. thanks

0
57
Member Avatar for Jake.20

guys, need help please. i have an syntax error on my update statement here is the code. myqry = "UPDATE prodInfo SET " myqry = myqry + " [itemName] = '" & txtName.Text & "'," myqry = myqry + " [comboSize] = '" & combosize.Text & "'," myqry = myqry …

Member Avatar for prvnkmr194
0
116
Member Avatar for anoopkh

Hi can We run VB.Net windows Application (2.0 Framework) in Linux. If possible what are the steps to follow.

Member Avatar for anoopkh
0
95
Member Avatar for bklynman01

I'm having trouble filling a ComboBox from a dataset. When the program runs, the combobox has the correct number of lines, but they all appear as System.Data.DataRowView Any ideas? [CODE] Dim tblModels As New DataSet1.modelDataTable tblModels = Me.ModelTableAdapter.GetModel Me.cmbModel.DataSource = tblModels [/CODE]

Member Avatar for kvprajapati
0
114
Member Avatar for paulablanca

Hello! I just want to ask if it is possible to enter values using vb.net and sending it to excel and displaying graphical representation of the values from excel to my vb form? Thank you very much and God Bless. :D

Member Avatar for lolafuertes
0
54
Member Avatar for jockfaire

Hi, I have a form with a ComboBox, two labels named "Price" and 'Dealer Cost" respectively a NumericUpDown control and two buttons named "calculate Commission" and "Enter Another product" respectively. I want to be able to retrieve the corresponding Price and Dealer Cost from the local database and display them …

Member Avatar for lolafuertes
0
308
Member Avatar for zarifin99ska

I have a form displaying a datagridview (datagridview1) which is imported from access database and it works fine. on the datagridview, the first and second column i use datagridviewbuttoncolumn. but on another form, i want to add data to third and forth column from 2 textbox after click save button, …

0
85
Member Avatar for zarifin99ska

Hi I've design a datagridview with 6 columns. But i got a code somewhere in internet,the code make my datagridview added with 8 more columns from database. i dont know how to put the data from database into specific columns in the designed datagridview. on database, i have 8 columns, …

Member Avatar for zarifin99ska
0
105
Member Avatar for dougancil

I am trying to update a database table that's attached to a table adapter and can't quite seem to be able to get the code to work. It was suggested that I use an update statement, but the person I was working with had no idea how to update a …

Member Avatar for dougancil
0
85
Member Avatar for tukky

Hey :) Im working on a project and ive come across a small problem. I have a listview that contains the details of a person(s) such as their name,address,e-mail address etc. I have a button that opens up another form where the user can edit the details of the customer, …

Member Avatar for codeorder
0
123
Member Avatar for weirdo71

Hi and good day, I have a piece of code im working on and is stuck on Select Sum statement which keeps returning a Conversion from type DBNull to type Decimal is invalid. Below is the code and Im working with a Access Database. Everything works good if the Batch …

Member Avatar for weirdo71
0
630
Member Avatar for Netcode

I have created an application and also created the setup.The application adds it executable file to the user program menu but it does not create a shortcut on the desktop. How do i make my applications create a shourtcut menu on the desktop when they are installed

Member Avatar for Netcode
-1
91
Member Avatar for discovery-power

Hi All, I have started making applications that retrieve data from sql databases. I write the database with Sql management studio then apply that database to my applicaton. My question is, how can I make my applications more secure against hackers. Some applications store user names and passwords and personal …

Member Avatar for JJCollins
0
101

The End.