|
Consider using API Viewer or API Guide for determining API calls from whatever the language.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
Hi guys,
I am writing a small VB.Net 2005 program that should connect to different databases at run time. I would like to include the windows/.net datasource configuration wizard in the system and get the connection string from the wizard control but I cant find control or way to achieve the goal, is it possible or maybe is there a workaround?
Thanks for you assistance.
|
|
|
|
|
Got the answer to my question
Add references of 2 assemblies, Microsoft.Data.ConnectionUI.dll and Microsoft.Data.ConnectionUI.Dialog.dll, located at C:\Program Files\Microsoft Visual Studio 8\Common7\IDE which by the way are not redistributable, then in code you have something like this...
Imports Microsoft.Data.ConnectionUI<br />
...<br />
<br />
...<br />
Dim myDataConnectionDialog As New DataConnectionDialog<br />
DataSource.AddStandardDataSources(myDataConnectionDialog)<br />
If DataConnectionDialog.Show(myDataConnectionDialog) = Windows.Forms.DialogResult.OK Then<br />
txtSourceConnection.Text = myDataConnectionDialog.ConnectionString<br />
End If
Thanks to all who cared to think about it
-- modified at 3:00 Thursday 6th September, 2007
|
|
|
|
|
That is good information to know! I have hear of people distributing connection strings by reading it from text file, XML file, INI file or a DSN file (.udl). I have to try your way. Thanks for the update.
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|
|
can any one help me to create an application and capable of adjusting Contrast & brightness In VB
i tried but i got problesms
i want picture to be streched to the size of a picture box
after that u can adjust brigh & contrast
pls send reply to my id :
jagdish_junjur@yahoo.co.in
jagdish_junjur@rediffmail.com
jagdish.junjur@gmail.com
jagdish
|
|
|
|
|
jackleela wrote: i tried but i got problesms
What problem you got? State it here so that we cna help you?
jackleela wrote: pls send reply to my id :
jagdish_junjur@yahoo.co.in
jagdish_junjur@rediffmail.com
jagdish.junjur@gmail.com
Who asked this did you notice there is an Email Link in that you will receive an email if someone answers it her in CP.
SSK.
|
|
|
|
|
I have developed an application in vb and have tried two ways of connectivity with oracle but none of them helped me.
once using the ADODC and A MSHgrid
second using an ODBC driver..
the error it shows is
"Test connection failed because of an error in initializing provider.[microsoft][ODBC]driver for [oracle](oracle)"
or it says
"error in initializing provider. The error from oracle cannot be retrieved."
Kindly Help.
|
|
|
|
|
Which VB? VB6, VB.NET 2002, 2003, 2005, ...?? Which version?
|
|
|
|
|
The application is in vb and the connectivity is through oracle 9i.
Cannot connect using adodc" microsoft oledb provider for oracle"
the steps i follow are as below:
1. set the ado data control on form, click to set the properties of Adodc.
2. Choose build for conn str, microsoft ole db for oracle.
3. the next click asks for the server name, the user name and pwd.
4. testing connection after feeding "scott/tiger", gives error, it says "Connection fails.error while initializing provider, the error could not be recovered from oracle".
5. Even if i set the server name to oracle9i , it doesnt work giving the same error.
|
|
|
|
|
Google for ODP.NET to get your hands on the Oracle Data Provider for .NET.
What you're using requires that you have the Oracle Client installed. The ODP.NET library doesn't require this.
|
|
|
|
|
Which property to use in order to ensure that atleast one option has been choosen before continuing to clicking a submit button?
Eg..
suppose i have a log in form, i have filled the userID, the password.Now i have a frame which has dept types as option buttons.No default value has been choosen. how do i ensure that atleast one option button is clicked before submitting the form.
|
|
|
|
|
What's the container holding the RadioButtons?? Is this a Windows Forms app or Web Forms??
I'm assuming this would be a Web Forms app, in which case, if you wanted this validated BEFORE the form is submitted, I believe you'd have to do the validation using client-side JavaScript code in the page.
I haven't done any ASP.NET development so I'm no expert. You might want to ask this in the ASP.NET forum for a second opinion.
|
|
|
|
|
i have developed it for a vb form.
it contains radiobuttons and no default has been choosen.
how do i validate now?
|
|
|
|
|
Well, there's something you're not telling me because if you put a bunch of RadioButtons in a container, the first one is always selected, automatically, even if your code sets its Checked value to False.
So I wondering what you did to get it to NOT be selected when you run your code.
But...
If (RadioButton1.Checked Or RadioButton2.Checked Or RadioButton3.Checked) Then
' Something got selected...
Else
' Something did NOT get selected
End If
|
|
|
|
|
Hi
I tried to use http://www.codeproject.com/cs/miscctrl/winwordcontrol.asp control on my form. it worked very good but only the first time open the form. but when i close this form and then reopen it, it does not load the word application and an error
The RPC Server is unavailable. (Exception from HRESULT: 0x800706BA).
Please help me if someone has any option.
Salman Sheikh
|
|
|
|
|
Have you gone through the FAQ located at the following link?
Clickety
SSK.
|
|
|
|
|
I couldn't find relevant help in that
Salman Sheikh
|
|
|
|
|
I don't know how it is linked to Word but try the following:
Troubleshooting "RPC Server is Unavailable" in Windows
RESOLUTION
To resolve this issue, follow these steps: 1. Click Start, click Run, type the following line in the Open box, and then click OK:
net start rpcss
Test to see if this resolves the issue. If the issue still occurs, continue to the next step.
2. Click Start, point to Programs, point to Accessories,and then click Command Prompt.
3. At the command prompt, type ping servername, where servername is the server, NetBIOS, DNS, or GUID name that you want to test for connectivity.
If there is a connection issue with one of these computers, contact your network administrator to resolve the issue. If the issue still occurs, continue to the next step.
4. Use the Netdiag tool that is included in the Microsoft Windows Support Tools (included on the Windows CD-ROMs) to determine if the domain controller is working correctly. You can perform a network trace using the MSRPC, DNS, NBT, LDAP, or TCP protocols.
If there is an issue with the domain controller, contact your network administrator to resolve the issue. If the issue still occurs, continue to the next step.
5. Use the Netdom tool that is included in the Windows Support Tools to verify network trust relationships and reset or establish a connection to a server.
Shay Noy
|
|
|
|
|
This is probably caused because your code didn't shutdown and free up the Word object when you closed your application the first time.
|
|
|
|
|
|
Great and all, but I don't he's running Word remotely over DCOM.
|
|
|
|
|
Thank you Deepak
I tried the hotfix provided by microsoft but it didn't fixed the problem. but finally i found the solution which is
object = nothing does not release the com resources properly so instead of using this way i used
Marshal.ReleaseCOMObject(object) (.net version 1.1)
Marshal.FinalReleaseComObject(oApp) (.net Version 2.0)
a very helpful article is available at following link
http://www.xtremevbtalk.com/showthread.php?t=160433
please consult
Salman Sheikh
|
|
|
|
|
I am using Crystal Reports in my application I made using Visual Studio.NET.
I installed my application on the client machine, with all the DLLs
required(added the merge modules), the engine and the rest. When I start my
application and, from it, try to open up a report I get an exception "Query
engine error: C:\WINDOWS\Temp\temp_*******.rpt" with some wierd numbers
instead of *******. Can anyone tell me what the problem is here and how to
solve it. I am running the application on Windows 98.
-- modified at 7:48 Thursday 27th September, 2007
|
|
|
|
|
Hello All,
Well i am working with collections in the project.
I have set the datasource property of the datagrid to a collection (I am not using dataset just the collection).
I am unable to format the datagrid using the tablestyles.
Would anyone please help me in formating the datagrid (using tablestyles) when the datasource property is set to a collection.
Thanks in advance,
P.S - I am unable to set the mappingname property in the tablestyle to collection.
if you send a mail at gokhale.i1@gmail.com in response to this query it would be better...
|
|
|
|
|
Sachin Gokhale wrote: gokhale.i1@gmail.com
Marked as Spam.
SSK.
|
|
|
|