Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
4
Posts with Upvotes
3
Upvoting Members
4
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
0 Endorsements
Ranked #2K

49 Posted Topics

Member Avatar for bklynman01

I have an application that opens up Excel, reads some information, then closes Excel. I developed this application using Microsoft Office XP 2007. A few weeks ago, my company upgraded to Microsoft Office 2010. The applications still works fine, but I can not compile in VS 2008 anymore. I get …

Member Avatar for shahidul263
0
627
Member Avatar for bklynman01

I have a windows form that has 4 comboboxes inside. These 4 boxes are linked, in that when the first box receives user selected data, the second box populates. When the second box receives user selected data, the third box populates. At least that is how I want this to …

Member Avatar for Reverend Jim
0
224
Member Avatar for bklynman01

I have a program I wrote a few years ago that interfaces largely with MS Excel. At the time my company used Office 2007. We have since upgraded to 2010 with no problems. However, I had to make some adjustments, and now I can not compile. The error is Error …

Member Avatar for bklynman01
0
189
Member Avatar for bklynman01

My wife has been complaining about a virus on her computer for a few days now. I finally witnessed a "Just-In-Time Debugging" window pop up. It fails to open the thread, but its trying to open ping.exe. I can see it in the task manager, and even kill it, but …

Member Avatar for PhilliePhan
0
181
Member Avatar for bklynman01

This one has me stumped. I feel like it is something really simple, but I can't figure it out. I have a combobox that is triggering the population of some checkboxes depending on the user mode. For some reason, when I put a MsgBox() at the beginning of the function, …

Member Avatar for bklynman01
0
383
Member Avatar for johmolan

I think it might be because you're not giving it a file to open. I built an application that uses excel, and this is how I opened the file... [CODE] Dim xlFile As New Excel.Application Dim xlSheet As New Excel.Worksheet xlFile.Workbooks.Open(Me.strFilename) xlSheet = xlFile.Workbooks(1).Sheets("Sheet1") [/CODE] The big difference is where …

Member Avatar for bklynman01
0
258
Member Avatar for bklynman01

I have began building a piece of software that needs to collect a series of information from the user. This information will all be based on what has already been entered. I would like to create a window that has a "NEXT" button in it. As they enter information, they …

Member Avatar for codeorder
0
327
Member Avatar for Mike Bishop

I believe in your case, it is as simple as just adding another set of lines that define the parameter (lines 26~29 in your code). The ParameterFieldName would be set to a different name each time. Not sure if it is any help to you, but I have some code …

Member Avatar for bklynman01
0
226
Member Avatar for bklynman01

I have an application that allows the user to upload information from and Excel sheet. Since the user is more familiar with Excel, they prefer to do it this way. My software will close the workbook with [ICODE]Me.exApp.Workbooks.Close()[/ICODE], but if you have the task manager running, you can see the …

Member Avatar for ShahanDev
0
153
Member Avatar for bklynman01

I'm trying to find a way to check for changes in a DataGridView. The gridview does not have a binding source because I am populating it based on some other information. Right now I get a NullReferenceException. It happens as the gridview is populated. I have marked the line where …

Member Avatar for bklynman01
0
212
Member Avatar for bklynman01

I have a piece of code that takes two strings, puts them together, then attempts to save that result into a table in a database. For some reason, the database is only showing the second half of the string ([ICODE]Me.txtRev.text[/ICODE] in this case). When in debug, I can see that …

Member Avatar for Mitja Bonca
0
289
Member Avatar for jaejoong

Are you trying to create a new sheet in excel, or edit one that is current? If all pages are going to have Title, Name|Address, etc... then it may be easier to create a template and just fill it in. I have some code that opens existing sheets and edits …

Member Avatar for bklynman01
0
163
Member Avatar for bluehangook629

My company assigned me the task of building software capable of training hundreds of individuals on hundreds of different items, building reports to show progress, and having sections for both users and administrators. The tools available to me were Visual Studio 2008 and SQL Server 2008. Previous programming experience was …

Member Avatar for bluehangook629
0
115
Member Avatar for bklynman01

I'm having trouble populating a combobox from a table. I do it probably 100 other times in this same program and there are no problems. When the box populates, it just displays [ICODE]System.Data.DataRowView[/ICODE], even thought the display member is set properly. Any ideas? [CODE] Dim tbldoc As DataSet1.docHeaderDataTable tbldoc = …

Member Avatar for bklynman01
0
117
Member Avatar for Fa3hed

Try: [CODE] Dim i As Integer TextBox6.Text &= "Insert Into " & ComboBox2.Text & " (" For i = 0 To ListBox1.Items.Count - 1 TextBox6.Text &= ListBox1.Items.Item(i).ToString() & "," Next TextBox6.Text.Remove(TextBox6.Text.Length - 1, 1) TextBox6.Text &= ")" [/CODE] That one line should remove the very last character, in your case …

Member Avatar for adam_k
0
142
Member Avatar for bklynman01

I have a training program that is used by MANY different people. I have encountered many formatting issues already (like not allowing initials) but now I have a new one that I'm not sure about. When the code tests the name in the TextBox.Leave function, I can find if there …

Member Avatar for bklynman01
0
168
Member Avatar for @Kui

I'm not sure if this is true, but maybe since the variable Period is a double, it is rounding up to the next whole number then testing. So in the For loop, try: [ICODE]For i = 1 to Period - 1[/ICODE] or even [ICODE]For i = 1 to Period.ToInt32[/ICODE] Again, …

Member Avatar for winkler
0
121
Member Avatar for bklynman01

I recently began working on an application that was built by someone that is no longer available. This application is filling an excel file, but I can not find ANY code that uses excel. There aren't even any references to excel interops. My thought is that this a multi-threaded application …

Member Avatar for Oxiegen
0
86
Member Avatar for berwick53

It looks like you are reading this from a dataset, not a database? If so, go into the dataset designer and click to highlight one of the table adapters. Then in the Properties pane, click the little plus symbol (+) to expand the field "Connection" and the connection string will …

Member Avatar for bklynman01
0
116
Member Avatar for bklynman01

Hello, I'm trying to sort a training table in order of the sequence of tasks. These tasks are numbered 1.1.1 1.1.2 1.1.3 ...... 1.1.10 1.1.11 When the query sorts this and displays it, it comes up: 1.1.1 1.1.10 1.1.11 1.1.2 .... Is there a way to get them to come …

Member Avatar for bklynman01
0
134
Member Avatar for jamshed ahmed

It depends on a few things... The way the table is set up in the database. It is much easier to manage your information by using views, and not tables in Crystal Reports (especially in VS) And the group function... I had a hard time figuring this one out. It …

Member Avatar for bklynman01
0
131
Member Avatar for bklynman01

Hello, Does anyone know if there is a way to keep a desktop icon after a new version of software is installed? I'm using VS .net 2008 and after publishing a new version of software, the program updates the first time it is opened. However, after the install of the …

Member Avatar for bklynman01
0
103
Member Avatar for bklynman01

Hello, I have two DataGridViews in one window. The first one displays 2 columns, itemNo and task. When I click on a row in this grid, I want to populate the second grid with corresponding material. It is organized so that the itemNo in grid1 is 1, 2, 3, and …

Member Avatar for bklynman01
0
118
Member Avatar for bklynman01

Hello - I am using Visual Studio .net 2008. I have a form that has a tabpage control in it with 5 pages. I need to add another page, but in position 2, not at the end. Is this possible? I do not see any settings for the position of …

Member Avatar for bklynman01
0
114
Member Avatar for Steve Mac

You can check your references. In the toolbar, click Project -> [projectname] Properties -> References Tab. In here, check the boxes in the bottom window to include any namespaces that you need to be included in the final project. I had this same problem, and just checked every box that …

Member Avatar for Steve Mac
0
116
Member Avatar for bklynman01

I'm using Visual Studio .net 2008 to build my Crystal Reports. I have a simple table that shows training records of people. Training takes 5 days to complete, and each day has a record in a SQL database. I can display all the data, but want only to show the …

0
77
Member Avatar for bklynman01

I have a section of code that builds a table as the user enters information. I'm having trouble figuring out how to navigate through this table. There is a NEXT button and a BACK button. When they hit NEXT, either the next row loads, or the textboxes are emptied out. …

Member Avatar for bklynman01
0
353
Member Avatar for bklynman01

I am using Visual Studio .net 2008, which has a Crystal Reports builder. I have gotten to the point of building the report from a view I have setup on my SQL server. Instead of using a table on the server, can I use a table from my DataSet? I …

Member Avatar for bklynman01
0
114
Member Avatar for faizshafie

I've never heard of the exceLINX software, but when you enter the VB Editor in Excel, double-click on WORKSHEET in the explorer bar. Then, at the top of the viewer are two dropdowns. These dropdowns contain functions that already exist. Some of them you can set be activated during certain …

Member Avatar for lolafuertes
0
189
Member Avatar for bklynman01

I have a form that uses 28 checkboxes(checkBox1 ~ checkBox28), 28 labels(label1 ~ label28), and 28 textboxes (textBox1 ~ textBox28). These items need to be visible/invisible depending on the mode of the program (there are 5 modes). I could specify each item individually with visibility, but that requires a whole …

Member Avatar for bklynman01
0
2K
Member Avatar for bklynman01

I have a set of code that builds a table as the user enters information. This information may be changed more than once before it is considered complete. After the user is done, I want them to click a button, and have that information entered into the SQL database where …

Member Avatar for bklynman01
0
213
Member Avatar for paulablanca

Maybe not the best way to do it, but... You can set a variable equal to the selected value (would have to be global inside the class). Then in your [ICODE].SelectedIndexChanged[/ICODE] function, you can put your code inside an [ICODE]If[/ICODE] statement that tests to see if the newly selected value …

Member Avatar for prvnkmr194
0
198
Member Avatar for eleng

I agree with not wasting your previous work. Maybe you can adjust it to be for High School, instead of College. Maybe a High School education program that is web based? You can use all the tracking capabilities of the previous program, and and in a web interface. That should …

Member Avatar for bklynman01
0
221
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
121
Member Avatar for bettybarnes

Can you just use a message box if there is no result? [CODE]MsgBox("YOUR MESSAGE GOES HERE")[/CODE] or [CODE]MsgBox(stringOfCode)[/CODE] Use a simple [ICODE]If[/ICODE] statement around it. Hope this helps.

Member Avatar for anucom
0
118
Member Avatar for bestex

Since your combobox is only populated with the customer_name and customer_id, these are the only items that you can load directly into the textbox. The syntax is [ICODE]comboBox1.SelectedItem.ToString[/ICODE] and [ICODE]comboBox1.SelectedValue.ToString[/ICODE]. If you are trying to fill the textbox with the address of this customer, you must first find the address …

Member Avatar for bestex
0
221
Member Avatar for bklynman01

I have a function that imports an Excel sheet into a SQL database. This function works except ONE line. [CODE] If sheetContent.Range("A" & exRow).Value2.ToString.Length < 1 Then Exit For End If[/CODE] The rest of this function works great, and it uses lines of code that are VERY similar to that …

Member Avatar for bklynman01
0
110
Member Avatar for bklynman01

I'm relatively new with VB.net, so please bear with me... I have a tabpage with 28 textboxes in it. These textboxes will be loaded with data and maybe changed. There is a Save button on the form that will take the data from these textboxes and save them in a …

Member Avatar for CodeWord
0
188
Member Avatar for bLuEmEzzy

[CODE] For Each cb As Control In Me.Controls If cb.GetType.ToString = "System.Windows.Forms.CheckBox" Then boxNo = cb.Name() boxNo = boxNo.Substring(4) Dim tempCB As CheckBox = DirectCast(cb, CheckBox) If tempCB.Checked = True Then MsgBox("Checked" & boxNo) Else MsgBox("Unchecked" & boxNo) End If End If Next [/CODE] The SubString() line will remove the …

Member Avatar for codeorder
0
3K
Member Avatar for bklynman01

I'm having trouble getting some data from a combobox. I have a series of comboboxes that populate as you make selections from the boxes. Each combobox is using data that is pulled from a SQL database into a dataset. This all works. When I get to the last box, I …

Member Avatar for CodeWord
0
145
Member Avatar for kristinesanchez

If you are using Visual Studio... In the toolbox is WebBrowser. You can open the file into the browser, but it will not look like M$ Excel. It will open the sheet only. You can build your own toolbar in the form. I do have some code for this if …

Member Avatar for bklynman01
0
162
Member Avatar for Maha Sh.
Member Avatar for bklynman01
0
177
Member Avatar for bklynman01

I am working on exporting some data to a DataGrid (with no luck). So far I have: [CODE] Private Sub SaveDoc() Dim MyConn As System.Data.OleDb.OleDbConnection Dim DtSet As System.Data.DataSet Dim MyCommand As System.Data.OleDb.OleDbDataAdapter Try MyConn = New System.Data.OleDb.OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0; Data Source='c:\book2.xls'; Extended Properties=Excel 8.0;") MyCommand = New System.Data.OleDb.OleDbDataAdapter("select * from [Sheet]", …

Member Avatar for bklynman01
0
147
Member Avatar for bklynman01

I was able to find a few different threads that talk about using Excel in VB.net, but none seem to help me. Here is what I'm trying to do... I do not want the standard excel toolbar to be usable. I have a form that opens an excel file with …

0
67
Member Avatar for bklynman01

I'm using VB.net 2008... Within the program, there is a button that opens a file inside of a second form ([ICODE]DocViewFrm[/ICODE]) and it works fine the first time around. Within this new window, there is a button that uses [ICODE]Me.Close()[/ICODE] to close the window and return to the main window. …

Member Avatar for bklynman01
0
211
Member Avatar for bklynman01

Recently, I have been assigned the task of tracking training records used by multiple departments within my company. Before, they would fill out ISO Standard Forms that are built in MS Excel and save them in one folder. This folder held ALL of the documents used by multiple departments, training …

Member Avatar for bklynman01
0
137
Member Avatar for edriso

What data type is the element in your database? Maybe you're trying to post a string to an integer? I've had that problem before, and had to pull the data from the combobox, manipulate it, then use it in a db command. Its a stretch, but only takes a second …

Member Avatar for Netcode
0
153
Member Avatar for bklynman01

Hello, I'm writing code that will populate a listbox with the contents of a folder (a list of excel and word files). Naturally, the listbox has all file names with the ".xls" or ".doc" extension included. How can I get rid of this? I have tried [CODE]fileName.Remove()[/CODE] and [CODE]fileName.Replace()[/CODE] functions …

Member Avatar for AndreRet
0
251
Member Avatar for eladreznik

I do not see declaration of buttons that do not use images. Lines 42 and 49 show buttons that are being sized first, then being setup with the image. Perhaps this could be a problem? Otherwise... If you're using Visual Studio, there is a toolbar named Layout. View->Toolbars->Layout This will …

Member Avatar for bklynman01
0
112

The End.