|
Hiya,
This seems to work, thanks, I didnt know that it was as simple to use forms in DLL files! Thanks again!
Lloyd J. Atkinson
"Logic will get you from A to B, but imagination will take you everywhere" - ALbert Einstein
The most annoying thing about Microsoft is its obsession with change.
|
|
|
|
|
Hello
i am trying to get a value from a textbox but i just have its name in a string varriable
like in php $$name
can somebody help me
thanks
kosmas
|
|
|
|
|
REflection is what you need here. You need to find the control by name, and then access it's Text property, using reflection.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
you can enumerate all the Controls (possibly recursively) until you find one with a
matching Name property.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
|
I know that there is a namespace in the System.Io.Ports in VB 2005 and above, but I have an application in 2003 I need it for. Wondering if anyone knew of a way to use a port in '03 or knew of a .dll I can use for it.
Thanks,
Brian
|
|
|
|
|
Hiya,
You could just simply upgrade to VS 2005/8?
Lloyd J. Atkinson
"Logic will get you from A to B, but imagination will take you everywhere" - ALbert Einstein
The most annoying thing about Microsoft is its obsession with change.
|
|
|
|
|
All you have to do is the same thing anyone is going to do. Google for ".net 1.1 serial port library".
Here...[^]
|
|
|
|
|
hi all
i work on text led display ( 16 row*64 column )leds , and i need a way or program to convert the arabic charters in textbox to 16 * 64 bitmap file and then to heaxfile to program the microcontroller .
thank you
|
|
|
|
|
The only idea I have for doing this would be to render each character to a small bitmap image matching the size of your character matrix and then use a C# processing library to get at the pixel data so you can see which pixels are turned on and off. Then you can use that information to geterate your hexfile data to send to the microcontroller.
|
|
|
|
|
Why do you need the bitmap as an intermediate step ? That's the step that is going to make this very hard indeed.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i quite weak but i hv unreasonable idea it gives me error...error given was Error
2 Argument not specified for parameter 'Emp_ID' of 'Public Overridable Overloads Function InsertQueryEmp(Log_No As String, Emp_ID As String) As Integer'. C:\Documents and Settings\HOn\Desktop\DIFINITION\DIFINITION\Form1.vb 20 17 DIFINITION
<br />
With Me<br />
if btnlogin.Text=true then<br />
.LOGIN_OUTTableAdapter.InsertQueryEmp(.Login_DateDateTimePicker.Value)<br />
.LOGIN_OUTTableAdapter.Fill(.Definition_dbDataSet._LOGIN)<br />
else<br />
.LOGIN_OUTTableAdapter.InsertQueryEmp(.Login_DateDateTimePicker.Value)<br />
.LOGIN_OUTTableAdapter.Fill(.Definition_dbDataSet._LOGIN_OUT)<br />
End If<br />
end with<br />
from query
INSERT INTO `LOGIN/OUT` (`Log_No`, `LogIn_time`, `Login_Date`, `Emp_ID`) VALUES (?, ddMMyyyy, HHmmss, ?)
datype i'm using is data/time
can any 1 help me correct it...thanks in advanced
modified on Wednesday, April 9, 2008 12:14 PM
|
|
|
|
|
What's the error?
Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)
|
|
|
|
|
Error 2 Argument not specified for parameter 'Emp_ID' of
'Public Overridable Overloads Function InsertQueryEmp(Log_No As String, Emp_ID As String)
As Integer'.C:\Documents and Settings\HOn\Desktop\DIFINITION\DIFINITION\Form1.vb 20 17 DIFINITION
this is the error given..
|
|
|
|
|
That error says that you didn't supply a value for a parameter.
Looking at this code, it wouldn't work, even if it did compile. Your if statement doesn't make any sense at all.
if btnLogin.Text=true then
You comparing the Text property of a button to a boolean value?? Why?? Does this button actually say "true" on it when you click it??
I would highly suggest picking up a beginners book on VB.NET and working through it. You're missing some very basic (VB.NET 101) type concepts, and it's limiting your ability to write code and out ability to help you fix it.
|
|
|
|
|
actually tht is a part...my question is ragard once user enter their password..the datetimepicker will automatically store into database..
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click<br />
<br />
Dim Emp_IDDataRow As DataRow<br />
Emp_IDDataRow = Comdataset.EMPLOYEE_DETAIL.FindByEmp_ID(txtID.Text)<br />
<br />
If Emp_IDDataRow IsNot Nothing Then<br />
If txtPass.Text = Emp_IDDataRow!Password.ToString Then<br />
MessageBox.Show("Login Successful!", "infor", MessageBoxButtons.OK, MessageBoxIcon.Information)<br />
With Me<br />
if txtPass.text=true then<br />
.LOGIN_OUTTableAdapter.InsertQueryEmp(.Login_DateDateTimePicker.Value)<br />
.LOGIN_OUTTableAdapter.Fill(.Definition_dbDataSet._LOGIN_OUT)<br />
Else<br />
(part below for logout)<code><br />
.LOGIN_OUTTableAdapter.InsertQueryEmp(.Login_DateDateTimePicker.Value)<br />
.LOGIN_OUTTableAdapter.Fill(.Definition_dbDataSet._LOGIN_OUT)
End If
End With
Form2.Show()
Else
MessageBox.Show("Invalid Password!", "Error", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error)
End If
Else
MessageBox.Show("Invalid ID", "ERROR", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error)
End If
this maybe can show more..thanks
error given me was
Error 2 Argument not specified for parameter 'Emp_ID' of
'Public Overridable Overloads Function InsertQueryEmp(Log_No As String, Emp_ID As String)
modified on Wednesday, April 9, 2008 9:30 PM
|
|
|
|
|
The error is correct, you are not supplying the function with the Emp_ID parameter.
In your code you are only passing a value to the Log_No parameter:
Member 4442916 wrote: .LOGIN_OUTTableAdapter.InsertQueryEmp(.Login_DateDateTimePicker.Value)
In your function you want two parameters to be determined:
Member 4442916 wrote: Error 2 Argument not specified for parameter 'Emp_ID' of
'Public Overridable Overloads Function InsertQueryEmp(Log_No As String, Emp_ID As String)
My advice is free, and you may get what you paid for.
|
|
|
|
|
I have a problem I have added a command to my crystal report that calls a stored procedure and should turn a number. I have also added a parameter to that procedure to make it dynamic. The problem I am experiencing is that when I bind this result to an unbound field the parameter doesn't change. It is static. And results in an error of having to Verify the Database to update the report. Is there another way I can do this. Is this a glitch with Crystal....
select test.pkg_s_e.get_cnt_ws('{?P_WS}') from dual
|
|
|
|
|
anyone can help me how to operate some code if the text in the textbox change, i want to make the auto send code but i didn't know, so i decide to make send code in textbox code, the situation is when the text in the textbox is change then the code will be operate..
please help me..
|
|
|
|
|
have u tried text_changed event...
is the ocde being changed by some internal process i.e. any function...if yes then that function can trigger the event you wanted..
Ashish Sehajpal
|
|
|
|
|
thanx a lot, it quite simple
|
|
|
|
|
I Wrote The Following Code But It has An Error
Function Fun(Of T)(X as T,Y AS T) AS T
Return X+Y
End Function
The Error Is :
That Operator + Is not Defined In Type T
''''
Ok But How Can I Make A generic Method To Make A + Math Operation For All Numerical Types
I love Peace And Programming
|
|
|
|
|
This isn't going to work, and it's completely useless.
You can't do what you want to do using a generic method. You're not constraining your Types to only value types. The addition operator is not defined for all possible types that you're allowing (which is basically everything), so you'll get this error. The problem is that you can't use the Int32, Int64, Byte, yada, yada, yada, value types as contraints because they are all structures, not classes. You can only use classes and interfaces as Type contraints, and only classes that expose a parameterless constructor. Structures do not following this rule, so they can't be used.
|
|
|
|
|
I thought there was a constraint you could use that specified that the object offered mathematical operations ? Will where T: struct do it ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: I thought there was a constraint you could use that specified that the object offered mathematical operations ?
All the base value type inherit from ValueType (obviously), but I couldn't use ValueType in the constraint at all. It's a MustInherit class with no parameterless constructor. I couldn't find anything that limited the possible types to "math only" implementors, or anything that would describe a type as being one.
|
|
|
|