|
Yes, that makes sense. I appreciate all of your help on this.
Brad
|
|
|
|
|
Hi, I currently faced a problem on inserting decimal value from vb .net into SQLCE which declared as money data type. ANyone know how to solve this??
Thanks in advance!
|
|
|
|
|
Hi all,
I'm working with the SoapFormatter class and I can serialize my TreeNode with no problems. But I get the following error when I try to deserialize my content.
System.Reflection.TargetInvocationException
Exception has been thrown by the target of an invocation.
The exception is thrown at the bolded line below:
<br />
Dim lSoapFormatter As New SoapFormatter<br />
Dim lReader As Stream = File.Open(asFilePath, FileMode.Open, fileAccess.Read)<br />
<br />
'deserialize the content<br />
Dim lTreeNode As TreeNode = CType(lSoapFormatter.Deserialize(lReader), TreeNode)<br />
<br />
'close reader<br />
lReader.Close()
The InnerException indicates that I have an InvalidCastException.
System.InvalidCastException: Specified cast is not valid.
at System.Windows.Forms.TreeNode..ctor(SerializationInfo si, StreamingContext context)
The thing that doesn't make any sense is that it is working fine on my machine (the one I developed my application on) but when I attempt to run it on another person's machine it throws this cast exception!?
I transferred my source code to this machine which is how I found out it was throwing this InvalidCastException in debug mode, but I have no clue how to resolve this!
Any ideas?! Please help!
|
|
|
|
|
I have a dropdown list called ddlstat and I want to populate it with values from a database table called status. The value I want to get from Status table is Status name.
here is the code for ddlstat:
Private Sub ddlStat_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ddlStat.SelectedIndexChanged
End Sub
Does anyone have the code to use to populate a ddl.
Thanks
macca
|
|
|
|
|
im not sure if this is what your looking for but...
<br />
<br />
Private Sub ddlStat_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ddlStat.SelectedIndexChanged<br />
<br />
ddlstat.items.clear<br />
dim i as integer<br />
<br />
For i = 0 To (DataSet11.Tables("status").Rows.Count - 1)<br />
ddlstat.items.add(DataSet11.Tables("employee").Rows(i).Item("Status_Name")) 'status_name = column name in table<br />
next<br />
<br />
end sub<br />
|
|
|
|
|
I have a list of records in a combo box.
How do I get the selected row number e.g.
In combo box have the following
A
B
C
D
If I select C then that is the 3rd row. How do I display that I selected the 3rd row.
Thanks in advance
|
|
|
|
|
see SelectedItem() and SelectedIndex()
hey, did you search a bit?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
combobox1.selectedindex + 1 = the row number
its +1 cause combobox index starts at 0 so the first item is at index 0 and the last is at count-1
in other words assuming the combobox is called combobox1 and the output is going to be in label1
<br />
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged<br />
<br />
Label1.Text = "You Clicked On row " & (ComboBox1.SelectedIndex + 1).ToString<br />
<br />
End Sub
|
|
|
|
|
Hi Guys,
Currently I use Office 2003 VBA to develop macros userforms etc for my Excel sheets. I was wondering if it is possible to use vb.net that comes with VS 7 to develop all of the above.
The reason I am asking is that in VBA the controls etc are not as 'nice' as the ones in vb.net and there are more features and so on. Also I realy want to learn VB.net (as I am told the syntax is different and it is more powerful than VBA).
Anyway if someone could give me some basic pointers on the whole issue that would be great.
|
|
|
|
|
|
hi,
i'm actually using a second winform ("info-form") to show some information after the user clicks on a picturebox.
if i click more than once, several "info-form" will show. i'd like to update the info showed in the "info-form" if it exists instead of creating new ones.
moreover, the info-form topmost option to true and i would like to get it topmost only when my app is active, but this is not really important.
any advice?
thancks in advance
Cheers!
Paolo
|
|
|
|
|
Are you working with an MDI application? Or two completely separate forms?
|
|
|
|
|
thanks for answering me,
it's a SDI application,
actually i can manage this issue declaring the name of the second form and verifying if Info_Form "is nothing" or if "Info_Form.IsDisposed" and then creating it.
do you think it's correct?
thanks again!
|
|
|
|
|
|
i took a look at the article you linked to, very interesting.
thanks once again!
Cheers!
Paolo
|
|
|
|
|
I wrote a VB.NET program and I want to run report as follow :
When users click on the "Run report" button, the crystal report will open.
code:
shell("crw32.exe /r .\crystalReport1.rpt /id=1 /run",AppWinStyle.NormalFocus)
but the program justopens the report in design mode.
Now I want the report will be opened directly with the parameters id=1 ( not in design mode) when users click on the "Run Report" button.
Hung
|
|
|
|
|
Does anyone know how to create a textbox in the toolbar
like google search tool with VB6?
I am also interested in the
Shin
|
|
|
|
|
I just googled and found out that i need to use band object.
If some has seen the sample code let me know
Thanks
Shin
|
|
|
|
|
There's an article here on CP[^]
But it's in C#, not VB6. Maybe it can help you with some ideas or something?
Hope this helps!
|
|
|
|
|
Thanks,
I will have a look at it.
Do you happen to know how to create some of application
docked on the top of desktop and hide/show depending on
how close the mouse pointer from the application?
Shin
|
|
|
|
|
I'm afraid not
I was just reading your post and remembered the article, but i don't know how the stuff in the article works. I just vagely read it, but didn't do anything with it.
Sorry i can't help you any further...
|
|
|
|
|
How to find that, the installed application is installed with the option everyone or just for me (.msi file). Identify programatically the user selected option (everyone/just for me) in Installation to decide copying of data files to userpath or commondata path (eg. user logged in profile path or commondata folder)
|
|
|
|
|
Achieving what you describe is very difficult. You would have to checkl the property, then run a custom action (a C++ dll, not an installer class) that modified the msi database itself to change the target folder for the files. A much simpler approach would be to simple disable the option, always install for all users, and just fix the target folder as commondata.
Either way you'll have to download the Windows Installer SDK and modify the setup msi with the editing tool Orca. It's too complicated to attempt to explain. You'll have to spend considerable time studying the table design of an MSI.
Robert
|
|
|
|
|
hi.
i am trying to make connection between a vb.net desktop application with the samba (linux server). my application reads files from linux server. but this it happends if i manullay go to start->run->"\\192.0.0.20" and when login password screen pop up i provide it the details, and then i can reads files from my applicatoin with out any authentication, else i just get the exception,
can any one help me how can i provide the login and password to remote ip from my application.
i am working in vb.net. please refer free api (no trial ver, or traing api)
regards.
kaleemullah
(Software engineer)
kaleem_khan2001@yahoo.com
kaleem.khan2001@gmail.com
|
|
|
|
|
Hello, can somebody tell me how to read from a textfile from line number 4?? PLEASE SEND ME FEEDBACK ON THIS!! THANKS!!
|
|
|
|