Answer Questions
p_dinesh Login Form VB 2005
Hi , i can’t make a loging form, checking a database users, i already have the users db, but how can i made th validation, a full step explanation it'll be great, please help me i already read a lot of books about vs2005, but i still with this trouble i'm usin Microsoft SQL server, thanks a lot!!! yes sorry just left me the error of the Name "password" is not declared how i can declare this name no just i want to authenticate the users, against the database and acces to the application and sorry for confusing you Thanks a lot you help me out a lot yes, but first i wanna made th connection to data set, and check te names on it, but this is the trouble i don't know how, this is my ...Show All
Ross Watson Custom Button Control flickers - Paint event gets fired continuously
Hi All, I have a custom button control in VB 2005, ported from VB 6.0. I faced many hurdles before i got it working with all the functionalities that it had in VB 6.0. I draw the graphics of the button in paint event. I need clarifications on the following things. 1. When there is a change in property. example the text property, it needs to be reflected in the control. So i call Invalidate method. Is it the right way to refresh the button 2. This button control works fine when there is no change in the form that uses it while running. i.e. What i mean is, if there is a label in form that updates the timer count down, the custom button control received paint event every time the label in the form that also has this control chang ...Show All
Luis Esteban Valencia Muñoz Secure SQL Login Info
Hi, I am currently working on a program that will connect MySQL database using MyOLEDB Driver. I used Dim fdCon As New OleDb.OleDbConnection("Provider=MySQLProv;Data Source= DATABASE ;User Id= USERNAME ;Password= PASSWORD ;") I am wondering is it secure to hard-code the username and password If not, how could I secure these info Thanks in advance! No, it is not secure... Ideally you should prompt the user for these the first time your application loads and then store it using DPAPI. If you search around you'll find a few DPAPI libraries for .NET. Also, have a look at the Configuration Management Application Block/Enterprise Library which supports encrypted configuration ...Show All
nhaas Positioning a MessageBox in VB .NET
Hi everyone, I a sorry if i'm posting in the wrong forum... I want to display a messagebox in VB .NET using Visual Studio 2005. Is it possible to position it where I want it I mean like giving it some X and Y coordinates or something Thank you in advance, Because I am learning VB .NET, and I found it strange that the messagebox displays outside the form space(at least for me). So I would like to position it inside the form window.... Just for this... Just out of interest, why do you want to do this ...Show All
Richard Meyers "Cannot create ActiveX Component" when run from a service
Hello, I've been having this issue for a little while now and it's getting to be a bit of a headache. I'm writing a service that calls a DLL, that DLL uses the CreateObject statement to call an application, Cognos Impromptu. Cognos provides no API for its app, only macro scripting, thus I have no Import statements or references. Upon running the service, once it reaches the CreateObject("CognosImpromptu.Application") statement I get the error "Cannot Create ActiveX Component." However, I am able to create other ActiveX objects, such as Internet Explorer, so I don't know what the problem with this program would be. For a further explanation please refer to the thread: http://www.vbforums.com/showthread.php p=2619238 An ...Show All
El Masidy Cannot perform '>=' operation on System.String and System.DateTime.
Dear all, I have written the following code in my program : selectStr = "((ExpiryDate is not Null)and(ExpiryDate >= #" & Format(Convert.ToDateTime(_startDate), "dd MMM yyyy" ) & "#)) and " _ & "(IssueDate <= #" & Format(_endDate, "dd MMM yyyy" ) & "#) and " _ & "(TypeId= 19)" tempDataRow = dttable.Select(selectStr) Data in the dttable is as follow. ID IssueDate TypeId ExpiryDate amount 838 01/01/2006 0:00 1 0 86 09/11/2006 0:00 9 10000 86 10/11/2006 0:00 9 23456 855 01/07/2007 0:00 19 ...Show All
Roger Andersen AddHandler Error (need help)
Hey i keep getting a error where its says AddHandler instance.NewWindow, handler [code] Public Event NewWindow As System.ComponentModel.CancelEventHandler Dim instance As WebBrowser Dim handler As System.ComponentModel.CancelEventHandler AddHandler instance.NewWindow, handler Custom Event [/code] my visual basic says its a syntax error so can anyone help me please i've looked every where to try find out how to fix this but i'm a nooby at the program etc.. but i'm learning quick so if any one nows please can they help me thanks. There are a couple of problems with that code. For one, instance should be a "real" instance to a WebBrowser control, in your case it is Nothing. That d ...Show All
FrankGroves FolderBrowserDialog1 fails when the user selects a folder name that's to long
I was wondering if anyone know how to prevent a user to select a foldername that does have a long length name. When I run this code: If Windows.Forms.DialogResult.OK Then If Windows.Forms.DialogResult.OK Then If FolderBrowserDialog1.ShowDialog() = DialogResult.OK Then txtFileDirectory.Text = FolderBrowserDialog1.SelectedPath lblInstall.Text = txtFileDirectory.Text btnContinue.Enabled = True End If End If End If I get a error if I select a foldername that has a long foldername length. I think more than 50 characters. Can anyone help Thank you.... B I am creating a folder path in code that is greater than 50 characters deep - that I know works with multiple version ...Show All
b4 Aspx.Vb , Web.Config , image and all other files of all types from a web site?
Hi, I was reading this thread. >> http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1186146&SiteID=1 It doesn't answer a question in the way i was thinking. Is it possible to grab all the " code behind " source files associated with a web site like the following list at all please Aspx.Vb , Web.Config , image and all other files of all types. Regards, S_DS Hi, That's what i thought, i was just checking. Thanks for your replies. :-) Regards, S_DS I think the confusion came out of not recognizing that HTML IS source code. I use the term in the same way spotty does. I think was mistunderstanding and confusion in the t ...Show All
numberOneFootballFan why path = path??
Hi all, I am studying 70-536, that's why i have so many questions.... The System.IO.Path allows us to work witl file system's path, but why i can change extension of a file with Path class doesn't make a lot of sense... Thanks, Alan, Hi, The Path class is designed for working with file path strings, whereas File class is used for manipulating physical files. The Path.ChangeExtension doesn't really change the file name in the file system, it only replaces the portion of the path string you're working on. And a file name is a part of the file's full path... Andrej Firstly look at the following documentation System.IO.Path Class http://msdn2.microsoft.com/en-us/library/syste ...Show All
YA say hello CREATING INSTALLERS OF A SOFTWARE
If a make a software using Visual Basic 2005 and it has a database made in SQL 2005, how can I create the intaller so it will create de database and install de program in the client pc without too much effort from the client Do I have to use an installer software to create it or I can do it from VB Thanks for the help There is an SMO (Server Management class) that can be called in a separate console program to attach your database by the installation. If the software is create using VB2005 - is the SQL database a SQL Express database or a SQL Server 2005 database - if its an express database you can simply create a click once deployment for this and the SQL express database will be installed on ...Show All
Jawad Naeem Passing arrays from vb .NET to ActiveX control (*.ocx)
I have an application written in Visual Basic 6 that uses an ActiveX control written in Visual C++ 6. I'm moving the visual basic 6 application to visual basic .NET (2003). The problem is when I try to pass an array from the visual basic code as a parameter of a function of the control. In Visual Basic 6 the code is something like this: Dim dummy(10) as Long '... 'some code '... myActiveXControl.myFunction(dummy(0)) myFunction expects a reference of the first element of an array of Integers. Passing the first element of the array works fine in visual basic 6. But if I try the above code in vb .NET, changing the definition of the array for this one (type Long in vb 6 is Integer in vb .NET) : Dim dummy(10) as Integer ...Show All
Rohit Tela Can you mame your own attributes, or whatever they're called?
I'm new to VB, and I was wondering, when you click and drag a button or something on to a form, and it has properties or attributes, or whatever, like button size, what it says, etc. Can you make your own field for something like that Thanks. A control such as a button is a class. Some classes are inheritable which means you can use these as the basis of a new control inheriting all there functionality and then adding to it. For these you can add or modify the existing class functionality. For these you can add your own properties, methods and you could create you own attributes but for what you talking about its probably more likely to be methods and properties you'll want to add. I'd probably lo ...Show All
mikag Process not completing
I have a vb form that runs a command line executable that creates a diff file from two existing files. When I run the program from the command line it creates a 419Mb diff file. When I run it as a process from my VB program it gets to ~400 Mb and stops. If I kill the VB program the command line executable continues to run and finishes the diff file. So I have 2 questions. Why does the process stop before for it finishes when I run it inside vb Why does the program continue to run when I kill the VB app. Here is my code Private Sub xdelta( ByVal strFile1, ByVal strFile2, ByVal strDelta) Dim strError As String Dim p As New Process Dim info As New ProcessStartInfo info.UseShellExecute = False ...Show All
paso Focus Question
I have made a custom control where when the user enters the control, the BackColor Changes then when it Leaves go back to white. I does fine when it is "Enter"ed by the user but when i focus the control at runtime, it seems to blink "MistyRose" then back to white apparently, it Enters the control, then executes the Leave event but focus is still on it. Why did this happen Also i want to create the effect that when the user clicks/enters some control when he should start with another, to focus the first control, i can seem to get that, i used: something like: if Condition = False Then Control1.focus() End If Show us the code you are using - its probably related to the events which y ...Show All
