|
When start debugging in VB 2008,an error appear in a Sub although I still don't call this Sub.
Is VB 2008 compile all code in the class before Form is shown?
|
|
|
|
|
Clean the solution and rebuild the entire thing.
|
|
|
|
|
Hi,
I am trying to read a .txt file in vb6,
i have the following code
Private Sub Command1_Click()
' Get a free file number
nFileNum = FreeFile
' Open a text file for input. inputbox returns the path to read the file
Open "C:\Documents and Settings\Sudeep\My Documents\3.txt" For Input As nFileNum
lLineCount = 1
' Read the contents of the file
Do While Not EOF(nFileNum)
Line Input #nFileNum, sNextLine
'do something with it
'add line numbers to it, in this case!
sNextLine = sNextLine & vbCrLf
sText = sText & sNextLine
Loop
Text1.Text = sText
' Close the file
Close nFileNum
End Sub
this works however i seem to be missing one little thing.
I want to make the contents held in the .txt file to go on the text box horizontally. At the moment all the text seems to be in one massive line.
I have tried adding vbnewline, however that doesn't seem to do much, so i have resorted to some expert help.
Many thanks
Dan
|
|
|
|
|
|
The Textbox controls I know in .NET have a property "Multiline" that must be set true for it to accept multi-line text. I guess in your VB6 world there must be something similar.
|
|
|
|
|
awsome thanks got it working.
|
|
|
|
|
Can anyone tell me what happen when i do following code?
SqlCommandBuilder1 = New SqlCommandBuilder(SqlDataAdapter1)
SqlCommand1.CommandText = "select * from phieumuonsach "
SqlDataAdapter1.InsertCommand = SqlCommandBuilder1.GetInsertCommand
SqlDataAdapter1.Update(DataSet1, "phieumuon")
|
|
|
|
|
Not enough information to answer the question with any meaning.
But, it looks like it's supposed to update the backing database with any changes in the phieumuon table in DataSet1.
|
|
|
|
|
First of all this is incorrect it seems that you don't know what you are doing there.
First what are you trying to Achieve here
SqlCommandBuilder1 = New SqlCommandBuilder(SqlDataAdapter1)
Does not make sense. Secondly you came up with this
SqlCommand1.CommandText = "select * from phieumuonsach "
This means you are telling your command object that you never declared that you will be using that SQl statement. and what kind of Command object is that (i dont know you did not state it)
thirdly cam up with this
SqlDataAdapter1.InsertCommand = SqlCommandBuilder1.GetInsertCommand
Here you are trying to tell the Adapter that you are going to use which Command for Insert. a bad way of doing it.
lastly
SqlDataAdapter1.Update(DataSet1, "phieumuon")
Here you are Updating the Dataset called "Dataset1" and that has a Datatable named "phieumuon"
if this is a Complete code then it will not compile because it does not make sense
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
I need certain source codes for Web Based College Mangt Systems in JavaFX. I need as early as possible.
Renuka
modified on Friday, December 18, 2009 2:52 AM
|
|
|
|
|
...is feeling bad for not being able to providing the source code, especially can't provide it as early as possible....
|
|
|
|
|
Try rentacoder for someone to do your homework for you.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Renuka.A wrote: in JavaFX.
So why post to a vb forum?
Renuka.A wrote: certain source codes
any particular ones?
Renuka.A wrote: I need as early as possible.
Sorry, no can do. Get your credit card out and try paying someone to do it.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Well, you have 2 choices:
a.) Buy a book on JavaFX, get the specs form your teacher, then do the work (if you problems with something, go here[])
OR
b.) drop the class and NEVER write another piece of code again.
|
|
|
|
|
Well, I suggest you start writing it! Noone is going to hand over their hard work for you to turn in as your own so you can pass your lazy ass through a class you don't deserve to pass.
|
|
|
|
|
Students who expect other people to do their work for them, deserve to fail and have a lifetime of employment flipping burgers a McDonald or equivently fast food outlet.
Actually, I take that back. burger flipping is too good for them.
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
Renuka.A wrote: I need certain source codes for Web Based College Mangt Systems in JavaFX.
I'm sure you do. Why you expect us to provide it, in response to a post in our VB forum, I am not sure.
Renuka.A wrote: I need as early as possible.
Contact your client and tell them you are a liar, and offer a refund. Then apply for a job at McDonalds.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Chuck Norris can hit you so hard that he can actually alter your DNA. Decades from now your descendants will occasionally clutch their heads and yell "What The Hell was That?"
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Hi
I'm using the dwm api to get another application's "form" on my application. It's working great so I have the vista/windows 7 preview window on my application. But I'm now trying to get a screenshot of my application and saving it to a file. When I try to accomplish this I get everything (buttons,pictureboxes etc) but I don't get the preview window (the other application's form).
I have searched around to get some information about how the DWM Thumbnail works, and it seems like it isn't alot information around. What I do know is that the DWM Thumbnail is creating a constant connection between my application and the source application.
My question's are.
------------------
The picture information I get from the DWM is it available in my application or is somehow rendered directly to the graphic card, and isn't really sending the info to my application.
Is it possible to print a screenshot of my application that will work even when my application is not ontop?
Best Regards Henrik
|
|
|
|
|
I have use Text box to my project and i want to implement Undo method of the textbox. When i check CanUndo property of the textbox it always return false.
somebody tell me how can i enable undo method to my textbox.
|
|
|
|
|
It helps to read the documentation on the TextBox class. Undo has already been implemented.
CanUndo tells you if the last operation the user did in the TextBox can be undone or not. It does NOT enable or disable the Undo functionality of the TextBox.
In whatever code you have that lets the user command an undo, you have to check the CanUndo property of the TextBox and then, if true, call the Undo method of the TextBox. You would also look into calling the ClearUndo method if appropriate in your situation.
|
|
|
|
|
Hi mates,
What tools are available to convert Access projects (Forms, Code, Queries,Reports) to Vb.net?
I have a new project now, its an mdb file, they want me to work on vb.net. An access application running in Access 97.
Is this possible to convert in vb.net? It has 20 forms, 50 tables, 200 queries, 4 reports, and 10 modules.
If I will do it in manual it takes a months to do this.
Can anyone tell me how to approach this kind of project.
or should i start from a scratch>?
Thanks in advance.
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
modified on Thursday, December 17, 2009 3:24 AM
|
|
|
|
|
i don't know of any tools that will do this, however even if there is one I would not use it. The tool from VB6 to dotnet was dodgy so Access to dotnet would be just plain nasty. Besides how would the tool deal with the database object, tables and queries and reports?
Take the opportunity to write from scratch, you almost certainly will need to anyway.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Mycroft Holmes wrote: he tool from VB6 to dotnet was dodgy
Guess what I have to do for the next 3 months...
|
|
|
|
|
Redesign and rewrite. A rewrite opportunity should always be taken, almost all apps can benefit from a rewrite/refactor.
Never underestimate the power of human stupidity
RAH
|
|
|
|