|
its ok.. i'll just read the article..
im wonder if i can do this in time but.i hope i'll found out the solution as soon as possible
i just learn vb in tutorials. and i dont see any tutorials about my project thats why im having a hard time figuring out things just by myself.
thank you again Mr. Richard all of your reply is very much appreciated.
|
|
|
|
|
Lord Christian wrote: i just learn vb in tutorials. and i dont see any tutorials about my project If you are just learning then this seems a rather ambitious project. Also, you cannot guarantee that a tutorial will exist for every possible combination of circumstances, that is why developers need to practice their skills all the time.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
i know this is an ambitious project.
But the good part is if i make it, i can say it is the biggest project that i achieve.
yes it will take a lot of time to finish this in my current intelligence state.
but still i'm very desperate of finishing this project. if this project became successful im gonna post an article about it here.
|
|
|
|
|
When I said this was an ambitious project, I did not mean to suggest that you should abandon it completely. Rather, that you should focus on some simpler projects in order to increase your knowledge and experience. Once you are fully comfortable with the language, the framework and the hardware platform, then come back to this project and continue. And writing an article about your final project when it is working is an excellent idea.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Thank you sir for your advice. Your right i should go for simpler projects. i guess im gonna take your advice. i'll let you know if i have questions in my future projects
|
|
|
|
|
Hello,
Any body knows how to run visual basic program using
matlab COM Object ?
http://www.codeproject.com/Articles/6236/Building-COM-Components-Using-MATLAB-Part-I
Regards.
|
|
|
|
|
The same way you run other applications from MatLab. There's an example here[^].
|
|
|
|
|
|
VB6 is no longer supported.
|
|
|
|
|
When debugging user control, having Subclass handler, put your mouse on the user control not clicking, Sub zSubclass_Proc has promptly run, how to troubleshoot? is there a way that I can right-click on an object then run to? anyone knows please help.
|
|
|
|
|
If the user control code is within your project (not an OCX included), why not open it and set break points where required? The code execution will be interrupted at the break point even during design mode, if I am not mistaken...
HTH
Happiness will never come to those who fail to appreciate what they already have. -Anon
|
|
|
|
|
Welcome. Could someone help me in making Downloader?.
I'd like to pretend downloads. I do not want to download only to show, revealing the action "progress bar" and increase kb / s or mb / s ?
Regards.
|
|
|
|
|
Have a look at an article I wrote -> Application Auto-update via Online Files in C#[^].
It is in C# but you should be able to understand it and convert it to VB fairly easily.
There is a progress bar within the application that shows the progress of the download.
Regards
Guy
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
modified 9-Jan-13 6:40am.
|
|
|
|
|
You could do a downloader and send me a project and I would be opened in the Visual Basic?
|
|
|
|
|
Give the article and project a look and get back to me if you have specific questions about it
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
Hello,
Im stock at this problem i got an error "The I/O operation has been aborted because of either a thread exit or an application request."
i got an error on this line
mySerialPort.WriteLine("SUCCESS!" & vbCrLf )
and here is my code.
Public Sub CommPortSetup()
If mySerialPort.IsOpen Then
mySerialPort.Close()
End If
Try
With mySerialPort
.PortName = "COM1"
.BaudRate = 115200
.DataBits = 8
.Parity = Parity.None
.StopBits = StopBits.One
.Handshake = Handshake.None
.DtrEnable = True
.RtsEnable = True
.NewLine = vbCrLf
End With
mySerialPort.Open()
MessageBox.Show("Connected to COMMPORT1")
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
mySerialPort.WriteLine("AT+CMGF=1" & vbCrLf)
System.Threading.Thread.Sleep(200)
mySerialPort.WriteLine("AT+CMGS=+6390720831187" & vbCrLf)
System.Threading.Thread.Sleep(200)
mySerialPort.WriteLine("SUCCESS!" & vbCrLf )
System.Threading.Thread.Sleep(200)
End Sub
End Module
|
|
|
|
|
What's with all the Thread.Sleep garbage?
|
|
|
|
|
I get rid of the "thread.sleep" for now,
but I got these error "An unhandled exception of type 'System.ExecutionEngineException' occured in Unknown Module.
Please help me.
|
|
|
|
|
Put the problem code inside your try block so you can capture some useful exception information.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
i only got these error
"The I/O operation has been aborted because of either a thread exit or an application request."
|
|
|
|
|
Unsurprising since you are trying to write to the port then immediately exiting from the subroutine, and possibly even the program. Put all your writing code inside the try block and check all the information that you get if an exception occurs.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
After a little reading of the .NET Framework documentation for the SerialPort Class, it looks like all you need to do is add the following line of code after your last MySerialPort.WriteLine and before the End Sub so that the transmit buffer is emptied before your program exits the Sub CommPortSetup procedure. See the underlined and bolded area in the information below.
MySerialPort.Close
According to the .NET Framework documentation:
SerialPort.Close Method
Remarks
Calling this method closes the SerialPort object and clears both the receive and transmit buffers. This method calls the Component.Dispose method, which invokes the protected SerialPort.Dispose(Boolean) method with thedisposing parameter set to true.
The best practice for any application is to wait for some amount of time after calling the Close method before attempting to call the Open method, as the port may not be closed instantly.
|
|
|
|
|
Hi Friend's, I am using excel 2007. In my file 6 sheets. 4 sheets is data record & 1 sheet is recorder sheet & monthly.
Data record sheet name is : FY_2009, FY_2010, FY_2011, FY_2012 & FY_2013.
In all above sheet :
Part numbers mentioned in column "C2:C60000"
Quantity in column "D2:D60000"
Branch in column "G2:G60000"
Month in column "H2:H60000"
Year in column "I2:I60000"
In some sheet record range in differ. Some sheet upto row 50000 & some sheet upto 38000 but field name partnumber quantity, branch, month & year in same column.
1st case : In recorder sheet i have calculate how many quantity sold part number wise as well as in particular year & branch wise. (Location of part number in A2:A10000 column & Year mention in column F2:J2 (i.e. 2009, 2010,2011,2012, 2013)
2nd case : In column L2 mentioned year (i.e. 2012) & L2:Q2 mentioned branch.(i.e. "HGN", "NGP", "AKL", "AMRT", "CHN", "YTMAL")
How many quantity sold branch wise in 2012 year.
3rd case : In column R2 mentioned branch (i.e. "HGN", & R2:W2 mentioned years 2009, 2010, 2011, 2012, 2013)
How many quantity sold from one branch in year wise.
In monthly sheet i have calculate how many quantity sold part number wise as well as in particular month & year wise.
In monthly sheet location of :
Part number in : "B1" cell.
Months : 1,2,3 ... so on upto 12 in location is B2:M2.
Years : "A4:A8
Presently, i have calculate through excel formula but calculation is slow due to thousand of data records
& thousand of formula. And it will take very long time.
Now i required to calculate through vba micro to speed up our work.
In view of the above kindly let me know.
Note: I am not familiar with VBA.
|
|
|
|
|
atulkhandekar wrote: Presently, i have calculate through excel formula but calculation is slow due to thousand of data records & thousand of formula. And it will take very long time. Now i required to calculate through vba micro to speed up our work.
Using VBA to perform the calculations isn't going to speed up things much. Excel is not meant as a datastore, I suggest you put the records in a Database and work from there.
atulkhandekar wrote: Note: I am not familiar with VBA.
Try VB.NET; find a good book, and convert the formula's to code.
|
|
|
|
|
Sorry i don't have any idea regarding vba micro. And learning through VB.NET it will take time for learning.
If you have any ready made or example program for calculate excel 2007 summing data between column by vba.Post. Thanks for your suggestion.
|
|
|
|