Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 2 online users. » 0 Member(s) | 1 Guest(s) Google
|
Latest Threads |
Looking for Adventure? Fi...
Forum: Random Discussion
Last Post: iHOMEz
11-16-2024, 09:18 PM
» Replies: 0
» Views: 512
|
Prettys Womans in your to...
Forum: Random Discussion
Last Post: iHOMEz
10-30-2024, 07:45 AM
» Replies: 0
» Views: 806
|
Prettys Womans in your ci...
Forum: Random Discussion
Last Post: iHOMEz
10-26-2024, 10:50 AM
» Replies: 0
» Views: 825
|
Beautiful Womans from you...
Forum: Random Discussion
Last Post: iHOMEz
10-19-2024, 02:48 PM
» Replies: 0
» Views: 924
|
Prettys Womans in your ci...
Forum: Random Discussion
Last Post: iHOMEz
10-06-2024, 05:00 PM
» Replies: 0
» Views: 1,082
|
Womans from your city - V...
Forum: Random Discussion
Last Post: iHOMEz
07-28-2024, 10:26 AM
» Replies: 0
» Views: 1,461
|
Supreme Сasual Dating - A...
Forum: Random Discussion
Last Post: iHOMEz
06-14-2024, 11:28 AM
» Replies: 0
» Views: 1,884
|
Beautiful Womans in your ...
Forum: VB.NET
Last Post: iHOMEz
06-09-2024, 09:23 PM
» Replies: 0
» Views: 1,690
|
Hangman in Rust
Forum: Other
Last Post: brandonio21
02-04-2018, 11:14 AM
» Replies: 2
» Views: 20,706
|
How to: Search files from...
Forum: VB.NET
Last Post: brandonio21
11-25-2017, 12:55 PM
» Replies: 1
» Views: 16,018
|
|
|
making a windows login system |
Posted by: Bradley - 05-28-2012, 04:47 AM - Forum: Programming Help
- Replies (3)
|
|
Hi,
Thanks for taking the interest in this post. I am trying to make a system Login using windows username and password I have got the code for the username already which is
Code: Public Class form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text = System.Environment.UserName
End Sub
End Class
What I need is how to confirm the windows password is correct
Example
If John had an account on a windows machine the username will display as John
And then he enters his password the same as he would in windows it then checks Johns permissions and displayers the appropriate form
2 forms
1 Administrator
2 standard users
The code to verify the users rights I have used the following
Code: Public Class form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If My.User.IsInRole(ApplicationServices.BuiltInRole.Administrator) Then
TextBox2.Text = "Administrator"
Else
TextBox2.Text = "Standard"
End If
End Sub
End Class
So the only missing peace to the puzzle is confirming the password
Any help is grateful or if you could give me guidance on where to get this information
Kind Regards
Bradley
|
|
|
Searching in labels |
Posted by: brco900033 - 05-25-2012, 09:51 AM - Forum: Programming Help
- Replies (3)
|
|
Hi all
I have a question about a code on how to search in labels in my windows form and highlights the text then. It has to search in one windows form and only Labels not Textboxes, Richtextboxes...
I don't know if this possible but I hope so.
Thx
|
|
|
Change full row select back colour or list view |
Posted by: Bradley - 05-21-2012, 04:23 AM - Forum: Programming Help
- Replies (3)
|
|
Hi Team Of Programmers,
I need your help of a problem that is frustrating me I have a list view box and I want to change to full row select back colour I have already achieved this for list box but the settings are different this is what I am wanting to do for list view any help will be gratefully taken on board
Code
Code: Private Sub listBox1_DrawItem(ByVal sender As Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles ListBox1.DrawItem
Dim clrSelectedText As Color = Color.Black 'Our color for selected(text)
Dim clrHighlight As Color = Color.LightGreen 'Our background for selected items
If e.State = DrawItemState.Selected Then
'This item is selected
'e.DrawBackground()
e.Graphics.FillRectangle(New SolidBrush(clrHighlight),
e.Bounds) 'Fill the item's rectangle with our highlight
e.Graphics.DrawString(ListBox1.Items.Item(e.Index),
e.Font, New SolidBrush(clrSelectedText), e.Bounds) 'Draw the text for the item
ElseIf e.State = DrawItemState.None Then
'This item has no state
e.DrawBackground() 'Draw our regular background
e.Graphics.DrawString(ListBox1.Items.Item(e.Index),
e.Font, Brushes.Black, e.Bounds) 'Draw the item text in its regular(color)
End If
'Draws a focus rectangle around the item if it has focus
e.DrawFocusRectangle()
End Sub
Kind Regards
Bradley
|
|
|
How to exit sub of form1 using form2? |
Posted by: Himansh - 05-21-2012, 12:29 AM - Forum: VB.NET (Visual Basic 2010/2008)
- Replies (5)
|
|
Hi everybody
I have created a software and have added a form2 to it
In form1_closing event i have added the code
form2.showdialog
In form 2 i have added a button "Cancel"
I want that when the user press this cancel button then it exits the form_closing sub which prevents the software from Closing
Can anybody tell me How to Do it
Thanks in Advance!!!!
|
|
|
How to filter multiple extensions in OPendialog |
Posted by: Himansh - 05-16-2012, 11:08 PM - Forum: VB.NET (Visual Basic 2010/2008)
- Replies (1)
|
|
HI Everybody
I am creating a Software called HTML-Editor inspired from
HTML-IDEx created by brandon
I have also added open button in Menustrips which opens the opendialog1
I have added three extension to it
Webpage(*.html)
Text Files(*.txt)
AllFiles(*.*)
Now you all know that there can be many extension for WEbpage like .html or .htm
Now i want that when user click Webpage extension,
openfiledialog display no only files of extension (.html) but also of extension (.htm)
And i don't want to create a seperate extension for (.htm)
So can anybody tell me add multiple extension to Webpage like
Webpage(*.html,*.htm)
Like you can see in paint
JPED(*.jpeg,*.jpg,*.jpe,*.jpif)
Thanks in Advance !!!!!!!!!
|
|
|
|