|
What are the basic differences between VB.NET and Visual C#.Net. What are the advantages of knowing either of them? Where is the need to know both of them? I have just began VB.Net and is so much fun, but am tempted to stretch to C#, well time is the limit, but , is there a distinct need to know C# ot C++ when you know VB.Net?
|
|
|
|
|
if you work with VB.NET .. don't learn C#
this will be a waste of time
the basic differnce is the syntax .. If you love the vb syntax more ,, then you should use vb.net and vice versa
|
|
|
|
|
It doesn't hurt to know both. Knowing both makes you more marketable. You will find that the language of choice for any given company is usually set by someone else. So in knowing both... if you apply for a position doing .NET development it doesn't matter whether they use C# or VB.
Just my two cents...
Dan Morris
|
|
|
|
|
My $0.02:
If you're gonna be working with Microsoft Office (i.e. Automation), choose VB. I find that it is MUCH easier using VB than C#.
I like C# as I find more samples and help with C# than VB, however there's not much difference between C# and VB, though the VB Editor from MS is more quirky than the C# one.
I recommend you to learn both, as they are very similar and there are times when you want to create several projects in one solution written in different languages because it is easier to write some things in VB than C# and vice versa.
|
|
|
|
|
If it were me, then I'd defiately learn BOTH - and any other langs you can - no defeloper can get away with knowing only one language these days and still survive!
Another thing to look at would be which areas of the .NET framework particularly interest you - security / graphics / web. If you like a particular area, then maybe specialise in that area, but from all languages - security is always a particularly hot area, and pays real well.
The only caveat would be if you do settle on VB, then prepare yourself for lots of flak from C# / C / C++ devs for using a "kiddy language", or a "language for middle managers" etc....language snobbery is generally pointed at VB more than most lol
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
RichardGrimmer wrote:
The only caveat would be if you do settle on VB, then prepare yourself for lots of flak from C# / C / C++ devs for using a "kiddy language", or a "language for middle managers" etc....language snobbery is generally pointed at VB more than most lol
Hmm, are you thinking of any developers in particular?
Steve S
|
|
|
|
|
I'm trying to open a file of any type from an app built with VB6.
Does anybody know the code to open a file, so that the program associated with this file type starts?
[Maybe it's a stupid question, but i just don't know how to do this ]
Thanks in advance,
M_M_G
|
|
|
|
|
Short of shelling out and running "Start (the name of the file)" there are other api ways.
Tak a look here vbnet.mvps.org
|
|
|
|
|
Thx for your reply, but could you give a code example?
|
|
|
|
|
I always use ShellExecute:
<br />
'ShellExecute<br />
Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _<br />
(ByVal hwnd As Long, ByVal lpOperation As String, _<br />
ByVal lpFile As String, ByVal lpParameters As String, _<br />
ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long<br />
<br />
Public Const SW_NORMAL = 1 ' Displays the window normalised<br />
Public Const SW_SHOWMINIMIZED = 2 ' Displays the window minimised<br />
Public Const SW_SHOWMAXIMIZED = 3 ' Displays the window maximised<br />
Public Const SW_SHOWNOACTIVATE = 4 ' Displays the window normalised without focus<br />
Public Const SW_SHOW = 5 ' Activates a window at its current size<br />
Public Const SW_SHOWNA = 8 ' Displays the window at its current size without focus<br />
Public Const SW_SHOWDEFAULT = 10 ' Displays the window at its default size<br />
<br />
ShellExecute Me.hwnd, "Open", m_strFilename, "", "", SW_SHOWMAXIMIZED<br />
That should do everything you need!
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Many thanks!
The code is working great (with a few mods)!
|
|
|
|
|
M_M_G wrote:
with a few mods
What did you have to change? (Not having a dig, just curious!)
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
All the 'Public' stuff didn't work.
It also didn't work properly with the 'SW_SHOWMAXIMIZED' argument.
|
|
|
|
|
The 'Public' stuff works if you have the code fragment in a global BAS module, not inside a FRM file, AFAIR.
Not all apps honour the SW_SHOW* flags, and it is optional.
Steve S
|
|
|
|
|
Hi everyone i am new to this, I am a final yr student studying software engineering in my final year in the UK. For my final project I am doing a training program to teach beginners the basic of Word it will be in two lanuages English and Vietnamese. I have decided to use VB.NET to program, it is my first time using it.
Can any one give me help me on using (embedding into your exe) icons on your menu part, different languages if Vietnamese is an option for VB.NET. And what format should i use as files for forms to load up, for example if the forms loaded the help files as html etc. I having trouble cause my designed tutorials have pictures and text, i do not know how to get the forms to laod it or can someone suggest a suitable way around it. It will be a menu driven GUI based program.
|
|
|
|
|
Put aan imagelist control on your form and put the images inside the imagelist. You can use png, gif or jpeg. One thing the image size is limited so don't make the images too big.
|
|
|
|
|
I created a report in seagate crystal report 8.5. This report had a sub report It ran fine with the crystal report envirnment but when I added it in my project as a desighner(VB6) and then assigned a datasource on runtime this report didnt work and gave error on opening it "File not found".
If I remove the datasource assignment line from the code this report then starts working fine.It is confirmed that the datasource which I am assigning the report is ok. Anybody who knows solution for this problem plz reply.
Regards,
|
|
|
|
|
Plz can any one send me the code to add update delete records in vb.net datagrid .
|
|
|
|
|
Friends,
I think it would be better if I clear the supposed use of such a control.Here it is..
S.No. Account Name Credit Debit particulars
- - - - -
S.No. would come automatically and rest of the things would be supplied by the user.On hitting the enter key user will go to the next row(or we can say next S.No.).I want this in VB as I am using VB6.0 and Ms-Access.
Thanks.
Your Friend in need
Ranjan
|
|
|
|
|
I want a multiple row multiple column control in which user can type and on pressing enter user should go to the next line.I want to validate this data and after that all data is to be inserted in ms-access table or tables.How can I do this?
Thanks in advance.
Ranjan
|
|
|
|
|
Hi folks,
I have my application ready, can i know how to make a setup for the application, like Package and Deployment in VB6, how to do that in VB.Net.
Thanks for reading,
Be Humble in Victory and Strong in Defeat. -Het
|
|
|
|
|
Use the menu: File-->New-->Project...
Select "Setup and Deployment Projects" from the list on the left.
Choose "Setup Project" or "Setup Wizard" (the wizard might be easier if you've not done this before)
Give the project a name and Bob's your uncle.
If you use the wizard it will guide you on the more basic steps.
--Colin Mackay--
EuroCPian Spring 2004 Get Together[^]
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
|
|
|
|
|
Have a look at this
Its were I went to do mine
Ray
|
|
|
|
|
Hi,i would like to create a date that is automatic display when we would like to add a data in a VB form
Hi, i have create a program using VB6.The purpose of this program are for sales department person key in the data and then review by manager.Now, my problem is manager want me to create a command button to export the data from microsoft access to excel.What is the command button code and the step? Another Question,this program must set up in the office and all the staff can see and use this program at their own PC's!Thank for ur help!
|
|
|
|
|
I've spent a week on making COM+ ManagementTool displaying COM+ Catalog Infomation using COMAdminCatalogCollection.
Surly,I'm using VB.NET to do this job.
Most of infomation I'd like to
find was in COMAdminCatalogCollection.
But I couldn't find a way of retrieving imfomation of state of Object activated. I'd like to know how many Object is Activated as if I see the COM+ Management Tool provided in Windows 2003.
Please,Help me.
Any idea will be helpful.
|
|
|
|