|
Me.WindowState = FormWindowState.Minimized
Me.WindowState = FormWindowState.Maximized
Chatura Dilan
|
|
|
|
|
thanks for help me.
suhail shahab
|
|
|
|
|
Please tell me the difference of...OLEDB vs SQLClient..which one is better and why?
Sujit
|
|
|
|
|
SQlClient
because it supports the backward compatibility.
|
|
|
|
|
OleDb is a generic interface, optimized to work with the greatest number of databases, albeit with limited support for the features of any database.
SqlClient only works with MS SQL Server and is optimized to work very efficiently with it.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Hi TO all,
How to Call Windows API Functions in VB.NET
Mohan Balal
|
|
|
|
|
www.pinvoke.net[^]
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
first u have to import
system.runtime.interopservices
then u have to declare the function which u want to use as
<dllimport("user32")> Public Function GetWindowLongA(ByVal hWnd As Long, _
ByVal nIndex As Long) As Long
End Function
for reference
http://www.freevbcode.com/ShowCode.Asp?ID=2707
|
|
|
|
|
Just an example??? here it is...
Import namespace InteropServices
Imports System.Runtime.InteropServices
declare function like...
Declare Auto Function sndPlaySound Lib "WINMM.DLL" (ByVal FileName As String, ByVal Options As Int32) As Int32
Tirtha
Miles to go before I sleep
|
|
|
|
|
I was discussing the difference between the vb6 and vb.net window application with my friend.
and i found only the limitation of .net compared to vb6 on the point of view of
1.Dotnet framework which has to
integrated before deploying to the
client end.
2.Heavy size of it's controls and thus take additional RAM during it's execution of programs which are based on .net framework.
as fara as the asp.net applications are concerned it is ok use .net.
isn't that???????????
|
|
|
|
|
1 - yes, that's true, but at least VB.NET can be mistaken for a real programming language. VB6 is a joke.
2 - Is that the case ?
As far as ASP.NET is concerned, there's not really anything better. Classic asp is a total disaster.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
ok
can u give me one or two advantages on .net as compared to vb6 so that i can decide......which language is good to do Window Aplications.Please take into mind the heavy .net framework platform and it's heavy controls.
|
|
|
|
|
Nilish wrote: Please take into mind the heavy .net framework platform and it's heavy controls.
ROTFL
Here's the bottom line. Microsoft has dropped all support for VB6. It's nasty, and it's never going to improve. Why anyone would even consider learning VB6 in 2007 is beyond me.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I was thinking of MSFlexGrid and DatagridView
I needed only datagource property of datagridview
and for that thing to happen , i am taking along all the properties of datagidview.
well i am on the verge of enhancing the MSFlexGrid with a datasource property.
and for these reasons i found vb6 pretty cool.
Isn't that?
|
|
|
|
|
Nilish wrote: I needed only datagource property of datagridview
and for that thing to happen , i am taking along all the properties of datagidview.
There are other data bound controls you can use, which are not as heavy.
Nilish wrote: and for these reasons i found vb6 pretty cool.
Isn't that?
No, VB6 is NOT cool, it's a disaster.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Nilish wrote: can u give me one or two advantages on .net as compared to vb6 so that i can decide
VB.NET is fully object oriented, while VB6 is a procedural language with minimal support for object orientation.
The .NET framework contains far more than the VB6 runtime library, that's why it's larger. The framework is included in newer versions of Windows, just as the VB6 runtime library is today.
---
single minded; short sighted; long gone;
|
|
|
|
|
Fully Object oriented ?
u mean implements multiple hybrid multilevel inheritance also?
|
|
|
|
|
I'll give you one major one - Microsoft has abandoned all support for VB6! Thankfully!
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Hi All,
I am sending a string from vb.net to powerpoint e.g. "This is going to be really #great# example".
In powerpoint how could i print all the text in a textbox with above string replacing any text between # to bold and rest normal. In my earlier post i have string manipulation code to pull of anything thats in between # but now i am not getting able to interpret it in powerpoint. it is somthing like
Microsoft.office.interop.powerpoint.slide.textrange.text = "String....."
if it contains # make it bold
Microsoft.office.interop.powerpoint.slide.textrange.font.bold = true
else
Microsoft.office.interop.powerpoint.slide.textrange.font.bold = false
end if
now its either making it all string bold or none and i am not getting able to make only text thats in # bold
please help.
|
|
|
|
|
What I a trying to do is Print a bunch of text which I get from a text file. I have been able to do that no problem but when I get to the end if there is to much text, I can't get it to go over onto anther page it either just ignores the rest or when it does actually print it it prints it over what I have already done on the same page. I have tried and tried on the e.hasmorepages and it does nothing for me when it actually does some what work it just goes and tries to print XXXX amount of pages instead of just like 2 or 3. I do save my spot of where I last printed on the last page, but it won't start a second page to start printing on that 1. can anyone Please Help Me? Here is a sample of my code, that is to determin when to stop. CurY is the Y location of the Printing Page. QNum is the Number of line so far I have Printed and TotCount is the number of lines I have left to Print
If CurY >= 1000 Then
Hault = True
e.HasMorePages = True
StoppedNum = QNum
End If
If QNum = TotCount Then
e.HasMorePages = False
End If
If there is a better way please let me know! I Thank You for your Time, and Patience!
It is always Coffee Time!
|
|
|
|
|
I've project in VB.net 2005
about: Transelation Programe
so >> I want a code advance and nice for the form output
or any thing nice
I lOve VB & C#
|
|
|
|
|
First, don't call anyone "lover", unless it's your girlfriend.
Next, ... This post doesn't make any sense at all. You might want to try explaining what you want to do and get someone to translate into English for you.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
If this guy isn't trolling, then who is ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I know. If it goes anywhere off-topic, if there's EVER a response , he'll get handled and abused like any other troll.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
I assume the troll noticed that Indians often call people 'dear', and decided to up the ante...
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|