|
WinAPI or System.Diagnostics.Process class
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
hi all,
am using VB.NET 2.0 , in my application it shows
Failed to convert parameter value from a String to a Int32.
Regards
Vidhish
Regards
Vidhish
|
|
|
|
|
Hi All ,
i have one issue to convert string to int
am following this way convert.tonint32(appno) is this correct way???
pls help me
Regards
Vidhish
|
|
|
|
|
If you correct the spelling, it's the correct way.
If the Convert.ToInt32 method fails to convert the string, it's simply because the string doesn't contain digits (or contains too many digits to fit in an Integer).
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Or is in the wrong format
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Hello Everybody,
I stucked up with a problem tht I can't generate Monthly attendnace report using crystel report in the following manner
May-08
name 1 2 3 4 5 6 7 8 ---------------Days in a month
arun P P P P P A A P
binoy P P P P A A A A
Can anybody help me plz..........am using vb.net and Sql Server
Thanks,
Hygee
|
|
|
|
|
What have you done so far? Without any partial code, database schemas, or sql statements it is not really possible to help you out.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I don't even know if anyone will have any idea how to do this. I am having trouble when i invalidate a control, it will update but will flicker in the process. Is there any way to do something like suspend the control from updating on the screen until after it has fully refreshed? I know there must be some way to do what i am wanting.
|
|
|
|
|
Do SuspenseLayout and ResumeLayout help?
|
|
|
|
|
I think you still get the flicker when you resume.
Be sure this is not when you close a dialog, 1.0 and 1.1 (and it may still be there) had a dramatic flicker if you use the DialogResult to manage the closing of a dialog, always explicitly close a dialog.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
A few suggestions:
- Only do paint routines in the proper painting events (OnPaint). Do not alter the painting in mouse events or any other events.
- Use the SetStyle of custom controls to allow for DoubleBuffering/more precise painting control/paint event mapping. DoubleBuffering is a key in reducing flickering.
- This sort of ties with my first point, but be sure that your logic is separate from your actual painting. One of my articles Basics of Falling Blocks in VB 2005[^] has helped many people reduce flickering in their programs because of the painting concepts discussed.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
I hope someone can guide me a bit. I wrote a pice of code that send data over the serial port to a servo controller. here is a piece that matters the most
Private Sub trackBarMiniSSC_Scroll(ByVal sender As Object, ByVal e As EventArgs) Handles trackBarMiniSSC.Scroll
Dim servo As Integer = Convert.ToInt32(trackBarMiniSSC.Value)
Dim baudRate As Integer = Convert.ToInt32(comboBoxBaudRate.Text)
Dim comPort As String = comboBoxCOMPort.Text
serialPort1.MiniSSC(comPort, baudRate, 0 , servo)
serialPort1.MiniSSC(comPort, baudRate, 1, servo)
End Sub
-----------
as you can seethis send my track bar's value to the serial servo controller and moves my servo in location 0. (8 channel controller) I also want it to send the same data to location 1 as well at the same time. Am I doing it right by writing 2 lines?? Or there's an easier (faster) way of doing it. unfortunatelly the project is very speed sensitive.
Thanx
|
|
|
|
|
Since no one has replied, I'll make a guess... Since the com port can only send one command at a time, that's the fastest it can be sent. Even if you put the send statements in their own threads to execute concurrently, only one command can be sent out the port at once.
Now if someone out there knows better and can straighten me out, please do!
|
|
|
|
|
I am working on making a specialized custom control that contains 3 other controls in it.
One of the Fields is a group box. I have set it up so that the user can set what the group box text property says however every time you run the application the control is in it reverts to the text that is in the group box instead of what the user typed in.
The property i use to get the text in the application is as follows.
<browsableattribute(true)> _<br />
Public Shadows Property Text() As String<br />
Get<br />
Return gbContainer.Text<br />
End Get<br />
Set(ByVal value As String)<br />
gbContainer.Text = value<br />
End Set<br />
End Property
The value in the group box text is ""
Has anyone found a solution for this?
|
|
|
|
|
You are obviously not storing/restoring the user input between sessions. Were you under the impression when you changed to text it was stored somewhere, possibly the compiled exe maybe.
You can either use the project settings with a user scope and let the system store it in the config table or create your own settings.xml and store user settings there. When you open the form you need to go to the settings store and get the group box text.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi
I am displaying locations on dropdownlist so the problem is if i have selected record which is not in the database it gives me this error" 'ddlLocation' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value "
here is my code and is working perfect if the record is in the database
If strPerNo = "" Then
Session("samacc") = HttpContext.Current.User.Identity.Name.ToLower
emp = cEmp.GetEmp(Session("samacc"))
'empPhoto = cEmp.DisplayPhoto(emp.perno)
Else
emp = cEmp.GetEmpByPerNo(strPerNo)
'btnAdmin.Text = "UPDATE"
End If
If emp.perno = "" Then
Response.Write(Session("samacc") + " not found")
Else
Session("perno") = emp.perno
Response.Write(emp.name + " " + emp.surname)
Session("ImgPerNr") = emp.perno
txtFirstname.Text = emp.name
txtLastname.Text = emp.surname
txtDivision.Text = emp.BsUnit
lblBU.Text = emp.BsUnit
txtBlock.Text = emp.block
txtFloor.Text = emp.floorno
txtRoom.Text = emp.roomno
txtInt.Text = emp.Int1
txtTel.Text = emp.tel
txtAltTelNo.Text = emp.alttel
txtCell.Text = emp.cellno
txtAltCell.Text = emp.altcellno
txtEmail.Text = emp.email
txtFax.Text = emp.fax
txtAltEmail.Text = emp.altemail
If ddlLocation.SelectedValue <> "0" Then
ddlLocation.SelectedValue = emp.LocID
Else
ddlLocation.SelectedValue = 0
End If
Mamphekgo
|
|
|
|
|
mamphekgojakes wrote: ddlLocation.SelectedValue = emp.LocID
Does the value of emp.LocID exist in the Drop down. You get such an error when you set the selectedvallue to a value that doesnt exist in the Drop down item collection
|
|
|
|
|
if the value does exist how can assign 0 to non existing values
Mamphekgo
|
|
|
|
|
you add like a "Select One" Item to the drop down list with a value of 0, and then you set the selected value to 0 if the item dont exist. So you have to loop the dropdown to check if the value you are setting exist or not.
|
|
|
|
|
Hi,
Please tell me How to send Email reminder automatically by fetching data from Excel sheet in VB.NET ?
Thanks in advance.
G Singh
|
|
|
|
|
guriqbal87 wrote: Hi,
Please tell me How to send Email reminder automatically by fetching data from Excel sheet in VB.NET ?
Thanks in advance.
What have you tried so far? Where are you stuck?
|
|
|
|
|
Hi,
I am able to fetch data from excel sheet.
actually thing is that in the excel sheet,there are some scheudeled tasks for each person,and I want that application send a reminder to that person in one day advance,if there is any task for that person.
Please help me ,hw I can do it in VB.NET?
G Singh
|
|
|
|
|
If you are able to get the data from the exel spreadsheet then the hardest part is already done. Are you able to manipulate the data that you returned? Or are you assuming you have all the data and can't verify it is returned? Their are a few articles on this site on how to send the actual emails, and if you are able to manipulate the data you got from the excel spreadsheet then that will just be a few conditional statements.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
Hi all,
I want to embed flash players object in my windows application for playing .flv files. I have used ShockwaveFlashObject, But i am not able to play .flv files.
anybody know the solution???
Pravin
|
|
|
|
|
Embed a webbrowser control into your application and then navigate to a page displaying the flv player.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|