Hi. I've been trying to find online on how to draw lines in a canvas using Netbeans IDE.I'm currently making a desktop application that calculates for certain physics things. My main issue is that I can't figure out how to draw into a canvas.I've looked plenty on google, and what I run into is code that doesn't clarify my issue. All I want to know is how to draw some lines into a canvas that has been created with Netbeans by pressing a button. Any suggestions are more than welcome. Thanks for your time.
Rylogy
Posts
-
Button to draw on Canvas -
[Message Deleted]Nevermind I got it :-D
-
[Message Deleted]I have something but it's not quite right, because years ending with 00 before de decimal are not leap years (example 1700 1800 1900 or even 2000000 as long as it has 00) I don't know how to do that. Also thanks for your help Guffa. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim y As Integer y = TextBox1.Text If y Mod 4 = 0 Then TextBox2.Text = "is leap" ElseIf y Mod 400 = 0 Then TextBox2.Text = "is leap" Else TextBox2.Text = "isn't leap" End If End Sub
-
[Message Deleted]that will work fine, I forgot to specify that I need to do that with my own codes, only using if, else if in the code and textbox for input and another textbox for output and a button. Thanks for your help though
-
[Message Deleted][Message Deleted]
-
Newbie on ASP .NEThey I used this sample code from a book of mine but I get this error Error msg: Login failed for user 'IUSR_GAP-PC'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'IUSR_GAP-PC'. Source Error: Line 37: Line 38: // fill the dataset Line 39: dataAdapter.Fill(dataSet, "Customers"); Line 40: SqlCommandBuilder bldr = new SqlCommandBuilder(dataAdapter); Line 41: Code: private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here // Insert page code here if (!IsPostBack) { // create the connection string string strConnection = "server=GAP-PC; uid=IUSR_GAP-PC; pwd=xpst700r; database=northwind"; //create the command string string strCommand = "Select * from Customers"; // create the data set command object and dataset SqlDataAdapter dataAdapter = new SqlDataAdapter(strCommand, strConnection); DataSet dataSet = new DataSet( ); // fill the dataset dataAdapter.Fill(dataSet, "Customers"); SqlCommandBuilder bldr = new SqlCommandBuilder(dataAdapter); // get the table DataTable dataTable = dataSet.Tables[0]; dgCustomers.DataSource = dataTable; dgCustomers.DataBind( ); } } I apreciate if someone helps me
-
Send Control key signalDennis C. Dietrich wrote: Have you tried SendKeys.Send("^") (see SendKeys Class[^])? Best regards Dennis nop
-
Sending mouse click signalsHi does someone know how to send a mouse click signal I want to send a code that the mouse sends the left click and holds it do you know how to make it?
-
Send Control key signalI still don't get it :( do you have an example code I can see?
-
Tutorial for Visual C++ .NET 2003Does anybody here has a tutorial or a link to a tutorial of Visual C++.NET 2003?
-
Send Control key signalHey how can I send the key signal for the control key I've tried but I can't get it to work. I'm using the SendKeys.Send("{}")
-
Clipping text into Clipboardthank you
-
Clipping text into ClipboardCan anyone tell me how can I clip text from a textbox into the clipboard
-
Help making a listbox appear when I write somethingyes thank you i'm not being vague, I just didn't know how to explain it my bad
-
Help making a listbox appear when I write somethingyes exacly
-
Help making a listbox appear when I write somethinghmm what I mean is that when I write a whole word then the list box appears or when I write a letter then the program should read the letter then the list box should appear By bad for not being much specific first time
-
Help making a listbox appear when I write somethingHelp I've tried many things to make a list box appear when I write something down Example I write an "A" and a list box appears can anyone help me out?
-
Help modifying textwhoa it worked
-
Help modifying texthmm Private Sub HighlightText(ByVal Highlight As String) what's that for?
-
Help modifying textthank you