20,899 Topics

Member Avatar for
Member Avatar for djjavo

Hi guys I am trying to declare a array within a structure, and it is not working. I'll paste the code below and if anyone can help it would be greatly appreciated. [CODE]Structure league Dim id As String Dim name As String Dim players(20) As String End Structure Dim leagues(100) …

Member Avatar for djjavo
0
3K
Member Avatar for bhagawatshinde

In part of my program, i have to insert Equation.DSMT4 into the richtextbox control. I found that there is no methods in richtextbox to insert ole objects. If anybody knows, pls help me to get solution for this problem

Member Avatar for lolafuertes
0
358
Member Avatar for theone0522

Well I need to be able to click this picture out of my webbrowser in VB. [CODE]<img src="/images/skip_ad/en.png" alt="Skip Ad" height="39" id="skip_ad_button"[/CODE] I have tried this code: [CODE]Dim col As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("img") For Each elem As HtmlElement In col If elem.GetAttribute("src").Contains("/images/skip_ad/en.png") Then elem.InvokeMember("click") ListBox1.Items.Add("clicked") End If[/CODE] And this code: …

Member Avatar for codeorder
0
103
Member Avatar for ananth3125
Member Avatar for codeorder
0
238
Member Avatar for zuvefox

hi.. I build program to launch application(launch application can as local profile or can as network credentials) using Advapi32 "CreateProcessWithLogonW". but I got the problem, I can't capture message of standard output(Stdout) and Standard Error(stderr). could everyone help me how to capture message and the code? thanks

Member Avatar for lolafuertes
0
136
Member Avatar for jtodd

Hey guys! I have limited experience with Visual Studio and have a question about Querying an Access database. I have created a Visual Studio application that displays and modifies an access database. I have use datagridview and detailed view to insert data and view data in the Access database. I …

Member Avatar for jtodd
0
3K
Member Avatar for PM312

i used to create sub procedures in vb6 under tools/ add procedure. Same is not available in vb2008. how can i create sub procedure in form. for eg. Private Sub CmdDisabl() Cmd_New.Enabled = False Cmd_Amend.Enabled = False End sub if i type above code in form i get error statement …

Member Avatar for codeorder
0
197
Member Avatar for homer.favenir

Hi, hope someone has an answer to my problem. my add and edit function is fully working. but after a successful edit, another edit attempt has already an error. Error: Procedure or Function has too many arguments specified [CODE]Private Sub global_edit() '- Is_with_ref_doc Dim ref_docCheckBox As Integer If Is_with_ref_docCheckBox.CheckState = …

Member Avatar for homer.favenir
0
321
Member Avatar for danielgr

I have started the familiarize myself with WPF and have gotten stuck with the ListView I've read a lot of documentation about binding and I can't seem to find how to populate a ListView programmatically. It seems like a lot of work to create the binding and classes, etc, just …

Member Avatar for danielgr
0
1K
Member Avatar for Aviplo

I can't round up the decimal number using VB.net i'm using Cint(12.5) this must be 13 but it is not so i try Round(12.5) but still not roundup what do i do? please help!!!

Member Avatar for adam_k
0
223
Member Avatar for skran

HELP!! I try to bind a textbox to a datatable but i cant.. I checked if the datatable is filled (it includes the results of a sql query)and it s ok.. i can depict the result in a combo box but not in textbox. I wait for only one result …

Member Avatar for adam_k
0
1K
Member Avatar for ananth3125

hi, here i tried the coding for splitting the document file from the merged file,, i found the problem that a new document is not creating [CODE] Dim str1 As String = TextBox1.Text Dim str2 As String = str1.Replace("[", "") & str1.Replace("]", "") Dim filename As Object = "f:\" & …

Member Avatar for Reverend Jim
0
159
Member Avatar for Mrinal1991

I have a field of Issue date which takes the date of that very day when i fire the query now I want that field of Return Date in my data base should take the date while adding 14days to it? How do i do that?

Member Avatar for Mrinal1991
0
123
Member Avatar for Ruchi224

Hello.. I have a datagridview.. It is unbound to any database and has 2 columns.. 1 is item name and other is amount/expense, incurred.. I want the total of expense incurred be displayed in the textbox on button click ie adding the numbers in amount column.. I tried something like …

Member Avatar for Ruchi224
0
122
Member Avatar for mirzamujib

Hello, Dear memebers, when I'm trying to delete and update my bindingnavigator it shows me following error. Update requires a valid DeleteCommand when passed DataRow collection with deleted rows. I dont whats going wrong following is the code to update my binding navigator Me.Validate() Me.TableAdapterManager.UpdateAll(Me.myDataSet) Me.myBindingSource.EndEdit() Plz i need ur …

0
80
Member Avatar for sigridish
Member Avatar for sigridish
0
359
Member Avatar for pROKO

When I open my form that contains a DataViewGrid the first row is always automatically highlighted in blue showing that it is selected. If I use Me.DataGridView.ClearSelection() the highlighting disappears and the row "appears" to be unselected but when I check with Me.DataGridView.CurrentRow.Index the value returned indicates that the row …

Member Avatar for pROKO
0
1K
Member Avatar for m1234ike

Hello Daniweb, I am writing a program to execute the command prompt command "getmac /v >> MACLIST.txt" using a Visual Basic form, including: 2 buttons(getmac and filter the text file) , 2 textboxes (alternate text file name and user name), and two radiobuttons (default text file name or custom name). …

Member Avatar for m1234ike
0
413
Member Avatar for XF15-Loader

I have 2 arrays. One is an array of images other an array of numbers. The images are card faces, (Card(i)), the integers are the corresponding values of the cards (Value(i)). I want to associate the card face with a corresponding value. However, everytime I do what I think is …

Member Avatar for XF15-Loader
0
111
Member Avatar for markdean.expres

Guys I have been asking about this for quite a long time. I need to create a program that can capture video and image. The program is very simple, it just have a screen and a button labeled "Capture". When I click capture, it will capture the image and save …

Member Avatar for lolafuertes
0
109
Member Avatar for ninjatalon

I'm implementing Direct Deposits for our clients, but i would like advice on how to keep it from getting it to the wrong hands. I manage our information through our MySQL Database in a dedicated server. I would like to keep this information as secure as possible. That information should …

Member Avatar for thines01
0
110
Member Avatar for Aviplo

NEED HELP~! I want to create a openfiledialog and allow user to choose which exel file to be imported into the server but this error keep coming "ODBC--connection to '{SQL Server}'TGT102 failed". Thank you so much~~ PS. I am just a beginner of vb.net. So would u pls tell me …

Member Avatar for Reverend Jim
0
242
Member Avatar for bilal_fazlani

I am trying to create a a splash screen... I have attached the image file..please have a look.. the splash screen performs a diagnostic procedure and displayed the results in a multi-line label.. I have used another thread to write msgs as results in label.. and its working as it …

Member Avatar for TechSupportGeek
0
367
Member Avatar for Catalyst.X

I wrote a program that does rudimentary tile mapping based on reading in information from a "map file" and drawing the map on screen. I need it to be drawn in a scrollable window so it doesnt matter how big the grid is defined in the map file. I have …

Member Avatar for Unhnd_Exception
0
280
Member Avatar for netwebguru99

I have used the Process.start function to open an Excel file as shown in the code Process.Start("report.xlsx") and it works perfectly well. My question is can this function be used to open a particular worksheet called Report1 in the report.xlsx file. If so what would the code be. I have …

Member Avatar for netwebguru99
0
262
Member Avatar for kothaisaravan

Hi, Am using Visual studio 2005 with MS Access. I have a Datagridview with a date column in format 11/23/2011(Month/Date/Year). Now i want to know how 'search criteria based on particular month and date'. For Example if select 'Nov' as a month from combobox and click on search button, only …

Member Avatar for kothaisaravan
0
137
Member Avatar for pankaj.garg

Hi, I am developing a VB net application with lots of TextBox. I need to call a module everytime any of the textbox gets focus. I dont want to write code in every textbox gotfocus event, but a generic code which will call the module everytime any textbox gets focus. …

Member Avatar for pankaj.garg
0
383
Member Avatar for shravani1

[CODE]Module Module1 Sub Main() System.Console.Writeline{"this is my program"} System.Console.ReadLine{} End Sub End Module[/CODE] this is my code am getting an error saying that Error 1 Expression expected. Error 2 Method arguments must be enclosed in parentheses. Error 3 Expression expected. Error 4 Method arguments must be enclosed in parentheses.

Member Avatar for shravani1
0
266
Member Avatar for theone0522

[CODE]<img src="/images/skip/en.png" alt="Skip" height="39" id="skip">[/CODE] I tried this code: [CODE] Dim theElementCollection As HtmlElementCollection = Bot.Document.GetElementsByTagName("img") For Each curElement As HtmlElement In theElementCollection Dim controlName As String = curElement.GetAttribute("name").ToString controlName = "skip" curElement.InvokeMember("click")[/CODE] So pretty much I need to click the image to pass to the next page.

Member Avatar for codeorder
0
97
Member Avatar for markdean.expres

Hi everyone! Why does it seem that no one is giving an effort for this concern. I know that the code is long but could anyone please shed some light for me here. I need to create a program that captures video and images using either a built-in camera on …

Member Avatar for hericles
0
87
Member Avatar for muneeb213

Hello! i want to add CUSTOMER NAME in this code how to view each customer datewise report plz help me..

Member Avatar for Smith5646
0
133
Member Avatar for leoblanc

Hello everybody, I NEED HELP, I am new to VB and need to create invoice...... Here is my problem.. I created table named "tb_sale" using ms access 2007, it has 5 columns (date, product, qty, price, total) I created a listview which has same columns with tb_sale (date, product, qty, …

Member Avatar for bluehangook629
0
126
Member Avatar for MeerSalman

Can anyone tell how can i modify my object at run time? I have a form containing two panels; textbox, picturebox, and a label are in the panel1 where as panel2 is likely to be the user screen.. User drag the textbox from panel1 to panel2 and it is added …

Member Avatar for Unhnd_Exception
0
77
Member Avatar for dejanc

Hello, I would like to get message, or true result when DataSet get new record (new row). But, I always get message as "no". Button1 is add new record [CODE]Me.Table1BindingSource.AddNew() [/CODE] Button2 is save a record [CODE] Me.Validate() Me.Table1BindingSource.EndEdit() Me.TableAdapterManager.UpdateAll(Me.TestDataSet) [/CODE] Button3 should return "Yes" as new record has been …

Member Avatar for dejanc
0
2K
Member Avatar for Naveed_786

Dear All, Here is my code i am generating data grid manually on run time i want to assign a default value to REC ST column, i have tried but it didn't assign default value please view the last line of this peace of code. [CODE] Dim clmprno As New …

Member Avatar for lolafuertes
0
163
Member Avatar for skatamatic

I am trying to write a somewhat generic class for calculating rolling averages. It's generic in the sense that it needs to support all numeric datatypes (int, double, short and long). I'm a bit of a noobie to VB.Net and have run into a problem: [code] Public Class RollingAverage(Of T) …

Member Avatar for lolafuertes
0
170
Member Avatar for NtheN

I want to pass an image in a picture box to a certain position on an image list. Does anyone know how to this? I tried: [code=vbnet]imagelist1.images(0)=picturebox1.image[/code] But this is read only, what can i use to accomplish this? Thanks, NtheN

Member Avatar for lolafuertes
0
132
Member Avatar for GTTravis

Hello Everyone, I wrote a function that allows me to retrieve data from a single SQL table and place it into 3 datagridviews. The problem i am having is as follows: * Whenever a user types something in anyone of the datagridviews that information is recorded in all three of …

Member Avatar for GTTravis
0
1K
Member Avatar for GTTravis

Hi Guys, I wrote a function that returns the number in a particular field, my issue at the moment is how to update that field before i return the previous value i collected from the field. i am seeking any guidance available. Enclosed is the function i wrote. [CODE] Function …

Member Avatar for adam_k
0
113
Member Avatar for skran

I would like to give me your help please.. I have connected my sql db with vb and I m trying to make a UI. My question is that when I write code in order to create datatables and I fill them with the results of queries I've created, where …

Member Avatar for thines01
0
158
Member Avatar for VB 2012

[CODE]Private Sub MainForm_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing If My.Settings.My_First_Build = True Then If OptionsForm.AutoSaveallOnExitCKB.CheckState = CheckState.Checked Then If Tab4RichTextBoxPrintCtrl.Modified = True Then SaveAsMenuItem1_Click(Me, e) Threading.Thread.Sleep(100) Else MessageBox.Show("Not modified") End If If Tab5RichTextBoxPrintCtrl.Modified = True Then SaveAsMenuItem2_Click(Me, e) Threading.Thread.Sleep(100) Else End If If Tab6RichTextBoxPrintCtrl.Modified = True …

Member Avatar for GeekByChoiCe
0
136
Member Avatar for bettybarnes

hi guys just ask what is the code for allowing null values to appear on the textbox [CODE] Dim i As Integer dg1.DataSource = bs i = dg1.CurrentRow.Index Patient_Profile.Txtpatient_id.Text = dg1.Item(0, i).Value [/CODE]

Member Avatar for kothaisaravan
0
117
Member Avatar for bhagawatshinde

Anybody have any idea about how to change the font of the string. Suppose [CODE] Dim strFind as string="Answer" [/CODE] I want to change the font of the string as "Verdana" Purpose behind that, I have an richtextbox1 contains the questions and richtextbox2 contain the answer so while concating i …

Member Avatar for bhagawatshinde
0
1K
Member Avatar for diven

i have 4 different excel files of different names. each excel file has 8 columns and 15 sheets. All excel files has same columns and same number of sheets (same sheet names and column names)... i have to merge these 4 files into one. that file must be identical to …

Member Avatar for Human2.0
0
944
Member Avatar for jtodd

Hey guys. I have written a program to create, edit and delete record in MS Access using a visual studio program. I am keeping the program and database divided into a front end and a back end to allow concurrent users. I am going to place the back end on …

Member Avatar for kingsonprisonic
0
162
Member Avatar for maggoteer

Hey guys, I've got a theoretical question. I've tried to work out how some of the code would work in my head, and I always stump myself. Maybe it's my lack of knowledge - who knows! I am trying to create an online forum inside of my application. Yes, I …

Member Avatar for kingsonprisonic
0
215
Member Avatar for mitchie06

afternoon.. i need some help..:'( i created 20 tables in ms access.. and only one table is connected to vb 2008 using the DataGridView?.. how can put the remaining tables in ms access to the vb 2008?.. thanks for the replies.. i hope that someone can help me in this …

Member Avatar for Phasma
0
95
Member Avatar for evanescence

Hi, there :). I have a form named 'Form1' in which I've added a custom control called 'first'. Inside 'first' there's another custom control called 'second'. I want to access and change the properties of 'second' using a function, declared in 'Form1'. Can you, please, tell me how to do …

0
87
Member Avatar for eawedat

hey all,, I have this picture to be more clear: [URL="http://img846.imageshack.us/img846/5996/95028490.png"]http://img846.imageshack.us/img846/5996/95028490.png[/URL] My idea is when I paste (ctrl+v) for example this number : 4111111111111111 it would automatically paste them in textboxes one by one in order! so txtBox1 will contain : 4111 txtBox2 : 1111 txtBox3 : 1111 txtBox4 : …

Member Avatar for GeekByChoiCe
0
584
Member Avatar for kothaisaravan

Am using VB.NET with Ms Access. It worked fine before changing the field name in access database. After changing the field name i got an syntax error in catch block. And also there is no reserved words. [B]"Syntax Error in INSERT INTO Statement"[/B] Here is my coding str = "Insert …

Member Avatar for kothaisaravan
0
178

The End.