User Profile
Collapse
-
I noticed that you called your sub "Image". The framework uses the "Image" keyword in the system.drawing. I don't know if it is your problem but I would definitely change the name to avoid mysterious bugs. -
Great tip
this is something that I can use daily with a few modifications.
I do not use C# though so I thought that you would not mind if I posted the VB code
...Code:Imports System Imports System.drawing Imports System.Drawing.Imaging Imports System.Windows.Forms Dim screenBitmap As New Bitmap(1024, 768, PixelFormat.Format32bppArgb) Dim screenRegion As Rectangle = Screen.AllScreens(0).BoundsLeave a comment:
-
...Code:Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim form As New Form2 form.Show() Me.Label1.Text = form.Label1.Text End Sub End Class Public Class Form2 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.ClickLeave a comment:
-
Functions are used to do specific things for you, like calculate the sum of all the records, parse a string, count the number of records and so on.
There is no difference between the functions and the stored procedures other than the functions are stored procedures that have been written for you. You can call a function inside a procedure and as a mater of fact you can call a stored procedure inside a stored procedure.
I hope I did...Leave a comment:
-
[HTML]GO
CREATE TABLE [dbo].[MyTable](
[id] [uniqueidentifie r] NOT NULL,
[AgentID] [int] NOT NULL,
[BusinessName] [varchar](25) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NOT NULL,
[Address1] [varchar](30) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NOT NULL,
[Address2] [varchar](30) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NULL,
[City] [varchar](20) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NOT NULL,
[State]...Leave a comment:
-
Thiago,
Do you have access to the database? If you do, just create an insert/update trigger.Leave a comment:
-
Once again I was not notified of your reply.
The server will not prompt you. You need to build the string yourself. Create 4 textboxes and populate them with your server name, Database Name, User Name and password. You should see the result like the string I included at the foot of this post. this should take care of your connection string.
...Code:Dim m_connectionString As String If m_connectionString Is NothingLeave a comment:
-
Hello lildiapaz,
I was never notified that I had an answer waiting for my reply to you. I will have to check the board settings so that I get a warning when someone replies.
Can you clarify your situation?
Are you saying that when you hardcode the username and the password you do not get a connection. Like
connection.Conn ectionString = "Server=" + textBox1.Text + ";User...Code:ID=MyUserID;PWD=MyPassword;database=MyDatabase";
Leave a comment:
-
I see that you enter the Server name via the texbox but I do not see any UserID or PWD being passed to the connection string
Code:connection.ConnectionString = "Server=" + textBox1.Text + ";User ID=;PWD=;database=";
Leave a comment:
-
Hello,
the difference between the two languages is like day and night. It is like comparing VB 6 to C++. Actually VB.Net is now closer to C++ than VB 6. You need a completly new frame of mind to work with .Net if you have a VB 6 background.
I hope that answers your question.Leave a comment:
-
Break in sequence
Hello,
does anyone knows of a way to group a set of records everytime a break in a sequence occurs. Let me explain.
I have a sequence of numbers like 1,2,3,4,5,7,8,9 when I reach the break (6) I need to group 1,2,3,4, and 5 together and 7,8, and 9.
I have it working with a cursor but it seems extremely slow. There has to be a better way to do it.
any help would be appreciated. Inn advance thank you
No activity results to display
Show More
Leave a comment: