32 Posted Topics
Re: Hmm weird, looks like it should work. Instead of [code] row.Cells(1).Value = True [/code] try [code] Grid1.Rows.Item(row.Index).Cells(1).Value = True [/code] | |
Re: You should be able to just split the string on the space character, and just loop through the array of items. Kinda like this: [code=VB] Dim paths() As String Dim path As String = "www.test.com" Dim itemlistbox As ListBox Dim num As Integer paths = Split(My.Computer.FileSystem.ReadAllText(path & "itemInfo.txt"), vbNewLine) For … | |
Im looking for an image viewer that supports most types of image formats, including PDFs, and has the ability to rotate/zoom, and draw on an image. I've been looking but to no avail. Does anyone have any suggestions on the best way of going about modifying a control so that … | |
Re: Just sort the list. list.sorttype = ascending list.sort() | |
Re: Here's my guess on the easiest way to do it, just looping through each item in the folder. You can change the parameters of GetFiles to include subdirectories, or filter the files. [code] Dim ofd As FolderBrowserDialog Dim filelist() As String If ofd.ShowDialog = Windows.Forms.DialogResult.OK Then filelist = System.IO.Directory.GetFiles(ofd.SelectedPath, "*", … | |
Hey guys, I need some help with the logic on coding a checkbox column on a Datagrid on a Windows Form. What I want the Datagrid to do, is once the checkbox is checked on the Datagrid, to enable several other columns also on the Datagrid. I think I almost … | |
Re: You have to remove the item from the database that the datagrid is getting the information from, instead of just the actual datagrid. Heres a example. [code=VB] If Grid2.SelectedCells.Count <> 0 Then Table2TableAdapter.Connection.Open() Dim I As Integer = Grid2.CurrentCell.RowIndex TestdbDataSet.Table2.Rows.Item(I).Delete() TestdbDataSet.GetChanges() Table2TableAdapter.Update(TestdbDataSet.Table2) Table2TableAdapter.Connection.Close() Else MsgBox("There are no items selected.") End … | |
Re: Can't you just create a function that calls the DataAdapter from that class and updates the datatable in your main form? [code] Dim newForm As MSSUI newForm = MSSUI MSSUI.MyDA.Update(mainFormTable) newForm.Close() [/code] oomething like that? What version of .NET are you using? | |
Re: What you'll have to do is add the prerequisite for Crystal Reports under your setup properties, or project properties depending on if you are using a install wizard or not. If you have a installation project, you can go to Project -> Properties and select prerequisites, and make sure that … | |
Re: [QUOTE=jcb0806;1094842]I HAVE PHOTO ATTACHED I'm trying to come up with some code that will make the 'Acct #' label and text box ONLY appear when some text is typed in the text box beside of 'Prime Broker', 'Custodian', etc. Can anyone help? Thanks.[/QUOTE] In the designer, set the Visible property … | |
Re: [QUOTE=SyLk;1094069]New to VB.NET How do you create a label which is'nt associated with a handle so that it displays the data when the form is loaded with clicking it etc?[/QUOTE] Just position the label where you want it, and leave the text field blank. Or you could also set visible … | |
Ok we have been creating this calendar in our intro to programming class for about a week or so, and right now I am stuck on getting the start day of each month. I was thinking it should be total days (days in month + total days from 1800 - … | |
Re: Is your key an autonumber field? If so, just go to the tableadapter , select the update command that you are using, and under parameters, remove the parameter for the key, so that it isnt expecting that parameter to be passed | |
Re: Well when u create the table adapter, it should automatically setup your insert query, so you should be able to just call the query and pass it what you need inserted, like: MyTableAdapter.Insert(myDeptNo, MyDeptName, MyDeptLoc) MyTableAdapter.Update() | |
Re: Are you using an openfileDialog? If so you can just use the openFileDialog to select the xml, and when you call the loadxml function, just use the openfileDialog.Filename to pass the file for it to load. Post some code / error msgs if u still have questions | |
Hows it going everyone. Im pretty new to Crystal Reports, and I have been trying to create a report. The report that Im creating is loading a dataset and right now I am using 5 tables from it. Its loading the dataset at runtime, and the tables that Im loading … | |
Re: Set the timer interval to however long you want it to wait until it closes, Start the timer in whatever triggers the form, and In the timer's code Form.Close() | |
Hows it going everyone. Im pretty sure theres a simple way to do this, but cant figure it out right now. Im still relatively new to vb .net, and have a function that reads a csv file into a datatable and fills a datagrid. But what I want to do … | |
Re: You should be able to just right click in the main window where the code is and go to designer view, or go to the Solution Explorer and right click on the name of the form and go to Designer View. | |
Re: Why are you using html to write a post? lol. If you hold your mouse over his first line the tooltip shows all of what he typed, its not all showing up. | |
Can anyone help me translate this regex match in Perl to a VB.Net Regex match? Heres the perl regex: if ($line =~ /\\([\w\d\s\-]+?\.\w{3})\"\t\"/) { print "LINE: $1\n" } # regex match And heres what I have for the VB regex, but its currently not working: [code=VB] Dim fs As New … | |
Im having trouble trying to pass a parameter to a SQL query that I am trying to run on a DataTable, that Im using to Dynamically populate a treeview. Im not having any trouble filling the first nodes, but to fill the second nodes, I have to use a query … | |
Right now Im having trouble getting data from a MySQL table and creating a new datatable to store this. I have a TreeView control that I am trying to dynamically add nodes to. The query that I have is returning the Attachments column of all rows where Owner = (parameter), … | |
Hows it going everyone. Right now I am working on a project with VS2008 that parses directory and subdirectories and lists all filenames/paths/size/etc. This is working correctly, but I also need to parse the contents of zip files without actually unzipping them. What would be the easiest method to return … | |
Hows it going everyone. I am having trouble clearing the data in an access DB that I am using in my program. I have two DataGrids and each have a table from my access DB bound to them. Im not having any trouble adding the data to them, but the … | |
Re: [code] For a = 0 To ds.Tables(0).Rows.Count - 1 lststock.Items.Add(ds.Tables(0).Rows(a).Item("Brand_Name")) lststock.Items(a).SubItems.Add(ds.Tables(0).Rows(a).Item("Generic_Name")) Next close_connection() [/code] From what I can see you are only adding information from one table in the code right now (Tables(0)), if I am understanding correctly. If you just want to add the data from another table, you … | |
Re: [code] Dim obj As New Form1 obj.lvitem1 = obj.ListView1.Items.Add(Me.TextBox1.Text) obj.lvitem1.SubItems.Add(Me.TextBox2.Text) obj.lvitem1.SubItems.Add(Me.TextBox3.Text) [/code] If you just want each of the items to be added, you could just add each one to the listview as an item, ex. [code] ListView1.Items.Add(TextBox1.Text) ListView1.Items.Add(TextBox2.Text) [/code] or do you want the other boxes to be subitems? | |
Re: Right, you should use the =@studentno for your query, so it will be something like [code] SELECT StudentName FROM StudentTable WHERE StudentNo = @StudentNo [/code] Where StudentNo is the name of the student number column in your access database , then when you need to call the query it will … | |
Having some trouble adding children to tree view. All of the parent nodes are created correctly, but it wont add more than 1 child to each parent like it should. It just adds 1 to each parent. Thanks in advance. [code] For J = 1 To WorkOrdersDataSet.BatchTable.Rows.Count() rootnode = workqtree.Nodes.Add(CStr(BatchTableTableAdapter.BatchID(J))) … | |
Hows it going everyone. Right now I am trying to read data from a text file into a datatable, and display the datatable in a new form. I am trying to use a string array to store the variables before adding them to the table. Everything compiles etc correctly, but … | |
Im pretty new to VB, using .Net 2008, and I am saving two DataGrids, ComboBoxes, and Textbox to a txt file, using "*99*" as a terminator between each, but I am having trouble reading it back into each field. Heres my open file code. [CODE] Private Sub openbtn_Click(ByVal sender As … | |
Hows it going everyone. Im trying to compare two tables, and display the rows that are not in both tables in a DataGrid. Im using Visual Basic 2008, and created a query in the TableAdapterManager, but when I try to call the query, it is not displaying the results. Shows … |
The End.