|
rwestgraham wrote:
Now, in terms of true flaws of VB6: many inconsistencies in the GUI controls properties and implementations.
No, I don't count that as a major flaw of VB6/VB.NET, at least my lengthy list did not include this, or anything about inheritance.
rwestgraham wrote:
Tab Page Visible property has no effect
Really ? I'm sure it worked for me when I used tab pages in a C# application.
rwestgraham wrote:
Compare to the VS.NET Setup: Windows Installer supports features, which are an important part of a multi-component complex professional install. But VS NET Setups do not support their implementation. Everything still gets lumped into a single "feature", just like with thew old P&D package. Brilliant! Just Brilliant!
I have no time for the built in Windows Installer implimentation, it's early days and bare bones ( in VC6, they gave us a pared down version of InstallShield, from memory ). I have bought and use a 3rd party installer product ( advanced installer, FWIW )
rwestgraham wrote:
Biggest by far is startup time. Even with native images.
That's mostly the framework starting for the first time. I don't see how this is a big problem, to be honest. So your user has to wait a second for a splash screen. If you wanted speed, what were you doing in VB6 ? That's what C++ is for.
rwestgraham wrote:
I assume you consider short term as "soon".
*grin* Probably when either a killer .NET app comes along, or the version of Windows after XP is widely installed, or Microsoft include it in a service pack that has some other compelling reason for people to download.
rwestgraham wrote:
There is an entire group on this forum dedicated to problems with the NET IDE.
Yeah, but how often do people post to it ? The VS.NET IDE rarely crashes for me, and that only on a machine I know to be unstable. Even then, it doesn't crash, it simply fails to kill the process it's meant to be debugging, and freezes. I kill and restart, and it's fine.
rwestgraham wrote:
But a sh*tty IDE does not exactly make me tend to believe the framework stability is rock solid.
The IDE certainly does some things I hate, for example the time it takes to decide what errors to show me when it finishes compiling. But I regard it as stable.
rwestgraham wrote:
Well, I see a lot of people who really love to hate Vb6. The same people generally rant and rave about NET being better. Sorry. I think it's based on personal basis more than anything. I want proof. Show me the money ...
To be honest, my claim is that VB is crap, full stop, and that C# is better. So I can't really help you
It sounds like you're in the 5% of VB users who are also programmers though. Why did you move to VB.NET instead of C# ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Christian Graus wrote:
To be honest, my claim is that VB is crap, full stop, and that C# is better. So I can't really help you
In what way? At least in terms of NET, which is the only valid comparison. No point in comparing VB6 to C#.
How is VB.NET crap compared to C#? Specific examples.
After all, when all is said and done, the code that actually runs is identical. CLR remember?
Christian Graus wrote:
It sounds like you're in the 5% of VB users who are also programmers though. Why did you move to VB.NET instead of C# ?
What significent capabilities does C# provide that VB does not? C# does not come close to C++. If I need power I use C++. If I need convenience I use VB. Actually I see little difference other than syntax. If you like braces, use C#.
I think people that think C# is world's better than VB.NET just have a thing about the letters "VB".
What's the real difference that makes you think C# is great and VB.NET is crap?
Robert
|
|
|
|
|
Christian Graus wrote:
See - deep down, you DO know.
Yes, I suppose I do.
Christian Graus wrote:
BTW - did you ever respond to my comments to your post about VB.NET in the soapbox ? I was genuinely interested in your reply to my comments.
I didn't reply ... If you want, I could send you an email with my thoughts.
Programmer2k4
My sig:
"And it is a professional faux pas to pay someone else to destroy your computer when you are perfectly capable of destroying it yourself." - Roger Wright
I now use my CodeProject Blog!
Most recent blog post: April 3
|
|
|
|
|
I have a combo box in my form that take values from the other table in the database on form load.
On the Click Property of the Save Button i have put the code to clear the values of all text boxes and Combo Box after saving the data.
I used the following code to clear the combo box:
cboname.listindex = -1
The style of the combo box is set to 2-dropdown.
The data is saved to the database correctly but after that while clearing the text in the combo box it gives the Run Time Error No. 381 i.e. Invalid Property Array Index.
Can any body please tell me that what code should i do to clear those values in the combo box???
|
|
|
|
|
Hi All,
Am getting an Error like for the below code when i try to perform ExecuteNonquery()
strSql = "Insert into StudentTransaction(Id,AdmissionNo,ClassName,SectionName,RollNo,Year) Values ('" & txtId.Text & "' ,'" & cmbAdmissionNo.SelectedItem & "','" & cmbClassName.SelectedItem & "','" & cmbSectionName.SelectedItem & "','" & txtRollNo.Text & "','" & cmbYear.SelectedItem & "')"
Error:
Syntax Error in INSERT INTO statement at .....
The Same Query when i run in sqlplus its working fine.What's the problem with this..
can anyone help me
Thanks in advance.
|
|
|
|
|
The statement you used in SQLPlus is not identical to the statement your generating using string concatenation. A practice which, BTW, is frowned upon with great predjudice here at CP. You've opened yourself up to SQL Injection attacks using this method. You've also robbed yourself of the wonders of having SqlParameter objects check your values and convert them to the appropriate format for you, automatically. But if you want to give yourself more work, like this problem your having, that's fine us too.
But, if you want to do it the right way from the start, look into parameterized queries. You'll save yourself alot of hassel in the future and it's what real companies expect of your code.
Now, back to your problem. You might want to dump that string to the Output window before you execute it so you can see EXACTLY what your trying to have SQL execute for you.
strSql = "Inset into StudentTransaction(..."
Debug.WriteLine(strSql)
...whatever code you have next, set a breakpoint on this line
then look in the Output window of the IDE to see the
SQL statement your code actually built.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
I have a problem in Visual Basic 6.0:
I have created 2 textboxes and 2 timers. I have set the interval for one timer as 1 and the interval for the other timer as 1000. I am using 2 counters, one in each timer and displaying the value of each counter in the 2 different textboxes. Each counter is increased by 1 whenever the corresponding timer event is executed.
Therefore when the second textbox displays the value 1 (i.e when the timer with interval 1000 is executed once), the value in the first textbox must be 1000 (since the first timer interval is 1).
But this is not happening. The first textbox displays a value less than 100. What could be the problem?
Here is the code:
General declarations:
Dim ctr1, ctr2 As Integer
Private Sub Form_Load()
ctr1 = 0
ctr2=0
End Sub
Private Sub Timer1_Timer()
ctr1 = ctr1 + 1
Text1.Text = ctr1
End Sub
Private Sub Timer2_Timer()
ctr2 = ctr2 + 1
Text2.Text = ctr2
End Sub
-----------------------------------------------------------------------------
Interval of timer1 is 1 and interval of timer2 is 1000 and both are enabled by default.
|
|
|
|
|
You'll never to get this to work that way you think it should.
The Timers send their Tick events into the Form's message pump, they don't call the functions directly. Also, the timers don't really have a resolution of 1 millisecond. You can get 1000 tick events out of your first timers, but it'll take greater than one second to execute them all while updating the text in the TextBox. This is because when you update the TextBox, you're also injecting WM_PAINT messages into the Form's message queue, between Tick events for the timer. Starting to see why your now getting 1 millisecond performance yet? It takes greater than 1 millisecond to repaint the invalidated regions of the form and it's controls. So, now that you've repainted the form between the Tick event at 1 millisecond and the tick event at 2 milliseconds, you've actually used up about 10 milliseconds updating and repainting the form.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am working on a program in VB.Net which reads and send SMS via a modem (Brand is iTegno) which has a normal mobile phone SIM card. Sending and reading of SMS in English is working.
Receiving SMS with Chinese text is also solved by decoding the text received. However, I have not been able to send SMS in Chinese. My research on this issue reveals that I have to sent the SMS in PDU format. I managed to go as far as sending(using AT commands) the message length. I get a response Invalid PDU parameters on sending the message. Would appreciate if someone can identify what is causing the error. Here is what my program is doing:-
Step #1
Send command "AT+CMGF=0" + chr(13) 'to indicate PDU format
Gets a repsonse "OK"
Step #2
Send command "AT+CMGS=16" + chr(13)
Gets a repsonse ">"
Notes:
16 is the length from 11|00|0B|91|06|21|13|69|16|F7|00|08|AA|02|4E|2D sent in Step #3
Step #3
Send a string containing the hexadecimal values
11|00|0B|91|06|21|13|69|16|F7|00|08|AA|02|4E|2D + chr(26)
Gets a repsonse ""+CMS ERROR: 304".
304 is error code for Invalid PDU mode parameter
Notes:
00|11|00
SMSC Center Address | Message Flag | Message Reference Number
0B|91|06|21|13|69|16|F7 – Destination Address
11 Digits | International Number | Phone Number 60123196617
00|08|AA
Protocol identifier | Data Coding Scheme(Chinese UCS2) | Validitity Period
02|4E|2D – User Data
2 pairs | Message '中'
bgm2291
|
|
|
|
|
It looks like you need to be Googling for this. So far, I don't see a VB.NET question in your post.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
iTegno has a developers contact at this email address: developers@itegno.com
|
|
|
|
|
Hello,
Please tell me how to check whether the wav file is in the PCM format or in some other format using visual Basic.
Thank u
goood
|
|
|
|
|
http://www.vbaccelerator.com/home/VB/Code/vbMedia/Audio/WAV_File_Viewer/article.asp
|
|
|
|
|
Hello everybody !
I am making a class, in these class I want to Inhertit DataColumnCollection Class but it's giving some error on inherit.
Error:-
Class must declare a 'Sub New' because its base class 'DataColumnCollection' does not have an accessible 'Sub New' that can be called with no arguments.
pkc
|
|
|
|
|
I have developed an account system. and when i deploy it a message appeared "Some files are out of date". i just countinued but on target mechine a message appeared "Some files are out of date do you want to update them click yes to restart" i did and after loading windows again when i started setup.exe again same message appeared again so i am still unable to install that application . Target plate form is Microsoft Windows 98.
Salman Sheikh
|
|
|
|
|
hello, how can i add a SWF file to a form without importing it as a picture
|
|
|
|
|
You'll have to add a Reference to the Flash Player COM control, add it to the ToolBox, then drop one on your form. I'm not really familiar with it past that though.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
can anybody suggest me a way to build a trial version of a progrm using code?
samitha
|
|
|
|
|
Hi,
I try to upload DBGrid in localhost (Windows Server), i use Tomcat 5 and it's running well, but when i uploaded the DBGrid project in IP Public, it's an error :unable to load tag handler class "com.freeware.gridtag.DBGrid" for tag "grd:dbgrid"
Notes: i use Linux server in IP public.
please give me the solution ASAP.
|
|
|
|
|
First off, we don't support third party controls here. Considering there's thousands of them out there, it's impossible for us to know every single one.
Second, you haven't supplied any of your code showing what your doing (or not doing). Without that, there's little we can do to help you.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How to dynamically add tab and picture control as a pair?
I tried something like the following. but it didn't show
each picture control on each tab.
For i = 1 To 5
Load Picture1(i)
Load TabStrip1(i)
Picture1(i).Visible = True
Picture1(i).Left = Picture1(i).Left + 100
tab
Next i
how can i achieve this.
I am using vb6
|
|
|
|
|
My VB6 is pretty rusty, but here goes...
Load only loads forms, not controls. What you have to do is create a new instance of the control you want, then add it to the Controls collection of the form/control you want to host the new control.
In your case, you want to make a new Tab, not a TabStrip, add it to the TabStrip's Tabs collection.
Dim newTab As New Tab
newTab.Name = "Tab3"
newTab.Caption = "My New Tab"
TabStrip1.Tabs.Add(newTab)
Adding the PictureBox control is done just about the same way.
Dim newPicBox As New PictureBox
newPicBox.Width = ...
newPicBox.Height = ...
newPicBox.Left = ...
newPicBox.Top = ...
newPicBox.Name = "PictureBox3"
Form1.Controls.Add(newPicBox)
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am working on a web application project where i need to uplaod many pdf/doc files onto the webserver and download those files when the user clicks the corresponding hyperlink.
I used the following code to upload the file, where MyFile is the html file input control.
If Not MyFile.PostedFile Is Nothing And MyFile.PostedFile.ContentLength > 0 Then
Dim fn As String = System.IO.Path.GetFileName(MyFile.PostedFile.FileName)
Dim SaveLocation As String = Server.MapPath("Articles") & "\" & fn
Try
MyFile.PostedFile.SaveAs(SaveLocation)
Response.Write("The file has been uploaded.")
Catch Exc As Exception
Response.Write("Error: " & Exc.Message)
End Try
Else
Response.Write("Please select a file to upload.")
End If
but it doesn't write it on the server( i need to load this onto my school's web sever.)
How do i download this file? If possible, how can i disable the save button on the pdf fiels when the user downloads the file.
I am using asp.net and vb.net , if anybody can help me write a code to this project it will highly appreciated.
|
|
|
|
|
Your question really belongs in the ASP.NET[^] Forum. It doesn't have anything to do with VB, even though your wrote in VB.
Also, you haven't supplied any error messages or exceptions that are thrown. The most common things to check is if the servers ASPNET account (or whatever account your application is running under) has the permissions to write a file to whatever path your trying to save this file to. By default, it doesn't have this permission.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|