I have two small VB.NET applications that connect to the same Oracle database. One uses the OLEDB provider, and the other uses Oracle's ODP.NET. Should I expect to see problems with the OLEDB provider, as it's less 'native' to Oracle?
Thanks for any help!
...
all runs perfect now big thx ...
i post the code for all that have the same problem, the iso encoding was the problem ..
but how i said big thx ..
heres the code for all with the same prob:
Public Function uploadPic(ByVal pic As Byte(), ByVal filename As String, ByVal user As String)
Dim encoding As String = "iso-8859-2"
...
I am developing a speech synthesis VB.NET app with Visual Studio 2010 in Windows 7 x64 that will be deployed onto Windows Server 2008 R2 x64 that uses the Microsoft.Speech.dll.
The problem is that when using the Microsoft.Speech dll, no voices are available. If the dll and imports are changed to System.Speech.Synthesis, the installed vo...
I have:
Dim nVar1 As Long?
Dim nVar2 As Long?
Dim nVarSum As Long?
nVar1 = Nothing
nVar2 = 5
nVarSum = nVar1 + nVar2
I would prefer the result to end with nVarSum being 5, instead of Nothing.
I understand if you add something to an unknown value, you will end up with "somthing + unknown" or
x+5 will always equal "x+5" not "5" be...
Is it possible to prohibit an instance of a class from calling a shared/static method?
For example:
I want to allow this:
ClassName.MethodOne()
But I want to disallow this:
Dim A As New ClassName
A.MethodOne()
The reason this is desirable is that in this case it is semantically confusing if an instance can call the method.
...
I used to close an open datareader using the try/catch/finally block:
Dim dr As MySqlDataReader = Nothing
Try
dr = DBConnection.callReadingStoredProcedure("my_sp")
Catch ex As Exception
' the caller will handle this
Throw ex
Finally
If dr IsNot Nothing Then dr.Close()
End Try
But I think it should be cleaner (and som...
I would like to use .NET platform to do this. I should be able to convert word documents, pdf files, assign a password and publish it to kindle, sony reader. Any ideas? Thanks!
...
Hi,
It's gonna be hard to try to explain this, but please bare with me...
I'm using process.Start to run Convert.exe. This program's purpose is to convert all files which are in the exe's folder. So when I normally use it, I copy paste a file into the same folder as Convert.exe and then run Convert.exe. Convert.exe will create a new "c...
Possible Duplicate:
iif equivalent in c#
I have several lines of code using IIF in VB.
I am trying to convert this code to C#.
HEre's an example where I need help.
intCurrency = IIf(or.Fields("Currency").Value = "USD", 100, 0)
How do I change the above line of code to CSharp? Is there a short-circuit evaluation operator in...
Actually I have created a chat application is it possible to send data to particular client only?
...
I have a gridview that i would like to show or hide a text box based on the selected value of a dropdownlist on the same row.
My gridview:
<asp:GridView ID="GridViewUsers" runat="server" AutoGenerateColumns="False" CssClass="TableFramed">
<Columns>
<asp:TemplateField HeaderText="Type"...
I'm a desktop developer writing for internal users, so I'm not worried about malicious hackers, but I would like to know if there's anything they could enter when updating a value that would execute sql on the server.
The business defines their content schema and I have a CRUD application for them that doesn't have to be changed when th...
We have a windows service running under a network account that calls and runs an ActiveX exe. The exe is running under the local system account, not the network account of the service. Can anyone point me in the right direction for making the exe run under the network account?
...
When I try to compile my VB.NET web project, I get an error that reads:
[PropertyName] is not a member of '[Namespace.Class]'
The class referenced is part of a dll that the project references. The property definitely exists in the referenced class, and its access modifier is Public. What's more, if I update the reference, or just rem...
i am new to visual studio and sql server. I want to connect my vb.net application to sql server database on the same machine. what user can i use to connect sql server?
...
Hello,
I have a tabcontrol that creates tab pages from a "User Control" I created (a separate form in vb.net) using this code: (MainTab is the separate user control I created which has text boxes etc in it)
Dim tmpTab As New MainTab
myTabControl.TabPages.Add()
Dim tmpTabCount As Integer = myTabControl.TabPages.Count
myTabControl.TabPag...
Hi,
Could anybody advise me if we need to install ClickOnce application on client's computer, if we need to run a setup file made with ClickOnce?
Also, when we publish, how can we specify if we want to use ClickOnce or Windows installer?
Thanks
Furqan
...
Hi,
Could you kindly advise if we need to have .NetFrameWork Installed on Client's computer, if we make setup by using ClickOnce technology?
Thanks
...
I am using the following code to send an email with attachments. I can send one attachment but how can I send multiple attachments?
Dim vrAttachFilePath As String = "c:\users\ittahad\documents\abc.doc"
If vrAttachFilePath.Length > 0 Then
oMail.Attachments.Add(New Net.Mail.Attachment(vrAttachFilePath))
End If
...
Hi,
I How can I search a specific file using vb.net and store the path in a variable?
For example if I need to know where I have *.abc files in my entire computer, how can this be done?
Thanks
Furqan
...