|
So in the beginning I didn’t understand your exact problem...
Anyway,
At the moment the best way I think about to solve this problem is creating your own function that runs on the list of states and search for the specific id... so the function will return the index..
to make it easier You can even inherit from the class Combo Box and overload the function indexOf so it will do the job..
When I will have a better answer for this problem I will notify you
Good luck!
|
|
|
|
|
is anyone familiar with the rosettanet RNIF frame work for sending B2B files (Invoices etc) in .xml format.
and can this be done from a DotNet Application.
i can only find developers Using BizTalk server or a purchased solution from a vendor.
thanks for any help or advice.
rik
|
|
|
|
|
Dim oBitArray1 As System.Collections.BitArray
oBitArray1 = New System.Collections.BitArray(4)
oBitArray1(0) = False
oBitArray1(1) = True
oBitArray1(2) = True
oBitArray1(3) = False
Dim oBitArray2 As System.Collections.BitArray
oBitArray2 = New System.Collections.BitArray(4)
oBitArray2(0) = True
oBitArray2(1) = False
oBitArray2(2) = True
oBitArray2(3) = False
Dim oBitArrayOR As System.Collections.BitArray
oBitArrayOR = oBitArray1.Or(oBitArray2) 'This changes the content of oBitArray1. Bug? (.Net 2.0)
'----------------------------------------------------------------------------------------------------------------
'| Conversion from string "" to type 'Double' is not valid. Why? |
'----------------------------------------------------------------------------------------------------------------
'|Bug |
'|--- |
'|You cannot use a '+=' to concatenate a string with an integer because it wants sum the values and |
'|therefore it tries to parse the string to a double. |
'|Solution: always use '&=' to concatenate with strings. |
'----------------------------------------------------------------------------------------------------------------
For i As Integer = 0 To oBitArrayOR.Count - 1
TextBox1.Text += i'oBitArray1(i) + " OR " + oBitArray2(i) + " = " + oBitArrayXOR(i) + "\r\n"
Next
BUT
Dim x As Integer
Dim s As String = s
x = 1
x += 3
s += x
TextBox1.Text = x & " " & s <-- No exception
TextBox1.Text += x <-- Exception
TextBox1.Text += x & " " & s <-- No exception
So, concatenating two strings with '+=' is no problem
|
|
|
|
|
So, is there is question in this, or what? There are no bugs with these operators.
The '&' and '+' operators are fully documented here[^] in the VB.NET Language Concepts reference.
If you use the '+' operator to concatenate strings and numbers, you have to beware of the implicit conversions involved when using it, all of which are documented here[^]. If you use the '&' operator, any operands that are not already Strings are always converted to Strings before the concatenation takes place.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I just want to comment that you can also create your own implementation for the operators in your classes...
Here is a tutorial I found by using Google: Here[^]
other tutorials can be found over Here[^]
|
|
|
|
|
Don't tell me that, tell the OP!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hehe,
I just replyed to the wrong messege... sorry
|
|
|
|
|
Hello all,
I'm new to DirectShow application. I've build a normal application that can run .avi file. I've got an error in RenderFile(), like problem in file loading. so please anyone can help me out how to solve this problem? File path is correct and to load .jpg file it's working fine but in loading .avi files I got problem.......And ya I'm building this application in C# using visual studio 2005.
Please reply soon...
Thanks for reading my question...
alpa shah
|
|
|
|
|
hi
i am creating an application that gets the time from server and sets its time according to this time,, but the problem is that i cannot give adminstrator rights to the user on the client side so just because of that i cannot change time with my c# application because the user who is using this application in the client side does not have administrator rights,,
so is there any other way to change the system time while the current user does not have the administrator rights
thanks in advance
hello
|
|
|
|
|
No, there is no other way to do it. If the user doesn't have the rights to change the system time, he/she isn't going to be able to change the system time, no way, no how. Your application MUST be running in the context of the administrator, or Power User, account to change the time. Since any application runs with the same security context of the account that launched it, it has the same priviledges and restrictions as that account.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hi all,
I have to implement Pull printing or Driverless printing concept in my .Net application on a web based client server architecture. Can anyone assist me with the technology to be used and how shud i go about it. I hv no clue!
|
|
|
|
|
can any body tell me a proper method of implement paging in gridview if gridview's datasource is datareader.
neetu
|
|
|
|
|
I have developed a .net project. I want to build it from MS-DOS prompt not from the SDK dos prompt. Can anyone give me a solution for this.
thanks
kavitha
|
|
|
|
|
I would guess that the main thing the SDK prompt gives you is the ability to call the build tools, etc, without specifying the full path.
Christian Graus - C++ MVP
|
|
|
|
|
On my machine the C# command line compiler for .Net 2.0 is:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe
Add a /? parameter to get the command line options. There is also Visual Basic (vbc.exe) and a J# (vjc.exe) compilers the same directory. Each version of the framework contains the appropriate command line compilers. A notepad warrior can code without even purchasing an IDE.
|
|
|
|
|
You cannot compile ur .Net projects from MS-DOS prompt.
.Net SDK tools are only available at SDK Command Prompt.
To make it work with MS-DOS prompt is not a big deal you need to set the .Net environment variables by executing the batch file, usually found at
"C:\Program Files\Microsoft.NET\SDK\v2.0\Bin\sdkvars.bat"
|
|
|
|
|
Hi, I am using MySql ODBC driver for connectivity with MySql database and my VC++.NET application. Now when I am using odbcDataReader to read some data some time I need to use another odbcDataReader for another table. But this gives me run time error “There is already an open DataReader associated with this Connection which must be closed first.” Can I know how can I use 2 odbcDataReaders at same time, or any other method to do this? Thanks in advance.
|
|
|
|
|
The error gave you the solution! Open up another connection for the second DataReader.
|
|
|
|
|
An application, builded with the Visual Studio 2003 Setup, runs fine on a user machine, if the user has Admin privileges, but if the user has only user priviledges, a doubble-click on App-icon do not start the App.exe but seeks for the App.msi - and stops with fatal error.
Did I something wrong?
Ariadne
|
|
|
|
|
Sounds like you did something in code that requires admin.
Christian Graus - C++ MVP
|
|
|
|
|
Christian Graus wrote: Sounds like you did something in code that requires admin.
No I don't think so. If I run the App.exe from the user account (doubleclick on App.exe in the program folder) there is no problem. Only if I try to run the App from the installed icon, it tries to reinstall the App from a unfound App.msi
Ariadne
|
|
|
|
|
Hi, I am new to .net and my company wants me to develop a plugin in .net (framework 2.0) for MS Office 2003 or higher. Does any body knows how to create a plugin and how to deploy into MS Office using installer so that when ever MS Office (word, excel or ppt) opens then it will added automatically.
Thanks
|
|
|
|
|
I think to implement this application you have a basic knowledge of OLE and COM component.
alpa shah
|
|
|
|
|
Thanks,
Does it mean that .net is not providing this?
|
|
|
|
|
There is also a version of Visual Studio (I think Professional/Team Developer) that supplies a specific type of project for all the Microsoft Office products (developing for Outlook/Word/Excel/etc...)
it depends on the version of your Visual Studio 2005..
|
|
|
|