Jump to content
Xtreme .Net Talk

robbremington

Members
  • Posts

    17
  • Joined

  • Last visited

Everything posted by robbremington

  1. A database is used to populate a panel with textboxes and lines to form a flowchart. The flowchart has a parent textbox, that has children textboxes, etc. This works well. Now the user wants to send the flowchart to a printer. I have examples of how to print text, but this involves textbox objects and lines that connect the boxes. Can you point me in the right direction?:-\
  2. I use database values to generate a flowchart on a panel. The flowchart is made up of hundreds of textboxes and lines. The user wants to print the flowchart. How can I do this???
  3. I use database values to generate a flowchart on a panel. The flowchart is made up of hundreds of textboxes and lines. The user wants to print the flowchart. How can I do this???
  4. I'm not sure how this works, I can't find any documentation. This was coded in VB6 and I'm upgrading to .NET. A file is generated in .NET and then saved to a Unix box for later execution. The error mesage I get is " Exception from HRESULT: 0x800A8BAA ". Please point me in the right direction. Thanks! With icRemote .AccessType = InetCtlsObjects.AccessConstants.icDirect .RequestTimeout = 10 .Protocol = InetCtlsObjects.ProtocolConstants.icFTP .URL = "10.12.70.97" .UserName = txtUserid.Text .Password = txtPassword.Text .Execute("10.12.70.97", "put", "A Test", "/proj/adh/stg_est/") End With
  5. How to draw many lines on panel :confused: :confused: Doing a Panel1.refresh only seems to paint the last line. Note: this is a simplified example of a complex app that generates a flowchat of TextBoxes joined by lines. In VB6 the line control was used, now I'm very confused!! Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click DrawLineOnPanel1(20, 40, 60, 80) 'Draw one line DrawLineOnPanel1(40, 60, 80, 100) 'Draw a second line '...... DrawLineOnPanel1(40, 60, 80, 100) 'Draw a 100th line End Sub Public Function DrawLineOnPanel1(ByVal inXp As Short, ByVal inYp As Short, ByVal inXd As Short, ByVal inYd As Short) As Boolean 'What code goes here??? End Function
  6. Code please What would be the code then to declare a variable and call it directly?? Thanks
  7. 'This sub draws a line on the panel Private Sub Panel1_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint Dim blackPen As New Pen(Color.Black, 3) e.Graphics.DrawLine(blackPen, 50, 100, 150, 200) End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'What CODE do I put here to also draw a line on the PANEL?????? End Sub
  8. How to know which text box was selected I set the tag property of each text box as it's created. When a user clicks one of text boxes WHAT CODE do I write to retrieve that tag value?:eek:
  9. I know that, but what code do I add to make it work?
  10. Error: Reference to a non-shared member requires an object reference. Question: How do I amend this code to make it work? Public Class Form1 Inherits System.Windows.Forms.Form Dim NewClass1 As Class1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load NewClass1 = New Class1() Call NewClass1.Class1Sub() '***** Call Class1Sub End Sub Public Sub Form1Sub() TextBox1.Text = "Yes" End Sub End Class Public Class Class1 Public Sub Class1Sub() Form1.Form1Sub() '****** this line is highlighted in error End Sub End Class
  11. I�m looking for some solid DataGrid code samples that: · Validate the grid data. · Allow some columns to be protected (Access Autonumber column) and others not · Set the column order, instead of columns shown alphabetically · When a user adds a new row, not demand input into an Autonumber column · Put the grid data in text boxes that have Add, Delete, Save buttons associated with them · Use MS access
  12. I copied this code example for Validating Data during column changes for a DataGrid, But I keep getting a syntax error with the AddHandler part of it. AddHandler is underlined in red. Can you tell what I�m doing wrong? Thanks I have a dataset named datStrategy1 and Strategy is a name of one of the tables. AddHandler datStrategy1.Tables("Strategy").ColumnChanging, AddressOf Strategy_ColumnChanging Private Sub Strategy_ColumnChanging(ByVal sender As Object, _ ByVal e As System.Data.DataColumnChangeEventArgs) �data checking code here End Sub
  13. The app builds a flow chart of textBoxes and lines from values stored in a database. In VB6 textBoxes have an Index which allows them to be an array. How should I convert this to .NET, a collection, instantiating a textbox class?
  14. I converted a vb 6 app to .NET. I got several conversion errors with a dbgrid and a ado data control but the form is still displayed with data, after "Managed ADO data Control" "ODBC SQLSetConnectAttr" errors appear 3 times. How can I get around this?
  15. Form1.vb reads: Imports System.Drawing Imports System.Windows.Forms Public Class Form1 Inherits System.Windows.Forms.Form -- Windows form designer generated code Private Sub Form1_Paint(ByVal sender As System.Object, ByVal e As System.PaintEventArgs) Handles MyBase.Paint Dim pen As New Drawing.Pen(System.Drawing.Color.Black, 2) Dim g As Graphics = e.Graphics g.DrawLine(pen, 200, 300, 400, 500) pen.Dispose() End Sub !!!!But I get an error System.PaintEventArgs "Type 'System.PaintEventArgs' is not defined" :confused:
  16. I added a label to the form and changed the Drawline arguments to 200,300, 400, 500. When executed all I see is the label . Where's that pesky line? Thanks for your help. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim pen As New Drawing.Pen(System.Drawing.Color.Black, 2) Me.CreateGraphics.DrawLine(pen, 200, 300, 400, 500) pen.Dispose() End Sub
  17. Help! I'm agitated attempting to convert a VB app from 6 to net! The app generates a flowchart with boxes and lines from database coordinates, but there�s no line control in NET and I can�t get this code to show anything on the form: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim pen As New Drawing.Pen(System.Drawing.Color.Red, 1) Me.CreateGraphics.DrawLine(pen, 1000, 1000, 1000, 1000) pen.Dispose() End Sub
×
×
  • Create New...