Combine 2 Items With A Split?
Mar 29, 2010Im trying to combine 2 items in a listbox and in between them theres a split[code]...
View 7 RepliesIm trying to combine 2 items in a listbox and in between them theres a split[code]...
View 7 Repliesi'm currently working on a project to make my threads easier to locate. reason: since i tend to get more threads added daily to my threads list, the following ( site:microsoft.com/forums/en-us +trujade+hello world )when pasted in google search, tends to return invalid quite a few times..i would like to be able to categorize my threads and have them all saved in 1 file, .txt file preferably.how can i combine the entire row in a listview into one line to be saved to a file....for example, the following code adds 3 columns.in those columns, i can separate each line from a .txt file and add the items and subitems, but, i need help combining the items and subitems for each row.[code]...
View 5 RepliesI want to know how listbox items split to textbox in VB8.
Example:
Listbox items
orange
apple
banana
Then only split listbox selected item to textbox like this:
orange#apple#banana
I am trying to split a long string based on an array of words. For Example:Words: trying, long, array Sentence: "I am trying to split a long string based on an array of words."Resulting string array:Multiple instances of the same word is likely, so having two instances of trying cause a split, or of array, will probably happen.
View 5 RepliesI would like to create a split container with a three way split. The first split is a vertical split. The second is creating a horizontal split within panel2 of the first split container. panel1 will hold a treeview control the other two panels will hold listview controls
I think this question has been asked already in a couple different ways and I've reviewed those posts and I've tried to do what was suggested but it doesn't seem to work for me. I've tried to place a second split container inside panel2 of the first split containter. This gave me what appeared to be a three way vertical split.
I'm trying to split a Yahoo historical stock price csv file, downloaded into a string, by what looks like a space character. I want a new row for each split. The split function works for other characters I see in the string. I suspect the characters may be a non breaking space character but I've been unable to split on them. This is the test csv file that is downloaded into the string: [URL] I'm trying to split the string like this:
[Code]...
I have listbox which is populated from a text file with all the items fromt he 1st split, the text file looks like this:
Quote:
test l1c1 | test l1c2 | test l1c3
test l2c1 | test l2c2 | test l2c3
[code].....
How do I combine a last name to a first name to create a list of names in a table from a form? I have tried to use the technique of creating a 5 uppercase letter record identifier, but I can't get the name to allow for different length names without truncating.
View 3 RepliesI have a friend who is very good at c#, but i am using vb.net and not clearly experinced with c#. i want work with my friend together.how can we do ?
View 11 RepliesI was wondering if there is a way to include / 'run' C++ code within VB.net I think I read somewhere about turning the C++ Code into a library and can access it that way, but not 100% sure if I did in fact read that right or if I'm dreaming things up. Basically, I want to design a basic UI, ie just a button or 2, and when the button is clicked I'd like it to use the C++ Code.
View 3 Replieshow can i get cell text value from excell sheet in visual basic and then after changing its text send it to back excell. when i open excel file i should get the changed value in file.
View 1 RepliesI am trying to UNION the two queries below without success.
Dim
ds1
As
New
DataSet
Dim
MyConnection1 As
New
OleDb.OleDbConnection(GetPOWERConnectionString())
[Code] .....
how to combine this 2 statment..
IsConnected("Select * from manager_table", False)
Call Loader()
IsConnected("Select * from Clerk_table", False)
Call Loader()
i hve 2 listview, 2 table from accessdatabase..i put listview in tabcontrol..1 in tab 1 & second in tab 2...
I'v got 3 functions that I'd like to combine into 1. There is only one line in each function that changes. can think of a few ways off the top of my head, but not sure which is "the best", or "proper way" to accomplish this.
Private Function CheckQuads(ByVal QuadNumber As Integer) As Boolean
Dim intArray(3) As Integer
Dim x As Integer = 0
[code].....
I need to combine an if/then/else with a try/catch and I can't seem to make it work. Basically I need this:
Try
code that might bomb
Catch ex As Exception
[code]....
I thought I could check Err.Number once I was out of the Try/Catch block but that doesn't work because apparently Err.Number exists within the Catch block after an exception is caught, but outside of the Catch block Err.Number is zero again. How can I do what im trying to do? Im about to NOT use try/catch and resort to On Error Resume Next (aaahhhh the days when things were simple and just worked)
I have a solution, Winforms, mainly composed from VB.NET projects (Wiforms, Constrols and business classes).
How, I added to it a WPF project, but wrote it in C#. Actually, every time I make a modification in the WPF C# project, I need to (re)build the C#WPF project. Is there a option to make it work like other (VB.NET) projects (accept and "see" the changes without rebuilding the C# project)?
An example:When I reference project "R.VB" in project "M.VB", I add a method "DoTest" in the "R.VB" and use that method in "M.VB" without compile errors.
If I add "DoTest" in the C# WPF Control and try to use it in "M.VB" project, I recieve a compile error "DoTest" is not a member od "R.C#Class".
I have two projects, one written with vb.net and one with c#,I would like to use the vb.net one more as a Class and make the c# project the 'main' one.I have already read that In order to do that I need to compile the vb.net project as a dll and import that dll into the C# project.I am having hard times making it work.Does anyone know how do I import the dll and use the functions that are implemented in the dll?
View 4 RepliesI don't know how to get shift modifier key as when I pressed shift and another key, it show message box "Modifier shift key"
View 1 Replieshow to combine this 2 statment.. [code] i hve 2 listview, 2 table from accessdatabase..i put listview in tabcontrol..1 in tab 1 & second in tab 2...
View 4 RepliesI am wondering how to combine files (exe, dll, jpg etc.) into a single standalone executable. Can this be done?And when i open it, it will automatically launch the included files. However The joined files should be fully encrypted
View 3 RepliesHow do I combine richtextboxes? Currently, I am directly saving rich text to a RTB with ".rtf" and I would like to append the rich text information to that box from another RTB. Something like: RTB.rtf &= newrichbox.rtf do not throw any flags but also does not work. What I am ultimately trying to do is save multiple richtextboxes to a single RTF file. I was trying to do it by combining them all into one RTB and using ".savefile()" or is there a better way? Maybe appending them to the file one RTB at a time?
What I'm doing is generating a report, so I have built generic rich text templates that go into multiple RTBs that will create the form sections and I have left placeholders for the data I am adding, so I do replaces on the placeholders to insert the data. However, there are a couple dozen different possible formats for the report based on user options, so I built each section into its own RTB so I can just write out the relevant sections when it comes time to generate the file.
I'm trying to combine two datasets, each with 1 datatable and each having the same schemas. Datatable 1 would have a list of records. Datatable two may, or may no, have some or all of the records from table 1 plus more records. I would like to remove all the records from table 2 that are present in table 1.
This is what I got so far:
For Each table1 As DataTable In ds.Tables
For Each row1 As DataRow In ds.Tables(0).Rows
ds.Tables(0).PrimaryKey = New DataColumn() {ds.Tables(0).Columns(0)} 'Where 0 is the index of the column that's your key
row2 = ds2.Tables(0).Rows.Find(row1("ID"))
'if its found, delete it
Next
Next
I am trying to figure out a way of combining the below Dim statements into one line and maybe also combining Return dblResult into there. currently it is three lines and I have been told that it is possible but kind of lost of how to do it
[Code]...
i would like to ask how can i combine 2 .exe files into 1 .exe file. for example,
1) a.exe
2) b.exe
combine into ab.exe
a.exe must install first, after that b.exe will continue.
I'm trying to combine 2 byte arrays and then create a new byte array that contains the contents of both but running into a problem. The error says 'Source Array was not long enough.' I'm trying to combine HeaderByteArray and bytBuffer into newByteArray. I don't understand what Source Array is not long enough means and how to correct this.[code]...
View 9 RepliesHow can I combine 2 or more text files into one? I prefer to use vb script but other ways is ok too.
View 6 RepliesI have a webform that users put in details and this goes to a database - this all works fine.The form is a FormView (Expression Web) and as I have added to other stuff to the page I can't use the standard "insert" button on the form view some I have add an asp-button to run the insert - this also works fine.What I am trying to do is to get the page to send me an e mail when a user has completed the form - this is the problem ,The insert works fine when I click a button,The send e mail works fine when I click a button BUT I need to combine them so the user only has to click once.At the moment I have two functions running on 2 buttons
InsertButton_Click and SubmitForm_Click
How can I combine this to both run on InsertButton_Click[code]......
I can combine windows application and web aplication.Can i develop main page in web application then i want to access to the windows application.(e.g there's a button to link process mgt page.But process mgt page is developed in windows application).Else, if i do a view page on windows application and to retrieve the data is from web application. Example, users may fill the form through website, then to display the information is in windows application.Can i retrieve the data from the same database(SQL server dbase).
View 1 RepliesI was wondering if there is any way to combine events in VB.net. I am using a windows form and have three events for each button that does a different action. I would like to put all three events in one method but am having trouble doing this. Below is an example of one of the buttons. For the ease of the question I removed all the code inside each sub.[code]....
View 4 RepliesHow do I combine multiple files into the one file with a new extension. No need to be compressed. So I avoid Zip or similar solutions. (Actually don't want to add third party solutions into my application.)
View 13 Replies