|
LETS THINK UR LOGIN SCREEN IS IN FORM1
SO U HAVE TO GOTO FORM 2 AFTER VALIDATING
WRITE:
DIM OBJ AS FORM2
OBJ=NEW FORM2
OBJ.SHOW()
ME.HIDE()
|
|
|
|
|
i have a vb application with me. I have used dsn for connecting to database. i want to make a installation package using package and deployment in vs 6.0. Here how can i integrate the dsn?. is there any way so that the dsn automaticaly comes when i install the software in the system.
thanking you
hari
|
|
|
|
|
I haven't used a DSN in almost 10 years... Let's see, ...., there's Creating a File DSN[^] that you could use to gleen some information from. You'd probably have to include this in your installation package and include a custom installer .EXE to install it. There's also some useful stuff in Creating a Machine DSN[^] that you can poke into the registry.
This is going to come down to what your abilities are and what you can pull off with them. I don't think you're going to find much in the way of having this installed for you automatically.
...but, then again, it's been 10 years since I've used one...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I need to use WinSock in vb6.0 to read emails of different accounts. Is any one know from where i could b able to get help on this.
Thanx
Noshaba
|
|
|
|
|
You'd be writing your own implementation of a POP3 and SMTP clients. The topic is WAY too big to go into in a forum environment. If you've got specific questions about the implementation, we can help you with that. But the question you posted is so general, all we can do is point you in the direction of Google:
Results[^] for "VB6 pop3 client"
Results[^] for "VB6 smtp client"
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi all,
I guess i didnt search much in net to get what i want in simple few lines of code
all i want to do is change the button submit to plesae wait and disableit as soon as they click submit so that i can prevent from them to submit again.
|
|
|
|
|
To save you the trouble of reading the manual... in the cmdSubmit_Click() event (assuming your Submit button is named cmdSubmit) ...
cmdSubmit.Text = "Plesae Wait"<br />
cmdSubmit.Enabled = False
Simple huh?
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
(Translation: I'll show you the way, but not write the code for you.)
|
|
|
|
|
i assume those codes will be stored in server side i am talking about when the internet connection is slow. let says. while user uploads the file and the progress bar goes up till the image upload is complete there could be chance they can upload it again. if the internet connection is fast the effect of that code will not be visible. i dont know correct me if i am wrong.
thanks once again.
|
|
|
|
|
foremorecoast1 wrote: i assume those codes will be stored in server side i am talking about when the internet connection is slow
Well you didn't tell me that it was a web app. In this case I agree with Dave. If it is a non-web app, the code I gave you will work just fine.
Be more specific in your questions and RTFM a bit more.
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
(Translation: I'll show you the way, but not write the code for you.)
|
|
|
|
|
You don't want to be doing that...
Simply because if the POST (button click) fails for any reason, the user will not have the option of going back and clicking Submit again.
You'd be much better off writing your code to handle the situation where it might see the same request twice, or more.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
WRITE:IN CLICK EVENT
BUTTTON1.ENABLED=FALSE
VIJAY KUMAR.N.S
|
|
|
|
|
Hi all ,
I am using vb.net 2003, i have to create dll using this. it doesnot have the components library option .Any other methods are there??
thanks in advance..
"Money decreases by sharing..,
knowledge increases by sharing.."
bharath.s
-- modified at 1:16 Thursday 16th March, 2006
|
|
|
|
|
You are looking for Class Library
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
on your solution just add a new project as a Class Library not as a windows application.. the output of this would be a .dll
|
|
|
|
|
Hi All
i am running my web application for dating website in local host prog. when the user try to do file upload i am uploading the file in a temp directory but i get following error.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.UnauthorizedAccessException: Access to the path "C:\Inetpub\wwwroot\dating.net\pix\temp\victor2_6316133322.jpg" is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at System.Web.HttpPostedFile.SaveAs(String filename)
--- End of inner exception stack trace ---
at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess)
at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean verifyAccess)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.VisualBasic.CompilerServices.LateBinding.FastCall(Object o, MethodBase method, ParameterInfo[] Parameters, Object[] args, Type objType, IReflect objIReflect)
at Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack, Boolean IgnoreReturn)
at Microsoft.VisualBasic.CompilerServices.LateBinding.LateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack)
at ASP.editphotos_aspx.Upload_Click(Object source, EventArgs e)
i gave all access to anonomous user the project folder and permission inherits to temp directory too. in the directory web sharing i also gave write permission i dont know what went wrong. please help thanks
|
|
|
|
|
You must allow IIS to write to that folder...
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
You have to give explicit permissions to the ASPNET account that your site is running under. Anonymous just wont do it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
ok i gave write permission for IIS to wwwroot now abot giving permission to aspnet account to the site the user wont come up. i mean the computer is disconnected to network and is NTFS. and if i write click the project folder under wwwroot it gives only four options GENERAL, SHARING, WEB SHARING and CUSTOMISE, in web sharing i also have included write permission i really dont know what else i could do. i also tried to put aspnet account under admin group in computer group policy still no help. i dont know what went wrong...
|
|
|
|
|
When you right-click the folder your site is in, there should be a Security tab. If not, you might have simple file sharing turned on. Open MyComputer, click the Tools menu, Folder Options. Click on the View tab in the dialog that comes up. In the Advanced Settings box, scroll down to the bottom of the list. You'll find "Use simple file sharing (Recommended)", turn it off.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
THANKS FOR REPLYING BUT AFTER I DID THAT I GET FOLLWING ERROR
System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams)
at System.Drawing.Image.Save(String filename, ImageFormat format)
at ASP.editphotos_aspx.Upload_Click(Object source, EventArgs e)
|
|
|
|
|
HUMM i think i can fix it now it says invalid column name it gave me th above error coz i think the permission is not inherited to the folder where i am uploading the img. let me see if i can fix it.
thanks once again
|
|
|
|
|
I'm trying to display a full page of text and scan through the words one at a time by highliting the word. (Similar to the way spell check highlits a whole word at a time). I will need to be able to control the speed of the scan. I'm trying to teach my son to read faster.
Any ideas woudl be a big help.
Thanks
|
|
|
|
|
Have you tryed something and it didn't work?
Start something and then ask when you have a speciffic question.
I don't think anybody here will develop a program logic for you...
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Robert1999,
Give this a try, for your son..
Should get you started...
'---------------------------------------------------------------------
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents RichTextBox1 As System.Windows.Forms.RichTextBox
Friend WithEvents RichTextBox2 As System.Windows.Forms.RichTextBox
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.Button1 = New System.Windows.Forms.Button
Me.RichTextBox1 = New System.Windows.Forms.RichTextBox
Me.RichTextBox2 = New System.Windows.Forms.RichTextBox
Me.SuspendLayout()
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(205, 15)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(65, 25)
Me.Button1.TabIndex = 0
Me.Button1.Text = "Button1"
'
'RichTextBox1
'
Me.RichTextBox1.Location = New System.Drawing.Point(10, 65)
Me.RichTextBox1.Name = "RichTextBox1"
Me.RichTextBox1.Size = New System.Drawing.Size(265, 50)
Me.RichTextBox1.TabIndex = 1
Me.RichTextBox1.Text = "This is an example of finding text in a rich text box"
'
'RichTextBox2
'
Me.RichTextBox2.Location = New System.Drawing.Point(10, 130)
Me.RichTextBox2.Name = "RichTextBox2"
Me.RichTextBox2.Size = New System.Drawing.Size(265, 105)
Me.RichTextBox2.TabIndex = 2
Me.RichTextBox2.Text = "RichTextBox2"
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(292, 266)
Me.Controls.Add(Me.RichTextBox2)
Me.Controls.Add(Me.RichTextBox1)
Me.Controls.Add(Me.Button1)
Me.Name = "Form1"
Me.Text = "Form1"
Me.ResumeLayout(False)
End Sub
#End Region
Private normalFont As New Font("Times New Roman", 12)
Private errorFont As New Font("Times New Roman", 12, FontStyle.Bold)
Private bigFont As New Font("Times New Roman", 48, FontStyle.Bold)
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
test()
End Sub
Private Function test()
Try
' Return all text to normal since
' underlined spaces might be left behind
RichTextBox1.SelectionStart = 0
RichTextBox1.SelectionLength = RichTextBox1.Text.Length
RichTextBox1.SelectionFont = normalFont
RichTextBox1.SelectionColor = Color.Black
' Beginning location in the RichTextBox of the next word to check
Dim index As Integer = 0
' Enumerate over the collection of words obtained from String.Split
Dim s As String
For Each s In RichTextBox1.Text.Split(Nothing)
' Select the word
RichTextBox1.SelectionStart = index
RichTextBox1.SelectionLength = s.Length
' Trim off any ending punctuation in the selected text
While RichTextBox1.SelectionLength > 0 And Char.IsPunctuation(RichTextBox1.Text.Chars(index + RichTextBox1.SelectionLength - 1))
RichTextBox1.SelectionLength -= 1
End While
' put it in the second richtextbox
RichTextBox2.Font = bigFont
RichTextBox2.Text = RichTextBox1.SelectedText
' change the text to red in the first richtextbox
RichTextBox1.SelectionFont = errorFont
RichTextBox1.SelectionColor = Color.Red
' Update to point to the character after the current word
index = index + s.Length + 1
Application.DoEvents()
' 2000 = Two seconds
System.Threading.Thread.Sleep(2000)
Next
Catch ex As Exception
' do something with an error here
End Try
End Function
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
RichTextBox1.Font = normalFont
RichTextBox1.Text = "This is an example of finding text in a rich text box"
RichTextBox2.Text = ""
End Sub
End Class
'------------------------------------------------------------
progload
|
|
|
|
|
Hi guys!
i'm trying to find a way to display a tooltip containing the item pointed to in the combobox. i'm still new to vb .net so i'd really appreciate the help.
thanks
|
|
|
|