7 Topics

Member Avatar for
Member Avatar for Begginnerdev

After seeing quite a few posts today asking about event handlers for dynamicly created controls, I have decided to give a little example for reference. **Note that you should check [Microsoft's Documentation](http://msdn.microsoft.com/en-us/library/system.windows.forms.control.aspx#inheritanceContinued) ( or research from web ) of any control if you are struggling**

0
509
Member Avatar for lmali92

I am using Visual Studio 2010 I have multiple forms and when I hit close button(red X, top-right) from any form, i want the project to close entirely. Now when I do this, this does not happen by default. I always have to click on the 'stop' button in VS …

Member Avatar for codeorder
0
3K
Member Avatar for javaNooblet

Hi all, I am having trouble with class communication to reset some textfields through event handling. Any help would be appreciated. Here is a portion of my code. [B]The class that contains the textfields that I wish to use a reset button for:[/B] [CODE]import java.awt.*; import javax.swing.*; import javax.swing.border.*; public …

Member Avatar for mKorbel
0
213
Member Avatar for javaNooblet

Hi All, I was having trouble with getting my program to display all the necessary conversions. Here is a snippet of the code to help explain what I want to do: [CODE] private class CalcListener implements ActionListener{ public void actionPerformed(ActionEvent e){ String centInput, inchInput, meterInput, yardInput; double cent, inch, meter, …

Member Avatar for NormR1
0
4K
Member Avatar for RenanLazarotto

Hey people! I'm creating a small project which consists of 36 textboxes and one button. When I click a textbox, it should open a open file dialog and, when OK, set the text of the textbox I've clicked to the file name. I've did this: [CODE]Public Class Form1 Private Sub …

Member Avatar for RenanLazarotto
0
4K
Member Avatar for kruxena

Hi guys need help here. Scenario: I have a function in my textbox1 with the got focus event. I have a 40 textbox in my goupbox1. Here is my code so far. [CODE] Private Sub Textbox1_GotFocus(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Textbox1_GotFocus ... ... For Each x …

Member Avatar for codeorder
0
21K
Member Avatar for chu121su12

I have question on how to detect an action invoked by a component in some class by the other class. Say: [CODE] public class C1 extends JPanel { JButton button; C1() { button = new JButton(); add(button); C1Action h = new C1Action() button.addActionHandler(h); } public void doSomething() { // code …

Member Avatar for chu121su12
0
435

The End.