all groups > c# > october 2007 > threads for friday october 19
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 30 31
Pushpins and where to get them
Posted by at 10/19/2007 6:41:25 PM
Hello:
I am working on a project now that has a MDI container. One of my
colleagues made a control that simulated a pushpin window. However,
his is kind of buggy and I was hoping there was a push pin control
already available.
Any help would be nice.
... more >>
A simple question about foreach and datatypes
Posted by Tony Johansson at 10/19/2007 5:15:22 PM
Hello!
Why does not this cause a compile error because a ulong has never been
implicitly convertible to byte?
ulong[] vektor = {100000,200000,300000};
foreach(byte b in vektor)
{
Console.WriteLine("i={0}", b);
}
If I have these statements below then I get a compile error.
But it'... more >>
Question on OO best practices with Foreiqn keys
Posted by BillG at 10/19/2007 4:49:13 PM
I have pondered this question often and have done it several ways but I am
wondering what is the correct OO way to handle this.
In my SQL Sever database I have the following tables for example,
Member and MemberStatus
Member status has two fields StatusCd and Description. ex. 'A' and
'... more >>
Re: Regular expression to match only strings NOT containing particular words
Posted by Jürgen Exner at 10/19/2007 4:40:25 PM
Jürgen Exner wrote:
> Dylan Nicholson wrote:
>> I can write a regular expression that will only match strings that
>> are NOT the word apple:
>>
>> ^([^a].*|a[^p].*|ap[^p].*|app[^l].*|apple.+)$
>>
>> But is there a neater way, and how would I do it to match strings
>> that are NOT the word a... more >>
XP visualStyle
Posted by R.A.F. at 10/19/2007 4:04:21 PM
Hi,
1. How can i detect if Windows XP has its Visual Style enabled or not ?
2. how can i use this Visual Style on my custom control ? I mean how to
make them look like XP control.
3. if visual style is disabled, how can i draw control according to old
standard (flat or 3D) ?
thanks a lot... more >>
RegEx c# help
Posted by natebruneau NO[at]SPAM gmail.com at 10/19/2007 3:02:51 PM
I wrote this regex
<font>.*\((?<Inside>.*?)\)</font>
"<font> (Hi there)</font></font><font> (Hi there)</font><font> (Hi
there)</font><font> (Hi there)</font><font> (Hi there)</font>"
However it only returns the whole thing
<font> (Hi there)</font></font><font> (Hi there)</font><font> (Hi
... more >>
Radio Button Bind issue
Posted by at 10/19/2007 2:59:30 PM
Hello:
When I clicked on a radio button, it does not get checked. Instead,
the radio button group is cleared.
This occurs because when one radio button loses its check, it sets the
data source. Since the data source is set, the interface is set.
The problem is that the since the interface... more >>
System.ObjectDisposed Exception when Button is clicked
Posted by Treadstone at 10/19/2007 2:37:13 PM
Hi All,
I am writing an application in C# (.NET CF) to generate a vCard and
transmit it over bluetooth.
To do this, on the menu item of a form, i generate an "On click Menu
Item" event and that will take me to a new form.
In this new form I use the ChooseContactDialog class to obtain a
conta... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
FileSystemWatcher Inconsistency
Posted by Soulless at 10/19/2007 12:51:06 PM
Hi, I implemented the FileSystemWatcher in an application and on my XP
system it works fine. If I add a file to a directory, it will enable
a button and disable if removed.
On another XP system it does not work in a consistent manner. When
file is created, the button does not enable.
I am... more >>
AscW Equivalent
Posted by Richard at 10/19/2007 12:41:08 PM
VB has the AscW function. There is no corresponding C# function. How can I do
this in C#? I do not want to reference the Microsoft.VisualBasic namespace
for just this function.
... more >>
DataGridViewCell Multi-Line problem with long cell values.
Posted by Chris Shepherd at 10/19/2007 11:50:03 AM
Another day, another problem with DataGridView display.
Here's the scenario: .NET 2.0, I have a WinForms application that
basically just allows a user to review comments on a particular item. It
doesn't matter what the item is, it could be a blog entry, a widget, or
a document, I wanted to ... more >>
Dataset VS2005 and SQLServer2005
Posted by active T at 10/19/2007 11:47:25 AM
Hi,
I've build a application, and this is the first time that i try to use
the dataset (designer) from VS. It seems to be very intressing
building a dataaccesslayer into my application. I use stored
procedures for the actions on the databases. This working fine. But
now i want to use the retu... more >>
UTF-8 std::string to System::String^
Posted by barnum NO[at]SPAM bluezone.no at 10/19/2007 11:43:37 AM
Hi,
I have a std::string which I know is UTF-8 encoded. How can I make a
System::String^ from it?
I tried UTF8Encoding class, but it wants a Byte array, and I don't
know how to get that from a std::string.
Thanks for any help!
... more >>
TextReader is missing Encoding property, why?
Posted by Rene at 10/19/2007 9:11:53 AM
Hi,
I decided to take a closer look at the TextWriter and TextReader abstract
classes just for fun.
While poking around, I noticed that the TextWriter class includes an
'Encoding' property in its definition. To me, this sounds very logical
because the TextWriter is all about writing text... more >>
Service application
Posted by Alex at 10/19/2007 7:05:28 AM
Hi, everybody
I've got a couple of questions, one appears an easy one and another
looked to me more difficult. So, I wrote in C# very simple service
and the only thing this service does - it's starting some exe. Now,
the simple question is how I can access and modify such things like
versio... more >>
Comparing Dataset Question
Posted by Franck at 10/19/2007 6:36:28 AM
how come unchanged always true even if data changed
This code come from my saving button:
============================================
DataSet ds1 = new DataSet();
DataSet ds2 = new DataSet();
DataSet ds3 = new DataSet();
//Static Dataset which contain values when my form load
ds1.Table... more >>
Weird design decision in LinQ To SQL
Posted by teddysnips NO[at]SPAM hotmail.com at 10/19/2007 5:54:30 AM
I'm taking a look at LinQ to SQL and I'm mystified by a design
decision taken by the language design mavens.
Take this simple snipple:
var q =
from c in db.Customers
where c.City == "London"
select c.CompanyName;
Why is this not in the order that standard SQL takes - e.g.
va... more >>
Backward compatibility vs serialization
Posted by Jesper, Denmark at 10/19/2007 5:29:00 AM
Hi,
Serialization is great!. No doubt. However, as my program develope I often
have to restart with new data as the serialized classes changes in fields.
Is there a clever way to implement backward compatibility using
serialization. Just as youre able to open old word documents in the late... more >>
Literal string
Posted by cameljs18 NO[at]SPAM yahoo.com at 10/19/2007 5:07:02 AM
Converting a string variable into a string literal. How do I add the
@ character in front of the string?
I cannot add it when the string is created as it will affect other
parts of the program.
I have tried these but they do not work:
label1.text = @S
label1.text = "@" + S
I want to be... more >>
C# class reference to another class?
Posted by James Booker at 10/19/2007 3:51:18 AM
Hi all - this should be a very easy question to you guys.
Say I have two classes, class1 and class2. In my application, class2
can't operate without a class1, as class1 performs communication over
the network, as a sort of abstraction layer.
Now I could create a class1, and a class2, and mak... more >>
InitializeComponent takes 3 seconds, can I do anything to speed it up?
Posted by deerchao at 10/19/2007 3:48:24 AM
Hi, I have a MainForm with Lots of Menu Items in a MenuStrip control,
several items in a StatusStrip, and a DockPanel from DockPanel Suite.
The problem is it takes 3 seconds long to execute the
InitializeComponent() mehtod generated by Visual Studio on Windows XP
in a "cold start" - the first ti... more >>
Regex q: Try getting this working with grabbing the content without ( and )
Posted by natebruneau NO[at]SPAM gmail.com at 10/19/2007 3:02:47 AM
I want the output to look like this
Output(good):
findme
Output(bad)
(findme)
I am having trouble getting rid of ( and ). I tried adding \x28 and
\u0028 after test but same problem. Any ideas?
Thanks
-Nate
Label1.Text = "";
MatchCollection mc1 = Regex.Matc... more >>
Focus() in Control vs. UserControl
Posted by milund at 10/19/2007 2:45:41 AM
Hi,
I am in the process of writing a custom control. In the OnMouseDown
method I call this.Focus() to enable the control to receive keystrokes
in OnKeyDown(). My control is hosted in a MDI form.
Originally my control inherited from UserControl, but then the call to
this.Focus() returned fal... more >>
C# 64-bit DLL?
Posted by George at 10/19/2007 2:23:47 AM
Hello everyone,
I am using C# to develop DLL using Visual Studio 2005 and .Net 2.0, and I
have no idea of how to make my DLL work with applications on 64-bit platform.
Above all, I do not utilize any new features in my DLL of 64-bit. So, I want
to check the general rules,
1. For C#, is... more >>
Url string to ascii
Posted by bg_ie NO[at]SPAM yahoo.com at 10/19/2007 1:55:20 AM
Hi,
How can I convert:
Copy%20of%20File
to
Copy of File
I could use a regex but I'm unsure what other escapes exist for url
which might also catch me out. I'm thinking there is a function that
worries about this for me.
Thanks,
Barry
... more >>
Populate a treeview with a xml string
Posted by ippo at 10/19/2007 1:19:44 AM
Hi all, I would like to know if is possible to populate a treeview
using a xmlstring in a c# class.
thank you all
Bruno
... more >>
Grid Class and build a view for it
Posted by R.A.F. at 10/19/2007 12:00:00 AM
Hi,
I would like to know several things about the Grid class from
System.Windows.Controls :
1. Can we create new columns types (e.g. columns only with SpinBoxes, or
Progressbars, or comboboxes, ...) ?
if yes, how ?
2. If point 1 is possible, how can we sort items contained into cells o... more >>
C# has a soul mate: F# productized
Posted by Jon Harrop at 10/19/2007 12:00:00 AM
Microsoft have just announced that they are going to productize the F#
programming language, placing it alongside C#:
http://fsharpnews.blogspot.com/2007/10/microsoft-to-productize-f.html
Very cool indeed.
--
Dr Jon D Harrop, Flying Frog Consultancy
http://www.ffconsultancy.com/prod... more >>
Making a POST to a remote web server and waiting for a response
Posted by Dylan Parry at 10/19/2007 12:00:00 AM
Hi,
I'm working on a project that involves the company I work for and
another company that we have been working with. Part of the project
involves passing an XML file between two servers when a user clicks a
button within a CMS.
I'm told, by the other company, that the time taken to process... more >>
Using a datasource
Posted by TonyJ at 10/19/2007 12:00:00 AM
Hello!
I'm looking at VS2005 which is a bit different to VS2003.
If I for example click on the meny line Data and there choose Show Data
Source or
Add New Data Source these does not exist in VS2003.
Now to my question if I click on Add New Data Source there are three
alternatives here
Dat... more >>
Manipulating OpenOffice .ods files in C#
Posted by Giulio Petrucci at 10/19/2007 12:00:00 AM
Hi there,
I need to accomplish this (trivial) task: I have some .csv files and I
have to place them into differente sheets of a .ods file. As far as you
know, is there any .NET library (and in C# ut sould be GREAT) to
manipulate .ods files?
Thanks in advance,
Giulio - Italia
--
OnAi... more >>
|