|
Thanks! It works fine now
There are 10 kinds of people - those that get binary and those that don't.
|
|
|
|
|
How can you validate a user login to your application against the local machines windows user database? Against a domain?
|
|
|
|
|
|
Thank you for the link. I tried it and it works fine in VB6. Do you know if there is a .net class or anything that will achieve the same thing?
|
|
|
|
|
I have some vb.NET code at home that does htis. I can get it to you latter today.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
Thank you very much! That would be extremly helpful!
|
|
|
|
|
i have server client program working using one of the tutorials but i would like to be able to save the log that the server produces for everytime a client logs on i have managed to save and load from text boxes using:
Dim hFile As Long
Dim sFilename As String
sFilename = "c:\log.txt"
'obtain the next free file handle from the
'system and and save the text box contents
hFile = FreeFile
Open sFilename For Output As #hFile
Print #hFile, txtReceive.Text
Close #hFile
but i was wondering if there was a similar way to save all the items in a list box to a log and a way that it could be called back again! any help would be great!
.: Lister :.
|
|
|
|
|
it looks like you are using VB 6.0, you should try using the FileSystemObject
Steve
|
|
|
|
|
thanx steve but i dont really know much about FileSystemObject i had a look on msdn libraries to find out some stuff and found how to create a file and add text to it but not what ever was in the list box thanx for trying tho!
.: Lister :.
|
|
|
|
|
Any body know how to use (make) a bit array.
Thanks
|
|
|
|
|
What's the question?
BitArray stores as many boolean values as you want, well, up to 2,147,483,647 of them anyway. First you declare a BitArray object with the number of bits you want to store, say, 100 of them:
Dim myBitArray As New BitArray(100)
Then you use the Item Property to get/set individual values:
For Index = 0 to 99<br />
myBitArray.Item(Index) = True<br />
Next Index
RageInTheMachine9532
|
|
|
|
|
OK, thanks for your answer.
specificaly my question is : How construct the "Binary Blob" from this string "1234567-8".
thanks.
|
|
|
|
|
What are you doing with the blob? Are you doing something with a database?
RageInTheMachine9532
|
|
|
|
|
Pombo wrote:
bit array (BSTR)
A BSTR is different than a bit array. A BSTR is a string data type that stored the length of the string is stored with the data.
-Nick Parker
|
|
|
|
|
I'm new to programming so please don't laugh when you see my question.
What code do I use to open a form in a project when I click a button another form?
It's got to be something really simple and in Access I've used "DoCmd.OpenForm" but apprently it doesn't work in VB.Net. Thanks for any help!
Nathan
|
|
|
|
|
Dim newForm as Form1 = New Form1
newForm.Show()
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
Hi All,
I have the following scenario:
in a Bound windows form, I have a master-detail relationship, the first part of the form is the Master(represented by text and combo boxes) and retrives it's Data from a single SQL data table, The Details Section is represented by a DataGrid, and retrives its Data from Multi Tables Sql Query.
I wand to Add/ Insert/ Update and Delete from this Related sections at once, but still facing some problems affecting the Details Section, the modifications are done on the Master only.
The relation between them is build in the run time.
plz, if you have any Idea how to solve such a problem, that will be appreciated.
Thanx All.
I.M.A
|
|
|
|
|
Hi Gang,
I was just wondering if anybody here has done VBA work in professionally released packages.
Here's the deal, part of our program is using Excel/VBA as an add into to our software. We are trying to come up with a way where the code signed projects don't have to ask about macros all of the time.
We are trying to find a way around this. No, not in the sense of by-passing all security, but a way where the user only needs to acknowledge "Trust These Files" from our company.
Anybody have any ideas?
Nick
|
|
|
|
|
Hello
I want to execute a string value in VB.NET
e.g.
dim a as string
a = "msgbox "Emre""
.. a
When I execute this statement it must show the messagebox.
In VB6 I was using Script ActiveX Component.
How can I do that in VB.NET?
Thanks
Best Regards
Emre YAZICI
|
|
|
|
|
Hi,
I used this code on button1_click of a button in Windows form and it displayed me with the messagebox
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim strMsg As String
Dim strMsgNew As String = "Pritpal Singh Bumrah"
strMsg = MsgBox(strMsgNew)
strMsg.ToString()
End Sub
I hope this should solve your problems
dickysingh
Nothing New
|
|
|
|
|
Thank you for your answer
My problem is more complicated.
Please consider there is a textbox and a button in my form
When i click to the button the code that i wrote it into textbox , must be executed. But i will not use only msgbox. I will use all of the Vb.NET functions like (int - left - mid ....)
I used to develop it in vb6 using scripting control object
it was able to use ...
script1.execute text1.text
like this..
It executes the code that i have written into textbox.
Thanks
Best Regards
Emre YAZICI
|
|
|
|
|
There is nothing that says you can't do the exact same thing in VB.Net.
All you have to do is go to the references folder in your project, right click it and select Add Reference. Go to the COM tab, scroll down to Microsoft Script Control 1.0, double-click it then click OK. Back in your project, open the code for your Form and put the following line BEFORE the Public Class statement for your Form:
Imports MSScriptControl
Now declare a script control object in an appropriate place in your code, set the control to the language you want to use, and tell it to execute the code you want.
Here is a short example:
Imports MSScriptControl
Public Class Form1
Inherits System.Windows.Forms.Form
' Windows Form Designer generated code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim script As New MSScriptControlClass
script.Language = "VBScript"
script.ExecuteStatement("msgbox ""This is a test...""")
End Sub
End Class
RageInTheMachine9532
|
|
|
|
|
Hi,
Using VB.NET. I'm a beginner so please be gentle..
I am trying to overdraw A ListBox control, among others, so that they have a solid 3 pixel border. Currently I am doing this by creating a customcontrol inheriting from the specific windows control i.e. CustomListBox, inherits ListBox... then handling the WndProc and looking for the WM_Paint message.
I am then calling the MyBase.OnPaint.. this is to handle all of the item drawing, and on TextBox the text drawing stuff etc... then drawing over the 3DBorder with a solid border of the required colour.
However when I do this and the control is resized it flickers quite badly and I want to stop the flickering.
I have tried overriding the NC_PAINT message, which works very nicely, until the list box needs scroll bars.. then I am getting very strange results..
I've also tried setting the styles property to DoubleBuffer.. but that didn't seem to make a difference.
I'm not even sure that I'm going about this in the right way. Does anyone know of a way to do this sort of thing correctly, or a way to stop the flickering.
Any help at all would be appreciated. Even if it's to point me in the direction of a guide or documentation to custom drawing controls
Regards and thanks in advance,
Rig.
|
|
|
|
|
I'm sorry that I cannot be of any help, but I would be very grateful for anything you may have learned in changing the border color of a textbox.
Many thanks
Matt
|
|
|
|
|
How can I load load icon from a file into my vb.net program. i.e. if I use a tree view control it would be nice to get the icon for a specific file type that is registered for that file and load it dynamically into an image list so I can display the correct icon for that file in the tree view. Thanks in advance
Jim
|
|
|
|