|
Hi Chris.
I actually tried that but instead of splitting the string at 'string.' it splits it every time it finds one of the letters in 'string.' I thought it was a simple concept until I started trying to use 'split' to make it work.
Thanks.
Brad
|
|
|
|
|
I am trying to create a small app that will handle all of my Vnc and Vpn connection needs (over 40 diffrent connections). What im looking to do is to create and application which holds the connections and sits in the system tray until a right click then a menu with my options. Creating the system tray application is where im having problems, any help would be appreciated.
p.s. newbie here.
|
|
|
|
|
I have the following code, but I cannot seem to get the changes in the dataset to be commited to the database. All I get is a 0 rowcount:
Private editQry As String = "select idc,nomiko,Eponymo,Onoma,Tel from Persons where idc=1"
Private adoCEDataAdapter As SqlCeDataAdapter
Private CustEditDataSet As DataSet
Private cb As SqlCeCommandBuilder
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Close()
End Sub
Private Sub frmCustEdit_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
adoCEDataAdapter = New SqlCeDataAdapter(editQry, frmConnect.adocon)
cb = New SqlCeCommandBuilder(adoCEDataAdapter)
CustEditDataSet = New DataSet
adoCEDataAdapter.Fill(CustEditDataSet)
txtSurname.DataBindings.Add(New Binding("Text", CustEditDataSet.Tables(0), "Eponymo"))
txtName.DataBindings.Add(New Binding("Text", CustEditDataSet.Tables(0), "Onoma"))
txtTel.DataBindings.Add(New Binding("Text", CustEditDataSet.Tables(0), "Tel"))
cbLegal.DataBindings.Add(New Binding("SelectedIndex", CustEditDataSet.Tables(0), "nomiko"))
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox(adoCEDataAdapter.Update(CustEditDataSet).ToString())
Me.Close()
End Sub
I have tried to create the Update query with:
adoCEDataAdapter.UpdateCommand=cb.GetUpdateCommand
and it returns a query, but again nothing happens on the adoCEDataAdapter.Update(CustEditDataSet)
Help....
|
|
|
|
|
can any one help me to come out from this problem.
i want to use mouse scroll buttons to scroll inside flexgrid control (VB.NET).
thanks in advance!
|
|
|
|
|
can any one help me to come out from this problem.
i want to use mouse scroll buttons to scroll inside flexgrid control (VB.NET).
thanks in advance!
|
|
|
|
|
Hi,
Is there a way to run a program when a cd is put in the drive using either vb 6 or vb.net. I am not looking to autorun the cd.
|
|
|
|
|
This is something that is on my “To Do” list also. I want to make a CD Autorun an html file that is located on the CD but I haven’t had time to look into it yet.
The first thing that I was going to do was check to see if I could make an AutoRun.ini file that points to my html file. Maybe this same concept will work if you direct the AutoRun.ini to your programs exe file.
Brad
|
|
|
|
|
Hi,
Actually what I want to do is a little different. I have cds that are already made and I want a windows based program to run when a cd is inserted into the drive. I cannot put anything else on to the cd. I need to start a program of my own. Its a bit like when you put a cd in when using Windows XP. A window is displayed asking you what you want to do ie play it or do nothing. Except I will be running the program under windows nt and windows 2000. Hope I've made scense
|
|
|
|
|
Hmmm....now I understand exactly what you want to do but I’m not sure how to make it happen.
There are some very intelligent people in this User Group. Hopefully someone will have an answer for you.
If I find any useful information while I’m trying to figure out how to AuotRun my html I'll let you know.
Brad
|
|
|
|
|
Thanks. By the way there is a free program out there that allows you to autorun any file. If i can remember the link i will post it here
|
|
|
|
|
Thanks. That would be great!
Brad
|
|
|
|
|
Here is the link to one program. I have another one put i can't remember it until i get home.
http://www.jsconsulting.com/prod04.htm
|
|
|
|
|
Thanks!
You just saved me a lot of time
Brad
|
|
|
|
|
|
Hi,
In migrating from vb6 to vb.net, could not the alternative for
"UserControl.Hyperlink.Navigateto(param)" Can anybody provide help on this, I have tried MSDN but no use can anybody help me out please???????
|
|
|
|
|
Hi, trying to send a defined type on the serial port, to do that I need to access the bytes for each value in that type.
Lets say I want to send a variable of this type as binary/byte data:
Type test
v1 As Single
v2 As Single
v3 As Long
v4(4) As Single
End Type
How do I get the individual bytes to send, in total 28 bytes in the example abow? Is there a whay to convert this type and others to byte arrays?
And then when recieveing, lets say a single float in binary as 4 bytes on the serial port, how can I transforme that 4 byte array to a single value in visual basic?
regards Me
|
|
|
|
|
Is there any built in function in "VB Script" or user code to extract substring from a line where each substring is separated by a delimeter like coma (",").
eg: str="subOne,subTwo,subThree"
im looking for a function like this XXX(str,2) should return "subTwo".
Please note i wanted to do this in VB Script
And also I dont want to use Split() function since i wanna this in visual test 4.0 and Split() is not available there.
Thanks in advance.
|
|
|
|
|
No, there is no function like you describe. If you can't use Split (the common solution to what you want), then you'll have to write the function yourself and either return all of the substrings in an array of strings or return just the one you want. It's up to you how you write it...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
you need to find your first delimiter's index
make a new substring using the aboves delimeter's index + 1,
search the new string for your next delimiter
then repeat as much as needed
|
|
|
|
|
Hey,
I found a component here[^] for using FTP in VB.NET.
I have written a recursive loop to look through a directory and upload the files.
My problem is that you need to change to a directory (Using folder name on FTP only not having a full path) on one pass, then change to a sub folder on the next pass and so on, this ends up uploading this original folder structure:
Parent
------ Folder 1
----------- Sub Folder 1
------ Folder 2
----------- Sub Folder 2
into
Parent
------ Folder 1
---------- Sub Folder 1
---------------- Folder 2
--------------------- Sub Folder 2
So after ending one branch its doesnt go back to the root and start the other branch, As because Sub Folder 1 has no childnodes it should go back to the root and create the recursion of the Folder 2 branch, but it just recurses all the way through in one branch.
Is there a way to upload a single folder only, in this case the Parent folder, or a way to solve my problem?
Thanks for your time
Chris
|
|
|
|
|
Without seeing your code to walk through and duplicate the directory tree, there is no way anyone can solve your problem. But, I will tell you that your not setting the current directory properly on the copy your making. Remember "CD .." changes the current directory to its parent.
FTP does not allow for transfering of an entire directory structure. Your application has to walk the tree and rebuild it itself.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hey,
Thanks i have emailed you the code, was a bit much to post here.
Thanks for your time
Chris
|
|
|
|
|
I've got it, but in the future, post the code here, not to my personal email. I've barely got any time to do stuff with my girlfriend let alone look at everyones code that sends it directly too me. Besides, posting it here will give other people a chance to take a look at your problem in the event I go on vacation and ignore my Inbox and work life for a week or two...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Apologies. I know the feeling. Will take for future.
Thanks
C
|
|
|
|
|
Hello every one in the Great site , i hope everthing is going well with u .
please if any one know information abt a programm change c++ code to vb.net or to vb 6.0 , coz i got the one who change from vb.net c#.net , please help me u if can ur brother Meetchanov.
|
|
|
|