473,386 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

variations in c#

adapted from:
http://www.gotmono.com/docs/gnome/bi...tonwidget.html

// togglebut.cs

using Gtk;
using GtkSharp;
using System;
using System.Drawing;

public class togglebuttons
{

public static void Main(string[] args)
{

Application.Init();

Window window = new Window("toggle my buttons");

window.DeleteEvent += new DeleteEventHandler (delete_event);

/* Creating a new ToggleButton */

ToggleButton togglebutton = new ToggleButton ("Ding Dong!");
togglebutton.Clicked += new EventHandler (clickedCallback);

window.Add(togglebutton);
window.ShowAll();

Application.Run();

}

static void delete_event (object obj, DeleteEventArgs args)
{
Application.Quit();
}

static void clickedCallback (object obj, EventArgs args)
{
/* Check Active Property */

if (((ToggleButton) obj).Active)
Console.WriteLine("Hello Dumass!");
}
}
--
http://www.timvp.com/greenacr.html

Jul 21 '05 #1
0 1134

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: David Siedband | last post by:
The problem I'm solving is to take a sequence like 'ATSGS' and make all the DNA sequences it represents. The A, T, and G are fine but the S represents C or G. I want to take this input: , ,...
4
by: Alex Bell | last post by:
There have been several postings recently dealing with bugs in Internet Explorer. Can anyone point me to a review of these bugs and how to work around them? Regards, Alex
2
by: John Baker | last post by:
Hi: I have two systems, one a W98 and the other XP Home. I have Access 2000 installed on both, and have run into a difference in the way the two behave. I have a table on which I wish to reset...
0
by: Oliver Douglas | last post by:
adapted from: http://www.gotmono.com/docs/gnome/bindings/gtk-sharp/buttonwidget.html // togglebut.cs using Gtk; using GtkSharp; using System;
1
by: Otto Blomqvist | last post by:
Hello! I have a small database (10MB gz dump). When I do a pg_dump -l -s (to list the schema) of the original database it takes below 1 second. But when I do dump of a copy of the database...
3
by: emmba | last post by:
The premise for my assignment is to write variations of the read_line functions. The variations are: a) skips leading whitespace before storing input b) stops reading at first whitespace...
4
by: Jordan S. | last post by:
Using .NET 2.0 (C#) I'm writing a small app that will have a "Person" class that exposes FirstName and LastName properties. At runtime, a "People" collection will be populated with a few thousand...
0
by: Showjumper | last post by:
Is one better than the other with handling xml files? Ashok
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.