all groups > c# > february 2008 > threads for saturday february 16
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
Updating status label and status bar
Posted by K Viltersten at 2/16/2008 11:50:33 PM
I added a status label and a status bar
and as the status reaches its maximum
the text on the label will change. The
problem is that the text changes BEFORE
the bar gets "pumped up" to the max.
bar.PerformStep ();
if (bar.Value < bar.Maximum)
status.Text = "Pretending to work!... more >>
Disabling scrollbars in main form
Posted by Andrus at 2/16/2008 10:03:30 PM
To reproduce, run the code, move part of child window outside parent.
Observed:
scrollbars appear.
Expected:
Scrollbars should not appear since AutoScroll if false.
How to fix ?
Andrus.
using System;
using System.Windows.Forms;
public class Test {
static void Main()... more >>
What's the size of the window
Posted by K Viltersten at 2/16/2008 9:17:21 PM
Just for fun i tested to draw a diagonal
line and discovered that
int w = this.Width, h = this.Height;
g.drawLine (0, 0, w, h);
doesn't shoot right. It seems that the
line start at the right position but it
reaches the bottom part before it comes
to touch the right edge...
In Swin... more >>
TableLayoutPanel Resize
Posted by Mark at 2/16/2008 8:55:00 PM
Hi All
I was just wonder when using the TableLayoutPanel is it possible for the
user to dynamically resize the rows/cols with the mouse at runtime somehow?
I'm aiming a for form which allows resizing of controls like Outlook Express
does. Am I on the right path at all?
Thanks
Mark
... more >>
Could we transfer menuitem from asp.net
Posted by ad at 2/16/2008 8:09:45 PM
Could I transfer the web form menu items (in the Web.sitemap) to windows
form?
... more >>
Abstract event
Posted by Andrus at 2/16/2008 7:34:05 PM
public delegate void EntitySelectedEventHandler(EntityBase selectedEntity);
abstract internal partial class BrowseForm : Form {
public abstract event EntitySelectEventHandler EntitySelect { add;}
}
causes error: An add or remove accessor must have a body
but
public abstract EntitySelec... more >>
ODBC string in ADO.NET
Posted by Alex K. at 2/16/2008 7:16:11 PM
Hi all
I just noticed that OdbcConnection (.NET 2.0 SP1) does not accept a
connection string that works file in ADO 2.8. For example, following string
gives me an error "Login failed ... cannot open database "AdventureWorks"":
Provider=MSDASQL.1;Password=...;Persist Security Info=True;User... more >>
How to use the xml sql server datatype with c#
Posted by Andy B at 2/16/2008 6:26:17 PM
Just wondering, How do you use the xml sql server datatype with c#? When I
made a dataset the xml column showed up in c# as a string. Do I have to
write valid xml code into the string in order for it to work right?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to move fast around a 2D array
Posted by jehugaleahsa@gmail.com at 2/16/2008 5:24:41 PM
Hello:
I have a List<T[]> where the internal arrays are of a fixed size.
I want to be able to take an index of, say, {1, 3} and quickly move to
the next nth position. So say I have a method that looks like this:
public struct Position
{
Position(int x, int y) { X = x; Y = y; }
i... more >>
Worse than Hungarian notation?
Posted by Ronald S. Cook at 2/16/2008 5:15:31 PM
I'm an old Hungarian (e.g. "clsSystem") fan that came reluctantly to the
other side.
I was told how it was no longer needed since one could just mouse over a
term to see the type.
However, for various reasons, everywhere in our new project the type is
appended to the object name (e.g. "S... more >>
Question about C# appropriateness
Posted by Anthony P. at 2/16/2008 12:39:43 PM
Hello Everyone,
I have a piece of hardware that does not have any drivers. So, I'm
considering taking the dive into driver development and writing my own
and I'm considering doing so in C#. I'm wondering, though, if C# is an
appropriate language for this task or do I really need C++?
Can an... more >>
Text not writen in the console when (re)painting the window
Posted by K Viltersten at 2/16/2008 11:50:36 AM
I've painted an ellipse on a form i'm
designing and it looks as expected.
Then, i noticed that it doesn't get
repainted as the size changes. To see
if the OnPain is called i added a
console print out.
The code looks as follows.
protected override void
OnPaint (PaintEventArgs e){
... more >>
Use a remote web service with dropdownlist
Posted by royend at 2/16/2008 11:16:41 AM
Hi.
I need to access a remote web service which I have created on the
domain www.abc.net. The web service is working well when used on www.abc.net
and is also accessible through the web browser responding with the
usual WSDL.
For my second domaind (www.abcd.net), I have added the Web Service ... more >>
Painting the components
Posted by K Viltersten at 2/16/2008 11:03:38 AM
I've seen both versions of pain methods
while googling.
private void OnPaint (object sender, PaintEventArgs e)
protected override OnPaint (PaintEventArgs e)
While i do understand the meaning of the
different statements as such, i'm unsure
which one would be recommended (v.3.5 of
..Net) ... more >>
Question c#
Posted by ross_smith@csaa.com at 2/16/2008 6:38:18 AM
Is it possible to replace a string path with a steam of some sort?
Here is an example: item.path = "filename.xxx" where you use some
method (streaming comes to mind) that allows me to actually stream the
file to item.path instead of having to write it out to the hard drive
first?... more >>
SQL CLR UDF
Posted by songstre at 2/16/2008 6:06:54 AM
am currently trying to write a very simple UDF that checks for the
existence of a file. If the file does not exist it should return
null.
It doesn't seem to see the file even when it exists, however. I've
checked and rechecked and the file is there. HELP!
I tried using both UNC and mapped driv... more >>
Editor to read application configuration
Posted by John at 2/16/2008 12:21:44 AM
Hi
I am looking for an editor that will allow a user to edit application
configuration easily and I have found below;
http://www.codeproject.com/KB/cs/configeditor.aspx
Unfortunately it does not read my app.config (given below). Could someone
please give me a quick hint as to what can I... more >>
|