|
Theres more than a few examples out there. All you have to do is Google for "vb.net bluetooth"[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
-- modified at 13:11 Thursday 6th April, 2006
|
|
|
|
|
Hi,
In Tab control, I have set property Drawmode=OwnerDrawFixed while Xp Style Look is removed in vs.net2005. I have tried to use Application.EnableVisualStyles but that doesn't change in Tab Control.
I have used Skybound Component through its working fine.
But my requirement is not used any third party control. so without use any third party i need to get the XP Style Look in Tab control.
If anybody aware then please shares the code....
|
|
|
|
|
Your question is a little confusing. You set the DrawMode of the Tab control to OwnerDrawFixed??? If this is the case, then you're responsible for supply the drawing code to draw the Tabs in the DrawItem event of the TabControl. XP Themes won't show in this mode. If you want XP Themes, you'll have to set the DrawMode back to Normal.
And "XP Style Look", as you call it, is not removed from VS.NET 2005. Double-click the My Project line in the Solution Explorer, on the Application tab, you'll see a checkbox for "Enable XP visual styles". This checkbox will be available if you check the "Enable application framework" box.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi Dave,
Thanks for the help,
i have found the solution......
please see this link "http://www.codeproject.com/useritems/Pankaj_Patel.asp"
|
|
|
|
|
Okey dokey, lads and ladys. I have SQL server installed finally, so as i can easily intgegrate databases and Visual Studio 2005.... now... when i try to import a Access Database into VB.net 05, it errors... i tried importing the NorthWind sample DB, and it works fine... i noticed it said it was Acess 2000 format... does 2003 work with '05, or shoudl i switch back to 2000? if anyone else has had this problem, or uses 2003 office, please help me.
"Love, Life and Option Explicit"
|
|
|
|
|
Have you tried the Upsizing Wizard in Access?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
it exported to a sql server, but vs2005 still wont recognize it
"Love, Life and Option Explicit"
|
|
|
|
|
What do you mean by this???
If it's a successfully converted database on the server, there's nothing stopping you from seeing it. Unless......your ID doesn't have the permissions to see it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I need a uButton.ocx was used by VB.NET
Help me
|
|
|
|
|
What are you after ? Where did the ocx come from ? What makes you sure it exists, when you don't have it ( I'm sure it does, just looking for more info )
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Nothing by that name comes with VB.NET or the .NET Framework. This has to be a third party control. You might want to try a little Google search for ubutton[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I have a VB.NET Application that consumes a webMethods web service. This web service is called over https. I can successfully call the web service in all instances (dev, test, prod, & dr) on my development machine. When I try to deploy the exe (this is the only thing created in the bin directory) to other machines I am getting the following error:
The underlying connection was closed: Could not establish secure channel for SSL/TLS. Inner Exception: The function completed successfully, but must be called again to complete the context
I have installed all the certs on the non development machines, but still receive this error.
Is this a deployment issue?
Is this a certificate issue?
Can anyone point me in the right direction to fix this problem?
Thanks in Advance.
Mike
|
|
|
|
|
|
Well, I haven't done anything with secured WebServices yet, but my first guess would be that your not supplying a correct Certificate. You might also be missing the CA's certificate. Can you test the web service methods directly out of IE on these machines?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I finally got some time do to more testing. I was able to pull these sites up uinsg internet explorer.
But I noticed the following which seems odd.
On Windows 2000 machine I can call my development instance (no security or certs)
On XP SP1 at work the same code gives an 503 Internet Error Service Unavailable
On XP SP2 at home (logged in using VPN) code works fine.
This is really going to become a problem, since they are upgrading my machine at work and I might not be able to test any longer from my testing tool. To make matters worse I am moving to a different position and would like to have this working before I move (If I could only find the time).
Any ideas? My development Web Service runs on port 5595 on a webMethods Integration Server. If my company has shut down communication of port 5595 for XP machines I shouldn't be able to get there from IE, right?
Mike Lasseter
|
|
|
|
|
mr_12345 wrote: If my company has shut down communication of port 5595 for XP machines I shouldn't be able to get there from IE, right?
Correct, but it wouldn't make any difference which O/S your machine is running. After that, I'm not real clear on what machine is where and on what machine the web service is running and where that is.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
OK. Let me try to make it clearer.
Web Service runs on webMethods B2B Integration Server on port 5595. Call it eai2:5595. This box does not need any certs to connect to it.
Client (Win2000) Calling web service on eai2:5595 works with out a problem.
Client (XP SP 1) Calling web service on eai2:5595 gives me the following error:
The request failed with HTTP status 503: Service Unavailable.
Client (XP SP 2) Calling web service on eai2:5595 gives me the following error: Request for the permission of type System.Net.WebPermission .... failed
Hope this helps.
Mike Lasseter
|
|
|
|
|
Dave,
I got the problem figured out. The problem was in the machine.config file. The proxy setting on the XP SP1 machines <proxy usesystemdefault=""> was set to true. I changed it to default and it now works. I also installed the certs on the XP SP1 machine for connecting to test, prod, and dr. And all calls work like a champ.
Thanks for your help.
Mike Lasseter
|
|
|
|
|
I have created a .class file by using java. I can execute it in the command prompt.
like this
E:\Pro Languages\Java\Test1>set path = D:\Program Files\Java\jdk1.5.0_06
E:\Pro Languages\Java\Test1>java MyApp
I expect to create a small & simple EXE file, to implement above commands. I do not like to use VB.Net because I have to install .Net framework to computers which have java only. Therefore, I decided to use VB6.
I have three questions.
1. How to implement above commands by using VB6
2. Do I need to install VB6 to computers (which do not have VB6), before executing that simple EXE file
3. Are there any other ways to do it
Never mind, if you can answer atleast one question
Thank You,
Regards,
Chatura Dilan
If at first you don't succeed, try; try again, so that you know
what not to do the next time. The answer is out there.
|
|
|
|
|
Does VB6 offer ShellExecute ? Why don't you use C++ ? Then you can just call ShellExecute and be done with it.
If all you want to do is run the app, a batch file is another solution.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Yes,VB6 offers ShellExecute. I have no idea about ShellExecute. Here is an example which I found in MSDN.
Clicking the command1, but I can go to URL with the default web browser. I need your support to change it according to my question.
Private Declare Function ShellExecute _<br />
Lib "shell32.dll" _<br />
Alias "ShellExecuteA" ( _<br />
ByVal hwnd As Long, _<br />
ByVal lpOperation As String, _<br />
ByVal lpFile As String, _<br />
ByVal lpParameters As String, _<br />
ByVal lpDirectory As String, _<br />
ByVal nShowCmd As Long) _<br />
As Long<br />
<br />
Private Sub Command1_Click()<br />
Dim r As Long<br />
r = ShellExecute(0, "open", "http://www.microsoft.com", 0, 0, 1)<br />
End Sub
Regards,
Chatura Dilan
If at first you don't succeed, try; try again, so that you know
what not to do the next time. The answer is out there.
|
|
|
|
|
Batch file works well,
but I cannot assign an icon to the batch file.
Therefore I run the batch file by creating an EXE file, like this
Private Declare Function ShellExecute _<br />
Lib "shell32.dll" _<br />
Alias "ShellExecuteA" ( _<br />
ByVal hwnd As Long, _<br />
ByVal lpOperation As String, _<br />
ByVal lpFile As String, _<br />
ByVal lpParameters As String, _<br />
ByVal lpDirectory As String, _<br />
ByVal nShowCmd As Long) _<br />
As Long<br />
<br />
Private Sub Form_Load()<br />
Dim r As Long<br />
r = ShellExecute(0, "open", "E:\Pro Languages\Java\Test1\MyApp.bat", 0, 0, 1)<br />
End<br />
End Sub
Is there a way to execute the command by using EXE file only (without the batch file)?
Regards,
Chatura Dilan
If at first you don't succeed, try; try again, so that you know
what not to do the next time. The answer is out there.
|
|
|
|
|
Take the commands out of the batch file and put them in your VB calls to shellexecute.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I tried this,
Private Declare Function ShellExecute _<br />
Lib "shell32.dll" _<br />
Alias "ShellExecuteA" ( _<br />
ByVal hwnd As Long, _<br />
ByVal lpOperation As String, _<br />
ByVal lpFile As String, _<br />
ByVal lpParameters As String, _<br />
ByVal lpDirectory As String, _<br />
ByVal nShowCmd As Long) _<br />
As Long<br />
<br />
<br />
Private Sub Form_Load()<br />
Dim r As Long<br />
r = ShellExecute(0, "open", "set path = D:\program Files\Java\jdk1.5.0_06", 0, 0, 1)<br />
r = ShellExecute(0, "open", "java MyApp", 0, 0, 1)<br />
End<br />
End Sub
But it doesn’t work. Can you change it?
Regards,
Chatura Dilan
If at first you don't succeed, try; try again, so that you know
what not to do the next time. The answer is out there.
|
|
|
|
|
You don't need all that junk. VB6 has it's own built-in Shell function. Also, if you're only running this on NT kernel machines, you can also put all your command-line statements together and run them all at once like this:
C:\>SET PATH=D:\Program Files\Java\jdk1.5.0_06 & Java MyApp
Soooo, you can do this in one or two lines:
Dim commandLine As String
commandLine = "CMD /K ""SET PATH=D:\Program Files\Java\jdk1.5.0_06 & JAVA MyApp"""
' The vbHide option (0) should hide the command window and show only your Java app
Shell(commandLine, vbHide)
I can't test this code because I haven't had VB6 installed anywhere for the last, oh, 4 years at least. But, I can tell you that any machine you put this on will require the VB6 Runtime[^] in order to run.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|