Click here to Skip to main content
15,898,995 members
Home / Discussions / C#
   

C#

 
QuestionPreventing MDI child from maximizing in c# Pin
pramodgupta2428-Apr-08 20:26
pramodgupta2428-Apr-08 20:26 
GeneralRe: Preventing MDI child from maximizing in c# Pin
Aravinthan28-Apr-08 20:59
Aravinthan28-Apr-08 20:59 
GeneralRegarding Serialization Pin
tasumisra28-Apr-08 18:35
tasumisra28-Apr-08 18:35 
GeneralRe: Regarding Serialization Pin
Christian Graus28-Apr-08 19:39
protectorChristian Graus28-Apr-08 19:39 
GeneralRe: Regarding Serialization Pin
tasumisra28-Apr-08 19:51
tasumisra28-Apr-08 19:51 
GeneralRe: Regarding Serialization Pin
Christian Graus28-Apr-08 19:57
protectorChristian Graus28-Apr-08 19:57 
GeneralRe: Regarding Serialization Pin
Roger Alsing28-Apr-08 22:18
Roger Alsing28-Apr-08 22:18 
QuestionHow do i fix this mess!! Pin
ketto28-Apr-08 17:48
ketto28-Apr-08 17:48 
How do I fix this mess!! trying to C# programme which displays changing minutes and seconds, representing them by two long rectangles, maximum width of rectangle equal to 600 pixels (10 pixels for each minute and each second). redraw the two rectangles every second. please help!!!!

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication1
{
public partial class Form1 : Form
{
private Random randomNumber = new Random();
//private void timer1_Tick();
private Graphics paper;
public Form1()
{
InitializeComponent();
paper = progressBar1.CreateGraphics();
timer1.Interval = 600;
timer1.Enabled = true;
//count = count + 1;
//label1.Text = Convert.ToString(count / 60);

}

private void start_Click(object sender, EventArgs e)
{
timer1.Start();
}

private void stop_Click(object sender, EventArgs e)
{
timer1.Stop();
}

private void clear_Click(object sender, EventArgs e)
{
paper.Clear(Color.White);
}

private void timer1_Tick(object sender, EventArgs e)
{
//int x = 5;
//int y = 20;
int x, y, size;
Brush myBrush = new SolidBrush(Color.Black);
x = timer1.Tick+= progressBar1.Width;
y = timer1.TickGetType+= progressBar1.Height;
size = randomNumber.Next(1, 60);
paper.FillRectangle(myBrush, x,y,size,size);
AnswerRe: How do i fix this mess!! Pin
Christian Graus28-Apr-08 18:09
protectorChristian Graus28-Apr-08 18:09 
GeneralRe: How do i fix this mess!! Pin
ketto28-Apr-08 18:30
ketto28-Apr-08 18:30 
GeneralRe: How do i fix this mess!! Pin
Christian Graus28-Apr-08 18:49
protectorChristian Graus28-Apr-08 18:49 
GeneralRe: How do i fix this mess!! Pin
ketto28-Apr-08 23:01
ketto28-Apr-08 23:01 
GeneralRe: How do i fix this mess!! Pin
Christian Graus28-Apr-08 23:58
protectorChristian Graus28-Apr-08 23:58 
GeneralRe: How do i fix this mess!! [modified] Pin
MarkB77728-Apr-08 18:56
MarkB77728-Apr-08 18:56 
GeneralRe: How do i fix this mess!! Pin
Christian Graus28-Apr-08 19:38
protectorChristian Graus28-Apr-08 19:38 
GeneralRe: How do i fix this mess!! Pin
MarkB77728-Apr-08 20:01
MarkB77728-Apr-08 20:01 
GeneralRe: How do i fix this mess!! Pin
Christian Graus28-Apr-08 20:33
protectorChristian Graus28-Apr-08 20:33 
AnswerRe: How do i fix this mess!! Pin
Harvey Saayman28-Apr-08 21:16
Harvey Saayman28-Apr-08 21:16 
GeneralRe: How do i fix this mess!! Pin
ketto28-Apr-08 23:05
ketto28-Apr-08 23:05 
GeneralRandomly Removing an Item from an Array Pin
Ian Uy28-Apr-08 16:22
Ian Uy28-Apr-08 16:22 
GeneralRe: Randomly Removing an Item from an Array Pin
Paul Conrad28-Apr-08 16:24
professionalPaul Conrad28-Apr-08 16:24 
GeneralRe: Randomly Removing an Item from an Array Pin
Ian Uy28-Apr-08 20:15
Ian Uy28-Apr-08 20:15 
GeneralRe: Randomly Removing an Item from an Array Pin
PIEBALDconsult29-Apr-08 6:15
mvePIEBALDconsult29-Apr-08 6:15 
GeneralRe: Randomly Removing an Item from an Array Pin
Christian Graus28-Apr-08 18:12
protectorChristian Graus28-Apr-08 18:12 
QuestionProgramming to DataTables VS. Programming to type safe objects using generic interfaces? Pin
Steve Holdorf28-Apr-08 11:17
Steve Holdorf28-Apr-08 11:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.