all groups > c# > february 2008 > threads for saturday february 9
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
About generics
Posted by Tony Johansson at 2/9/2008 10:39:05 PM
Hello!
Assume you have this generic Dictionary class with key, value pair the first
part is the key and the second part is the value part.
The key value is a string and the value part is the Car.
Dictionary<string, Car> directory = new Dictionary<string, Car>();
Now to my question assume tha... more >>
VS2008 Form designer does not open form with generic types
Posted by Andrus at 2/9/2008 10:11:05 PM
I created WinForms form containing generic DataGridView on and some other
controls.
Forms designer will not open this form anymore.
Error text is shown below. Application runs this form OK, rebuild all does
not fix.
I tried to change form base class to non-generic class but this does not
help.... more >>
Yenc Help
Posted by Extremest at 2/9/2008 9:27:18 PM
Does anyone know how to decode a yenc encoded file? I have created a
decoder that seems to work great for text. Now i am trying to create
another one for images and I can't get it to work. I have changed the
encoding on mine and that didn't work and then I tried the only 2 open
source ones I ... more >>
configuration data for service?
Posted by James at 2/9/2008 9:20:09 PM
I have a service which needs configuration data. I am currently using
userSettings and applicationSettings through VS settings manager. They
are stored in the Service.exe.config file along with the service. I
have an application which manages the service and it communicates via
remoting. I have ... more >>
Setting a Generic Type to Zero
Posted by Jonathan Wood at 2/9/2008 7:35:10 PM
I've decided to write a little routine using generics. That is, a method
that takes an out argument of any data type.
However, being the quirky language that C# is, I have the following problem.
The method returns a bool value that indicates if it is successful. If it is
successful, the ou... more >>
Is SqlServer Express suppose to get installed when VS2008 Pro is installed?
Posted by Academia at 2/9/2008 6:31:39 PM
I was told that SqlServer express should get installed when VS2008Pro is
installed (that is it is on the same DVD).
I had a couple of errors during vs2008's installation and I don't see any
signs of sqlserver.
Is SqlServer Express suppose to get installed when VS2008 Pro is installed?
... more >>
Regex help
Posted by Epetruk at 2/9/2008 3:13:23 PM
Hello,
I'm trying to write a regular expression that extracts the host name from a
string.
In other words, the string I extract must have:
- only letters, numbers and fullstops in it;
- the fullstops most be in the middle of it.
So if I have a string like this:
"this is a host.... more >>
XAML - Storing and accessing global constants - How?
Posted by DanThMan at 2/9/2008 1:37:41 PM
This seems like it should be so simple, but I'm just not having much
luck with this. I have an constant in my App.xaml.cs file (i.e., code-
behind) called Name.
public const string Name = "Dan";
And now, I want a Label on my Window1.xaml page that shows the Name. I
will eventually want to s... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
A question about understanding arraylist and object
Posted by Tony Johansson at 2/9/2008 12:33:08 PM
Hello!
Assume I create an ArrayList like this
ArrayList arraylist = new ArrayList();
Now to my questions:
1. Does this mean that all the elements that is added to the arraylist is of
type object and is referencing the actual added elements ? Is this correct?
2.So assume I have three ele... more >>
Cleaning Up Custom Collection classes
Posted by jehugaleahsa@gmail.com at 2/9/2008 11:13:54 AM
Hello:
A while back I wrote my own collection classes for C#. It was merely a
teaching exercise for myself.
The problem is that my collections perform drastically slower than the
built-in classes. I was able to do some performance monitoring and
came to the conclusion that a good portion of... more >>
Best way to group data (in XML)
Posted by jehugaleahsa@gmail.com at 2/9/2008 9:38:40 AM
Hello:
I have an XML file that contains records with a Date attribute. I
would like to group all the records together with a particular date,
so that I can later iterate over the different dates to calculate
information based on the contained records.
So, for instance, I have sales records ... more >>
Html scrapping
Posted by bruinee@gmail.com at 2/9/2008 9:23:07 AM
Hello everyone,
I'm looking for a code, that would let me emulate logging into some
session + cookie based web sites and then data mining the pages
inside.
Obviously, suppose, I have an accout (login+password) for those sites.
Thanks for any help.... more >>
Runtime errors when trying to connect to SQL Server Express
Posted by indtaz at 2/9/2008 8:32:21 AM
I am a novice user of C# . I am trying to create a small application,
that connects to SQLServer and retrieves data into a List box.
However, I keep getting the following run-time error:
Cannot create instance of 'Window1' defined in assembly 'myTest_XAML,
Version=1.0.0.0, Culture=neutral, ... more >>
Few difficult for me questions about Dispose()
Posted by Piotrekk at 2/9/2008 7:08:09 AM
Hi
I have few questions which I would like to ask:
1. When would I place my own code to Form1 : Form method
2. When would I create Dispose method by implementing IDispose - what
is the example scenario. If so, why is better than doing something
different / simpler
What I am trying to und... more >>
Webbrowser control help....
Posted by jim at 2/9/2008 3:11:18 AM
Has anyone seen a way to read the data stream for a URL being navigated to
by a webbrowser control and edit it (i.e. search HTML stream for and
possibly remove objectionable language for a kid's browser) before it's
displayed in the browser?
I'd also like to know if there is a way to drag a... more >>
|