21 Topics

Member Avatar for
Member Avatar for Violet_82

Hi guys, I'm now looking at what seems to be a nice exercise on my java book. Basically, the exercise asks me to build a virtual keyboard GUI - see screenshot - and when you press each key on your real keyboard the key you've pressed will change its background …

Member Avatar for Violet_82
0
4K
Member Avatar for oldSoftDev

Private networkAvailableEventHandler As NetworkAvailableEventHandler = AddressOf NetworkConnectionChanged Private Sub NetworkConnectionChanged(sender As Object, e As NetworkAvailableEventArgs) If Not disposed Then OnPropertyChanged("IsNetworkAvailable") End If End Sub Dim disposed As Boolean = False Public Overloads Sub Dispose() Implements IDisposable.Dispose Dispose(True) MyBase.Dispose() GC.SuppressFinalize(Me) End Sub Protected Overridable Overloads Sub Dispose(disposing As Boolean) If disposed …

Member Avatar for Eternal Newbie
0
1K
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 MonsieurPointer

Hello DaniWebbers, I have the following classes in their respective namespaces; so far so good. When I have received data from the server, the AsyncTcpClient's *DataReceived* event gets raised and the Client's *OnReceivedData* method gets called. Also so far so good. The one thing that does not work (and which …

0
138
Member Avatar for melbahtoast

So I've done quite a few forms before but I'm running into trouble with this one. I'm not exactly sure what I need to do, but let me explain. I have: Form A Form B Form A collects basic data from a customer. Form B give you the option to …

Member Avatar for melbahtoast
0
234
Member Avatar for Mike_

I am attempting to create a global temp table to be used between two sessions being called from a webservice. When I attempt to access the temp table from the second session it can not be found. The reason I am using a global temp table is because the initial …

Member Avatar for thines01
0
186
Member Avatar for superjj

hi I get an error, "has the wrong return type". it has something to do with "tim1.Tick += new System.EventHandler(tim1_tick);" Help me please. [CODE] Timer tim1 = new Timer(); DateTime huidigetijd = new DateTime(); private bool CheckTim1Start; public Wekker() { tim1.Tick += new System.EventHandler(tim1_tick); // tim1.Enabled = true; enable == …

Member Avatar for superjj
0
192
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 Kleiner

Hi. I am having a problem in creating of one simple program in Python. Here is code. [CODE]import wx class bucky(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, "Testing erea", size=(280,400)) panel = wx.Panel(self) food = wx.Button(panel,label='Food',pos=(10,10),size=(80,40)) pets = wx.Button(panel, label='Pets', pos=(100,10), size=(80,40)) self.Bind(wx.EVT_BUTTON, self.food, food ) def food(self, event): …

Member Avatar for Kleiner
0
280
Member Avatar for jatpatel1

Hi there, I was wondering if anyone can resolve my problem. Just to give you a heads up. I have a page with many input fields like textboxes, select etc. All these input fields are on one line in a table row. The number of rows depends on the amount …

Member Avatar for Troy III
0
339
Member Avatar for Seten

Hello, I would need a help from you with my application. I received a lot of (email)sms, and I don't want to store them in my regular sms-phone database. I receive them quite a lot (daily - 40), so mostly I just read and delete them. So I created an …

0
98
Member Avatar for tshudyb

I am trying to calculate the 'Profit' field based on the current record's 'ProjectTotalBillingEstimate' field and the 'ProjectActualCost' field. I want the 'Profit' text field to be calculated every time a record is changed, either via the navigation toolbar or the Project ID drop down box. I tried performing the …

Member Avatar for AndreRet
0
257
Member Avatar for Aelphaeis

Essentially, my problem is that I have a program that dynamically creates controls. The Controls included are buttons and on click I want the buttons to remove themselves and all related data. The problem is I'm not sure how to identify the buttons from within the delete method. The important …

Member Avatar for Aelphaeis
0
190
Member Avatar for oredigger

Hello, To start off, this is not a homework related question, just something I've run into on a project I'm working on for myself for fun. Basically, I have a screen whose controls are dynamically created (I create one for each root entry in an xml file) so that the …

Member Avatar for oredigger
0
156
Member Avatar for y2kshane
Member Avatar for EvolutionFallen

Hi, I'm trying to make a link that changes my web page into a printable format and back: [code=HTML]<a id="print" href="#" title="Print map">Printable version</a>[/code] The switch to printable format works fine: [code=JavaScript] $('#print').click(function() { $('img').attr('src', newsrc); $(this).html('Screen version'); $(this).attr('id', 'screen'); return false; }); [/code] But going back, it doesn't work …

Member Avatar for EvolutionFallen
0
92
Member Avatar for bluejamesbond

First off, I am new to this forum so please forgive me for any traditions that you all usually keep that I haven't kept. Currently, I am a java programmer, but I am recently trying to learn scheme for a project. In terms of java swing, can someone explain to …

Member Avatar for bluejamesbond
0
183
Member Avatar for redgie44

Ok I am currently learning php through wordpress and I have a small project to create a running website which displays the results. CUrrently I can display the results for a certain race that I hard code: [code] <?php // Connects to your Database mysql_connect("XX.XX.XX.XX", "admin", "pwd") or die(mysql_error()); mysql_select_db("db") …

Member Avatar for redgie44
0
153
Member Avatar for InfernalAngel

Hi guys. Recently I had face an interesting issue when trying on Hijacking Event on an Element here is what I've got: So if you want to Hijack an Event first you have to check that event-handler has been set for that particular element or not rite ? ( you …

0
104
Member Avatar for cgyrob

I am creating a gridview dynamically using Itemplate but I have run into an issue where the event handlers I create for my drop down boxes in edititem template are accumulating every time it fires. To be more specific. When I enter edit mode and select a new item in …

Member Avatar for cgyrob
0
124

The End.