473,387 Members | 1,925 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,387 software developers and data experts.

Why winform panel won't update?

I have a winform with a penal which is supposed to be used a LED indicator for a serial port communication. Basically, it is supposed to flash RED Color if not it should be BLACK.

As a test, I created a very simple program - winform with a panel, timer and a button.

When you click the button, it starts the timer and updates the panel's backcolor back and forth between black and red every second.

This test program works flawlessly on Windows. However, when I run the same program on Linux under MONO, the panel only gets updated, when I move my mouse or click or drag on the winform. If not, it simply ceases to update.

What am I doing wrong? Any help will be greatly appreciated. Thank you.
Jan 3 '13 #1
1 3282
adriancs
122 100+
Try this:
Expand|Select|Wrap|Line Numbers
  1. panel1.Refresh()
Jan 14 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: John Baker | last post by:
Hi: Hi: I have a form which is based on a query, and is being used to update a table. It all works well, except for one thing. I have a number of unbound calculation fields (total value,...
3
by: DFS | last post by:
This code fails to update the connection strings (Access97 - SQL Server 2000 table links). It works in Access2000. Public Sub updateConnStrings() For i = 0 To db.TableDefs.Count - 1 Set td =...
4
by: Jonathan Upright | last post by:
Greetings to anyone who can help: I'm using WebMatrix to make ASP.NET pages, and I chose the "Editable DataGrid" at the project selector screen. As you may know, it defaults to the Microsoft...
3
by: Morten Dahl | last post by:
My database won't update?? I'm using VB.NET 2005 and SQL Server 2005 Express. I Create a Form and a database. Using the wizard draging the DatabaseDataSet Table on the form. Everything works...
10
by: markwalker84 | last post by:
Hello everyone! Got a bit of a problem... Two of the panels on my program contain a number of check boxes. The exact number of which is determined by a pair of variables. I have recently...
1
by: Larry Bud | last post by:
I added another column to a table, a varchar(1000), added a textbox to the formview, bound it (2 way), added the parameter to the update, but it won't update. I ran SQL Profiler, and the...
1
by: femgeek | last post by:
Hi, I need serious help with a C# winform, I have a dataset with several tables, and I have structured a 3-tier code architecture. My problem is that updates to the database dont work, even though...
6
by: Garima12 | last post by:
There is a update panel,gridview and update progress. fetching the data from database and filling in gridview. at the time of processing update progress is working and showing processing........ My...
3
by: asfmendes | last post by:
Hello everyone! I am creating a C# application for tablet pcs and I want to animate some strokes. I am moving the strokes and, after each move, I want to reflect that move in the screen. However,...
7
by: bbobely | last post by:
Hi, I've built a sequence that works thusly: User chooses a value from a combo box. This causes a query to run displaying records with a field value matching the combo box in subform 1. Then, the...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.