|
Socheat.Net wrote: No i don't have internet at home, I have added you to my address already. Please go to yahoo messenger
We are out of luck. My administrator has configure the firwall to prevent the staff from using any messenger to chat online.
|
|
|
|
|
Unluck, If have time we will together, What about this evening, I will go to paly table tennis with my friend do u 1 2 go?
................
|
|
|
|
|
I'm sorry for late reply, I just return from a small meeting.
Socheat.Net wrote: If have time we will together
We will what?
Socheat.Net wrote: What about this evening, I will go to paly table tennis with my friend do u 1 2 go?
I'm sorry that I'm usally go home and schoo after I leave from my work. We have an e-mail so we would be able to contact with each other.
|
|
|
|
|
HI,
I have an applicaiton in which I have a tree view consistng of certain values. Now when I right click on the node I should be in a position to edit the text there itself. Similar to the windows explorer where we have a names of the files in the directories where we can right click on the file/directory and change the name.
I tried using the labeledit property but it s not working.
Regards
Uma
|
|
|
|
|
|
|
|
Hello,
I'm trying to get the group in which a user is sitting. I searched and found an artikle here. Converted it from c# to VB.NET and made some changes.
This is the code:
Dim entry As New sys.DirectoryEntry("LDAP://WMU")
Dim search As sys.DirectorySearcher = New sys.DirectorySearcher(entry)
search.Filter = String.Format("(cn=*)", userName)
search.PropertiesToLoad.Add("memberOf")
Dim groupsList As System.Text.StringBuilder = New System.Text.StringBuilder
groupsList.Append("test")
result = search.FindOne()
If Not result Is Nothing Then
Dim groupCount As Integer
groupCount = result.Properties.Count
Dim counter As Integer
For counter = 0 To groupCount - 1 Step counter + 1
MessageBox.Show("in for loop")
If result.Properties.Contains("memberOf") Then
MessageBox.Show("In If statement")
groupsList.Append(CType(result.Properties("memberOf")(counter), String))
groupsList.Append("|")
End If
Next
End If
groupsList.Length -= 1 'remove the last "|" symbol
Return groupsList.ToString()
After some tests, i noticed that the code in the If condition never gets executed. So in other words, the property memberOf is not available.
What can i do to get it available?
Thanks in advance
Bis
|
|
|
|
|
Bis,
I have already replied to your previous thread,
I will also paste the code snippet which i am using for your further reference
<br />
Dim entry As New DirectoryEntry ("LDAP://JANDBINDIA.com", .txtUsername.Value.ToString, .txtpwd.Value.ToString)<br />
Dim search As DirectorySearcher = New DirectorySearcher(entry)<br />
search.Filter = "(&(objectClass=user)(objectCategory=person))"<br />
search.PropertiesToLoad.Add("memberOf")<br />
Dim result As SearchResult<br />
<br />
For Each result In search.FindAll()<br />
If result.Properties.Contains("memberOf") Then<br />
Response.Write(result.Properties("memberOf")(0))<br />
Response.Write("<BR>")<br />
End If<br />
Next<br />
This time you will get it, i am allowing to do the process only for authorized users , probably you can hard code the same r you can leave the parameters blank. but make sure that you have mentioned the .com extension for your domain name which is very important
Sasidar
|
|
|
|
|
hello sasidar,
Sorry to repost a question and thanks for replying.
This time it works, but strangely if I give the extention drom the domain name, it doesn't work.
Greetz Bis
|
|
|
|
|
Bis,
What changes have you made to make it work.
Sasidar
|
|
|
|
|
Sasidar
Here is the code from the function;
Private Function GetADUserGroups(ByVal userName As String) As String
Dim entry As New sys.DirectoryEntry("LDAP://WMU", username, Password)
Dim search As sys.DirectorySearcher = New sys.DirectorySearcher(entry)
search.Filter = "(&(objectClass=user)(objectCategory=person))"
'String.Format("(cn=*)", userName)
search.PropertiesToLoad.Add("memberOf")
Dim groupsList As System.Text.StringBuilder = New System.Text.StringBuilder
result = search.FindOne()
If Not result Is Nothing Then
Dim groupCount As Integer
groupCount = result.Properties.Count
Dim counter As Integer
For Each result In search.FindAll()
If result.Properties.Contains("memberOf") Then
groupsList.Append(result.Properties("memberOf")(0))
groupsList.Append(NewLine)
End If
Next
End If
groupsList.Length -= 1 'remove the last "|" symbol
Return groupsList.ToString()
End Function
Bis
-- modified at 4:30 Thursday 15th June, 2006
|
|
|
|
|
Hi there,
Example
Public sub add(byval a as interger, byval c as interger)
a=10
b=20
sum =a+b
end sub
if someone uses this sub then he should get the sum value also , like
retur=add(10,20,sum)
"S" should get the result.
something like this.
can any one please help
bharath.s
|
|
|
|
|
You add the parameter as ByRef instead as ByVal. ByVal passes tha parameter as a copy of the input value. ByRef passes the object reference i.e. you are modifying the exactly same object/variable.
Public Sub add(ByVal a As Integer, ByVal b As Integer, ByRef sum As Integer)<br />
a = 10<br />
b = 20<br />
sum = a + b<br />
End Sub
|
|
|
|
|
I think you really want a Function
Example :-
Public Function add(ByVal a as integer, byVal b as integer) as integer<br />
Return a+b<br />
End Function<br />
Use it like so...
<br />
sum=add(10,20)<br />
Steve Jowett
|
|
|
|
|
i am using this scanner in web based application for a single scnnaer multipul client will we connected but how
i will scan the image and store into the server
plz help me if possible with source code
Mm
|
|
|
|
|
Hi,
I have an Main.vb(MDI container) form as a parent in that im loading another form Launch.vb in the page load of main.vb. In the button click ok launch.vb form i should display a form called change.vb.
So in the button click event of launch.vb form i have created an instance of the change.vb form and im showing the form. But when i assigned the top and left of the form its not taking.
If i assign the CAEditor.MDIParent = Me, its giving error, because Launch is not an MDI Container.
The code written in the Launch.vb form button click event. Its working fine but the top and left locations are not taking. and its showing the form in different location.
Dim CAEditor As New frmChange
CAEditor.ShowInTaskbar = False
''''''''CAEditor.MDIParent = Me
CAEditor.Left = 310
CAEditor.Top = 82
CAEditor.ShowDialog(Me)
How i can assign the location of Change.vb the form in the button click of Launch.vb. If i specify the location in the page load of Change.vb its working fine, but i need to specify in the click event of launch.vb.
Please any one help me out to solve this problem, thanks in advance.
Regards
Mukil.
|
|
|
|
|
Setup properties on the Change.vb form for Left and Top. Pass the values from the calling form to the Change.vb before you open the Change.vb form. Then in the load event from the Change.vb form set the left and top based on the sent values.
|
|
|
|
|
Thanks for your reply. i will check it
Mukilan.
|
|
|
|
|
I mean ,is it suppose to be taken From PictureBox!
Dou you Guys Know Any website provide Picture icon bitmap or any other Graphic For Making GAme In VB.net!
Please HelpMe!!!!!
|
|
|
|
|
Hello all,
I have just got this new HP Compaq nx6125 laptop which has a finger scanner which helps me to log into the computer. I was just thinking does anyone know how we can program the finger scanner to reconize the finger. In short how to i learn finger scanning programming...
I know its very hard... but if any one has any code or any directly i would really appreciate it a lot..
CH
|
|
|
|
|
hi
how could i use this code
Private Type RGBTRIPLE
rgbtBlue As Byte
rgbtGreen As Byte
rgbtRed As Byte
End Type
to get every pixel in bitmap file (Bmp) with the format RGB
thx
Dodo
DODO
|
|
|
|
|
In C#, you could use an unsafe block to iterate over the image and store the values ( as in my image processing articles on this site ), but in VB.NET you'd have to do it the slow way. If you want any sort of performance, write this bit in C# using my code as a guide and use it from a dll.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I'm using vb.net.How i want to create folder for the files that i have copied from other URL source.
I want the folder name generate a date.So the folder name shown the date its created.
Can i do that in VB.net?
I'm using .ini file to get the files source and the destination for the copied files.
.ini file:-
[source]=http://www.abc.com
[locadir]=\\local disk\c$\input
[filename]=abc.ops,nice.txt
Cute Gurlz
|
|
|
|
|
Has anyone successfully created a DataGrid within a DataGrid using VB.Net??
(The Parent Datagrid has the topics and when the row is selected, opens directly below with the other datagrid containing books of that topic.)
Erin
|
|
|
|