Terminal service API Help

W

whitethomas12

Ok, I can get terminal services to work in VbScript, but when I add
reference to the Mstscax.dll
and add the following code, I get a blank screen (I am using ASP.NET
2.0 VB):

Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Dim RDP As MSTSCLib.IMsRdpClient2 = New
MSTSCLib.MsRdpClient2()

RDP.Server = "192.168.4.2"
RDP.UserName = "xxxx"
RDP.FullScreen = True
RDP.DesktopHeight = 300
RDP.DesktopWidth = 300
RDP.Connect()
End Sub

I am not sure what I am doing wrong. Can someone please help me on
this

Thank You
 
P

Peter Duniho

[...]
I am not sure what I am doing wrong. Can someone please help me on
this

I think the most obvious error here is posting VB code to a C# newsgroup.

ASP.NET questions are only marginally on-topic here in the first place,
and only inasmuch as someone might be using C#. If you're not using C#,
your question really belongs in a newsgroup that is actually specific to
your situation.

Pete
 
W

whitethomas12

[...]
I am not sure what I am doing wrong.  Can someone please help me on
this

I think the most obvious error here is posting VB code to a C# newsgroup.

ASP.NET questions are only marginally on-topic here in the first place,  
and only inasmuch as someone might be using C#.  If you're not using C#, 
your question really belongs in a newsgroup that is actually specific to  
your situation.

Pete

I tried to see if there was a VB.NET area and I cannot find it that
relates to terminal services. I did not know that people who know C#
take in great offence when a VB.NET person asks for their help. But
here is the C# code:

IMsRdpClient TSC = new MsRdpClient();
TSC.Server = "192.168.4.2";
TSC.UserName = "xxxx";
TSC.FullScreen = true;
TSC.DesktopHeight = 300;
TSC.DesktopWidth = 300;
TSC.Connect();

Any help will do, I am just trying to get this working and I am
stumped on the project

Thank you
 
D

DeveloperX

[...]
I am not sure what I am doing wrong.  Can someone please help me on
this
I think the most obvious error here is posting VB code to a C# newsgroup..
ASP.NET questions are only marginally on-topic here in the first place,  
and only inasmuch as someone might be using C#.  If you're not using C#,  
your question really belongs in a newsgroup that is actually specific to 
your situation.

I tried to see if there was a VB.NET area and I cannot find it that
relates to terminal services.  I did not know that people who know C#
take in great offence when a VB.NET person asks for their help. But
here is the C# code:

IMsRdpClient TSC = new MsRdpClient();
TSC.Server = "192.168.4.2";
TSC.UserName = "xxxx";
TSC.FullScreen = true;
TSC.DesktopHeight = 300;
TSC.DesktopWidth = 300;
TSC.Connect();

Any help will do, I am just trying to get this working and I am
stumped on the project

Thank you

Can't help with the problem, but you'll find the VB people over here:

http://groups.google.co.uk/group/microsoft.public.dotnet.languages.vb/topics?lnk=srg

It's not so much about taking offence, more to do with approaching the
right people. You wouldn't call a plumber if your car doesn't start,
so it seems logical you wouldn't ask a C# developer about VB issues.
There's a more esoteric issue which concerns netiquette. As in society
there are expected standards of behaviour. Google your problem first.
Provide enough source, preferably a complete but short program, even
if it doesn't work. Don't cross post. Don't post car questions in
plumber's groups. I'm not suggesting you broke all those rules, I'm
just giving you examples.

Best of luck with your problem.
 
W

whitethomas12

On Feb 7, 3:07 pm, "Peter Duniho" <[email protected]>
wrote:
[...]
I am not sure what I am doing wrong.  Can someone please help me on
this
I think the most obvious error here is posting VB code to a C# newsgroup.
ASP.NET questions are only marginally on-topic here in the first place,  
and only inasmuch as someone might be using C#.  If you're not usingC#,  
your question really belongs in a newsgroup that is actually specific to  
your situation.
Pete
I tried to see if there was a VB.NET area and I cannot find it that
relates to terminal services.  I did not know that people who know C#
take in great offence when a VB.NET person asks for their help. But
here is the C# code:
IMsRdpClient TSC = new MsRdpClient();
TSC.Server = "192.168.4.2";
TSC.UserName = "xxxx";
TSC.FullScreen = true;
TSC.DesktopHeight = 300;
TSC.DesktopWidth = 300;
TSC.Connect();
Any help will do, I am just trying to get this working and I am
stumped on the project
Thank you

Can't help with the problem, but you'll find the VB people over here:

http://groups.google.co.uk/group/microsoft.public.dotnet.languages.vb...

It's not so much about taking offence, more to do with approaching the
right people. You wouldn't call a plumber if your car doesn't start,
so it seems logical you wouldn't ask a C# developer about VB issues.
There's a more esoteric issue which concerns netiquette. As in society
there are expected standards of behaviour. Google your problem first.
Provide enough source, preferably a complete but short program, even
if it doesn't work. Don't cross post. Don't post car questions in
plumber's groups. I'm not suggesting you broke all those rules, I'm
just giving you examples.

Best of luck with your problem.- Hide quoted text -

- Show quoted text -

Well I understand, I was just fustrated that I cannot find my answers
on the web... it happens I guess

Take Care
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top