473,404 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Can't convert VB.NET code to C#

I have the following few lines of code that run just fine in my VB.NET Web
app. But I can't seem to write equivalent code that will run in a C# Win
app. I even tried a couple of those "code converter" websites out there and
they didn't seem to help. Can anyone offer any assistance?

Dim tscontainer

Dim ts

Dim tr

tscontainer = CreateObject("BDATuner.SystemTuningSpaces")

ts = tscontainer("Cable")

tr = ts.CreateTuneRequest

tr.Channel = 3

MSVidCtl.View(tr)

MSVidCtl.Run()

Thanks in advance very much,

Ron

P.S. MSVidCtl is simply my ActiveX Video Control that exists on the form.
May 23 '06 #1
3 2784
this looks like classic asp, not asp.net or VB.net
--
Andrew Robinson
http://blog.binaryocean.com
"Ronald S. Cook" <rc***@westinis.com> wrote in message
news:eN****************@TK2MSFTNGP03.phx.gbl...
I have the following few lines of code that run just fine in my VB.NET Web
app. But I can't seem to write equivalent code that will run in a C# Win
app. I even tried a couple of those "code converter" websites out there
and they didn't seem to help. Can anyone offer any assistance?

Dim tscontainer

Dim ts

Dim tr

tscontainer = CreateObject("BDATuner.SystemTuningSpaces")

ts = tscontainer("Cable")

tr = ts.CreateTuneRequest

tr.Channel = 3

MSVidCtl.View(tr)

MSVidCtl.Run()

Thanks in advance very much,

Ron

P.S. MSVidCtl is simply my ActiveX Video Control that exists on the form.

May 23 '06 #2
Perhep you may want to try it out:
http://www.c-sharpcorner.com/1/call_com.asp

"Ronald S. Cook" <rc***@westinis.com> ¼¶¼g©ó¶l¥ó·s»D:eN****************@TK2MSFTNGP03.phx .gbl...
I have the following few lines of code that run just fine in my VB.NET Web
app. But I can't seem to write equivalent code that will run in a C# Win
app. I even tried a couple of those "code converter" websites out there
and they didn't seem to help. Can anyone offer any assistance?

Dim tscontainer

Dim ts

Dim tr

tscontainer = CreateObject("BDATuner.SystemTuningSpaces")

ts = tscontainer("Cable")

tr = ts.CreateTuneRequest

tr.Channel = 3

MSVidCtl.View(tr)

MSVidCtl.Run()

Thanks in advance very much,

Ron

P.S. MSVidCtl is simply my ActiveX Video Control that exists on the form.

May 23 '06 #3
sir i have a tool that convert vb.net code into c#.net .if u want to
take a look so please mail me on ashish18822sify.com. so that i can
attached it on ur mail id

Ashish KR. srivastava

May 23 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Logan X via .NET 247 | last post by:
It's official....Convert blows. I ran a number of tests converting a double to an integer usingboth Convert & CType. I *ASSUMED* that CType would piggy-back ontop of Convert, and that performance...
10
by: Christopher H. Laco | last post by:
Long story longer. I need to get web user input into a backend system that a) only grocks single byte encoding, b) expectes the data transer to be 1 bytes = 1 character, and c) uses the HP Roman-6...
3
by: Convert TextBox.Text to Int32 Problem | last post by:
Need a little help here. I saw some related posts, so here goes... I have some textboxes which are designed for the user to enter a integer value. In "old school C" we just used the atoi function...
3
by: Thubaiti | last post by:
Hi, I have this code in my ASP.NET and I want to convert it to C# (code behind) <asp:Repeater id="subCategoryRepeater" runat="server"> <ItemTemplate> <ul> <li> <asp:HyperLink...
9
by: charliewest | last post by:
Hello - I have images saved in my SQL SERVER 2000 database. Using ASP.NET (C#) is there any way to temporarily save an image to a session object, and after running some other operations, later...
7
by: patang | last post by:
I want to convert amount to words. Is there any funciton available? Example: $230.30 Two Hundred Thirty Dollars and 30/100
6
by: patang | last post by:
Could someone please tell me where am I supposed to put this code. Actually my project has two forms. I created a new module and have put the following code sent by someone. All the function...
88
by: Peter Olcott | last post by:
Cab you write code directly in the Common Intermediate language? I need to optimize a critical real-time function.
11
by: jyck91 | last post by:
// Base Conversion // Aim: This program is to convert an inputted number // from base M into base N. Display the converted // number in base N. #include <stdio.h> #include <stdlib.h>...
2
by: desinerd | last post by:
Hi All. I am using a GridView to List contacts linked to a logged in User. I can successfully bind the Gridview with a DataTable. And the values in the GridView are correctly displayed. I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.