|
well I have done exactly as you said.
This is in the parent form,I have added this in the form load event of the parent form
Dim obj1 As New childform
AddHandler obj1.addtolist, AddressOf addtolistbox
and this is sub that is subscribed to the event..
Private Sub addtolistbox(ByVal str As String)
ListBox1.Items.Add(str)
End Sub
In the child form....
Public Event addtolist(ByVal s As String)
and in the sub where I want to add to listbox in parent form,
RaiseEvent addtolist(ds1.Tables(0).Rows(0)("Reader_location").ToString & " Connected ")
|
|
|
|
|
salam sir;
how can made login form in vb6 and vb.net?please send me coding
thanks sir
mohammedali
|
|
|
|
|
1. Cross post
2. We don't do your work for you
3. This can easily be found on the internet.
Blog link to be reinstated at a later date.
|
|
|
|
|
Damn dude, don't spam the boards. Doesn't VB.NET express 2008 have a login form template for Christs sake??
|
|
|
|
|
Awesome question!
snicker..snicker..
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
whats worse is he asked this question months ago. Same project or did he retake the course?
10:1 its the same project
.5:1 its a redo on the course
Any takers?
|
|
|
|
|
I'd bet on the same proj. Sad really...
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Ill tell you whats sad.
1. The person who is going to take this project and will generally accept it as being either
a) secure
b) complete
c) efficient
Even if this project is for himself, I can see the hard coded plain-text password in a form1.cs (or form1.vb) file.
I hope no one is paying for this. Moreover I hope this IS for a class, that way he will actually get correction and maybe direction.
|
|
|
|
|
I noticed that too. I'm guessing retake of the course.
Blog link to be reinstated at a later date.
|
|
|
|
|
How many times are you going to ask this until you realize that noone is going to send you anything?? This is so easy to research on the web, it's silly. You say you're a Computer Engineering student, but you don't know how to do research?? That's THE most important skill you MUST have when working in this field...
|
|
|
|
|
I won't send you the code, but here are some tips
- Always use plaintext passwords. Hashing takes too long
- Make the username case-sensitive. People love that
- Color the login form yellow, green and purple. No-one will hack it if you do that
- Wouldn't it be convenient if the users could have a little dog or paperclip to help them log in?
|
|
|
|
|
In my VB code
Dim MyNewRow As DataRow
MyNewRow = Me.DataSet1.Tables(0).NewRow()
MyNewRow.Item("reason-code") = "RX6"
MyNewRow.Item("description") = "Hello from VB"
MyNewRow.Item("sl-paid") = True
MyNewRow.Item("sp-paid") = False
Me.DataSet1.absence.Rows.Add(MyNewRow)
Me.AbsenceTableAdapter.Update(Me.DataSet1.absence)
but ony first field "RX7" gets into the data base
any help would be appreciated
|
|
|
|
|
First, which version of Visual Studio are you using? Did you create a Typed DataSet using the designer? Also, what does the SQL looks like that you're using in the AbsenseTableAdapter? Does this database table have a PrimaryKey??
|
|
|
|
|
VS2005, this is an ODBC connection to a Progress database, and yes the table does have a primary key..on the 'reason-code' field, which looking at the code was the only field in update statement... I deleted all and tried again, but now I can't even get it to to do an update.
So I added an insert query and that worked just fine.
|
|
|
|
|
OK, great! But, my only concern is "Reason Code" doesn't sound like a good candidate for a PrimaryKey. It would seem that there could be multiple records in the table with the same reason code. This is not a good situation where the PK has to be able to uniquely identify every record in the table, which is a requirement for the TableAdapter to work.
|
|
|
|
|
Well I don't have any control over that.... this is a table in a SYMIX ERP package, and I am working on importing data from a different ERP package into it. (I don't like the limitations of Progress data base, which is cause of this, but no choice, that's what it is written in.)
But My Insert and I added my own update and it all works.
|
|
|
|
|
Hi everybody,
I used a background with dark gray regions as transparent regions for my splash screen
On my development computer, it shows transparent regions, but on all other computers it's opaque
I even tried installing Windows XP in VMware on the development computer, and still it didn't work!!!
Any suggestions are welcome...
Thank you
|
|
|
|
|
is the developement computer a server? sometimes it can depend on how the themes are setup in XP, i.e. windows classic etc..
Do you have XP styles enabled in the properties of the application, go to properties in visual studio in the application tab look to see if this changes anything?
Andy
|
|
|
|
|
I wonder if anyone can help me solve this problem.
On a form load, I do a simple yes/no test. If I say No, then I want to close the form I am loading. I have tried Unload, me.Close, formname.Close but with no success. Keep getting errors.
Is the problem with the Load event? I have tried closing the form from a procedure I created but no luck.
I am properly doing something really stupid or missing sometning simple out.
|
|
|
|
|
directred wrote: On a form load, I do a simple yes/no test. If I say No, then I want to close the form I am loading
It's a bit late to do the decision in that point. Could you modify the opening logic so that you don't open the form at all if your test fails (don't even create it).
directred wrote: Is the problem with the Load event
I think it's by design.
|
|
|
|
|
Please copy and paste the error messages so that I can help you
Cheers
Marcello Turnbull
|
|
|
|
|
If ur using single Form then use 'End' and check the event once.
|
|
|
|
|
I want to create a windows service that checks the status of a task in task manager.If it isnt running then restart the application.ie; it is 'Not responding' then restart.
However I dont know how to get the status of the task.Will getprocessbyname() method work for this?
Or is there a better way?
|
|
|
|
|
|
Mika Wendelius wrote: You can use Process.GetProcesses Method[^] to get all processes and then investigate Responding [^]property.
Beat me to it!
|
|
|
|