all groups > c# > december 2005 > threads for monday december 12
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
Efficient Data Structures
Posted by Curious at 12/12/2005 11:48:03 PM
Hi,
I am searching for a data structure that stores key-value pairs in it.
This data structure is to hold large amounts of key-value pairs, and so
needs to be efficient both in insertion and deletion.
Does anybody know of ready data structures that can be freely used
under the .Net framwork... more >>
How to fix the height size of Panel1 on SplitContainer?
Posted by abc my vclass at 12/12/2005 11:35:19 PM
How to fix the height size of Panel1 on SplitContainer?
... more >>
how can I get dummy file in memory
Posted by Pohihihi at 12/12/2005 11:24:07 PM
What I am trying to do is that have a psyodo file in memory rather physical
media so that I can do open/create/save/read etc on it rather on a physical
media. Is it possible?
... more >>
Timespan Problem
Posted by jack at 12/12/2005 11:12:17 PM
Hi all i have just begin csharp have a problem in saving time in
database
I have to comboboxex in form one containing hours from 0 to 23
and another containig minutes from 0 to 59
the problem is saving it in to the database
I want to save only the time in to the database but i dont know ho... more >>
Storing information in an image
Posted by Maqsood Ahmed at 12/12/2005 11:11:22 PM
Hello,
Does anyone have any idea that how can I store extra information in an
image. such as text, as a part of image. I don't want to show the text
in an image but I want to store this information in it.
Actual I have to design an application which can embed and retrieve text
messages from an ... more >>
Am I just being thick? XML file - 2 way Data Binding +Encryption
Posted by Chad A. Beckner at 12/12/2005 8:42:45 PM
Hi,
I am developing an application and need to make it so the application data
is stored in some manner. I am thinking of an XML file as the data source.
I would like to setup 2 way data binding & also make it so the xml file is
encrypted. I'm using .NET 2.0.
Thanks!
Chad
... more >>
Error about object array converting
Posted by Ñ©ÔÆÓ¥ at 12/12/2005 8:15:14 PM
Hi,everyone,
I met a trouble,could you give me some useful hints,thank you very much!
===========error message:
Unable to cast object of type 'System.Object[]' to type
'System.Data.OleDb.OleDbParameter[]'.
==========source code like follow:
StringBuilder sbSQL = new StringBuilder();
... more >>
Custom ListView
Posted by dominique at 12/12/2005 7:53:27 PM
Hello
i would like to create a custom list view with draw custom graphics elements
i try to override OnDrawItem, but it doesn't work
could you help me please?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Seeking NNTP classes.....
Posted by Jim at 12/12/2005 7:19:18 PM
Have you seen any NNTP classes that I may use or build upon to build a
simple newsreader/downloader?
Is there such a class in the .Net framework that I have overlooked? If not,
inclusion of RFC documented protocols would certainly be a good idea for a
class hierarchy in the .Net classes.
Y... more >>
Refreshing the desktop wallpaper
Posted by Jeffery Tyree at 12/12/2005 6:54:55 PM
My application is written in C#.NET and will run on XP machines. I would
like to programmatically change the desktop wallpaper. Reading and writing
registry values is no problem but I'm having difficulty figuring out what
the proper message is and how to send it to the system message queue s... more >>
How to user abstract class in EXE and DLL without get
Posted by scottt at 12/12/2005 6:04:02 PM
I have an EXE and DLL in the same solution. Each one uses the same abstract
class in their respective code. How can I set up the build so that I don't
get the
"X is defined in multiple places" warning message.... more >>
Run at startup with dependent files?
Posted by Pyerwoh at 12/12/2005 5:59:02 PM
Greetings,
I'm trying to have an application resume after a reboot, by making an entry
into the Run registry key ("SOFTWARE\Microsoft\Windows\CurrentVersion\Run") .
This works great, and my application starts up after a successfull reboot.
However, my application needs to read a text file... more >>
Sorting objects, that are in an ArrayList?
Posted by RCS at 12/12/2005 5:51:52 PM
So I have an ArrayList that gets populated with objects like:
myAL.Add(new CustomObject(parm1,parm2));
I'm consuming this ArrayList from an ObjectDataSource and would like to have
this support sorting (because it's ultimately being consumed in a GridView).
I can't simply sort the ArrayList... more >>
Copying data between byte arrays
Posted by Vitaly Zayko at 12/12/2005 5:42:00 PM
It's probably simple but I can't find a way how to copy number of bytes
from one byte array to another? Just like Array.Copy(SourceArray,
SourceIndex, DestArray, DestIndex, Length) does but in my case the
arrays have different length. Of course I can copy byte by byte but I
guess there shoul... more >>
Problem passing in reference of calling class into DLL
Posted by scottt at 12/12/2005 5:32:03 PM
hi,
I am having a little problem passing in reference of my calling class (in my
..exe)into a DLL. Both programs are C# and what I am trying to do is pass a
reference to my one class into a DLL function. When I try and compile the DLL
I get "The type or namespace name "MyForm" could not be ... more >>
Why use the DataTableMapping in SqlDataAdapter when updating?
Posted by Jason Huang at 12/12/2005 4:55:53 PM
Hi,
I am wondering why use the DataTableMapping in SqlDataAdapter when Updating
data.
Would someone give me some advice?
Thanks for help.
Jason
... more >>
ASP.NET/DHTML
Posted by David at 12/12/2005 4:38:34 PM
All or Anyone:
I am developing an Internet application where pictures are dragged and
dropped into place. I am doing the drag and drop on the client side with
javascript(unless anyone can suggest a better approach). When the picture
(or actually diagram) is finished I want to store informat... more >>
How to change control properties in Form1 from Form2
Posted by Mateusz Rajca at 12/12/2005 4:34:02 PM
Hello,
I have Form1 - the main form with some controls including a button.
I have Form2 - the properties form with a combobox and button. The user can
select the colors of a button in the combobox in Form2 and press "OK". What
code should I add to "OK" so that the user can change the color... more >>
C# Tutorial, does anyone know of any good ones?
Posted by spookyu NO[at]SPAM gmail.com at 12/12/2005 4:26:33 PM
Alright, I'm sure your tired to hearing this but...does anyone know of
any GOOD tutorial's for learning c#. The more basic the better, I have
NO experience with programing before this other than what a friend
taught me (which is very little). I searched around for a while but
every tutorial I fo... more >>
What Is This? > bool isClickInCell = hti.Column == this._columnNum && hti.Row > -1;
Posted by Steven C. at 12/12/2005 4:17:25 PM
I'm trying to learn C#, and I came across the following:
bool isClickInCell = hti.Column == this._columnNum && hti.Row > -1;
What exactly is going on here?
As a Foxpro dude, this totally confounds me ;)
Thanks!
Steven... more >>
Get File Spec of Current DLL
Posted by News NO[at]SPAM InsightfulMES.com at 12/12/2005 4:06:36 PM
Does anyone know how to get the file spec of DLL from within the code?
I thought that System.Reflection.GetExecutingAssembly() would work, but
it returns the name of the program that called DLL routine, not the DLL
file itself.
Mike Buchanan
... more >>
Uptime of system on network
Posted by Brian Henry at 12/12/2005 4:02:54 PM
does anyone know of an easy way to say how long has a specific system been
up and running? I just need to get back the uptime of the servers on our
network for a report, they are all in a Active Directory domain... needs to
be in C# or VB.NET preferably. thanks!
... more >>
mysql byte[] problem
Posted by Eþref DURNA at 12/12/2005 4:01:06 PM
hello,
I have a mysql database(which I could not modify)
and there is a Field type of blob which exuals to byte[] at mysql.
I could not read the data from mysql to get that byte[] values and convert
to string.
Thanks for your help
Esref DURNA
esref_durna@mircosoft.com
... more >>
A simple employee class : OOP Study
Posted by RSH at 12/12/2005 3:57:08 PM
I am really trying to grasp the concept of OOP as it applies to C#.
I am looking at trying to set up a simple Employee Class but I am having
trouble conceptualizing what this class should look like. I was hoping
someone might be able to simply outline what I envision my class to look
lik... more >>
Services talking to each other.
Posted by UJ at 12/12/2005 3:55:16 PM
What's the easiest way to have two services talk to each other?
... more >>
configuration element and collection
Posted by Andrzej Kaczmarczyk at 12/12/2005 3:52:45 PM
Hi,
I am doing some complex configuration handling, and I have similiar setup:
<DataSchema version="1.0">
<modules name="Assets">
<tables>
<tables description="" singular="" plural="" name="City" />
</tables>
</modules>
<modules name="Assets2">
<t... more >>
Collection memory usage in debug build
Posted by greg.merideth NO[at]SPAM gmail.com at 12/12/2005 3:23:53 PM
I'm working on a service for a project that is producing some bizarre
behavior. In debug mode while the service is running, the memory usage
of the service (watching with process explorer) goes from 18MB to 34MB
to 711+MB back down to 51MB then down to 18MB every 1-2 minutes. The
service maint... more >>
Inheritance Woes
Posted by rkozlin at 12/12/2005 3:23:02 PM
Running into an issue where the compiler will throw an error...
"The type '<BaseClass>' is defined in an assembly that is not referenced.
You must add a reference to assembly '<BaseClass>'."
.... when using a derived class where the base class and the derived class
are compiled into separa... more >>
Failed to access IIS metabase
Posted by Dave at 12/12/2005 3:06:02 PM
I'm creating a web app using VS 2005. When I run the app I receive the error,
"Failed to access IIS metabase"
How do I correct this problem?
Thanks for you help.... more >>
DataSource and Interfaces
Posted by John Richardson at 12/12/2005 3:03:48 PM
This is probably a yes/no answer...
I have a datasource for a combobox, and my datasource is an IList. This
list may be composed of two class types, but all implement an INavItem
interface consisting of an ID, and Display field.
Can I specify an interface for the Display/ValueMember field... more >>
Custom KeyCollection
Posted by JoSkillz at 12/12/2005 2:20:05 PM
I am trying to create a custom KeyCollection that will only allow my
domain objects to be added to the Collection. I was hoping I could
achieve the following implementation.
GenericKeyedCollection<int, Person> collection = new
GenericKeyedCollection<int, Person>();
... more >>
OT: Yahoo! Customer Care contact
Posted by Jose Fernandez at 12/12/2005 2:18:08 PM
Hello.
This is a desperated email because I'm in a very desperate situation.
Suddenly, 4 days ago, i tried to sign in my 10 years old yahoo account and
found it was accepting my password. I went to Forget password section and I
can't remember the answer to my secret question... in 10 years I ... more >>
Visual Studio hangs while debugging. Please help!
Posted by Martin Odhelius at 12/12/2005 2:17:06 PM
Hello,
I have a very fustrating problems while debugging ASP.NET applications.
When I am debugging and stepping thru code (with F10 or F11) Visual
Studio some times suddenly just stop responding and the only way get it
up and running again is to kill the aspnet_wp.exe process. When the
de... more >>
Horizontal splitter?
Posted by Susan Baker at 12/12/2005 2:12:43 PM
I am designing a GUI and I need to split the screen into two parts (one
on top of the other) - i.e. I need a "horizontal" splitter. The splitter
control that comes out of the box with VC71 appears to cater for only
vertical splitting (i.e. screens side by side). Anyone knows how I may
split ... more >>
.NET 2.0 Code Challenge
Posted by Roy at 12/12/2005 2:05:03 PM
Get the following code to compile using .NET 2.0. You can use VS Team Studio,
the command line complier, etc.
The restrictions are:
1. Place no code in the APP_CODE folder.
2. Do not create a second project that is referenced by the first.
The code is extremely simple:
1. Create a new w... more >>
How to put a collection into dataset?
Posted by Brett Romero at 12/12/2005 1:43:07 PM
I use a method that returns either a dataset or a collection depending
on the method called. Since no database is involved at the layer I'm
working, I can't use a data adapter's fill method to fill these results
into my local dataset. How can I get these results into the local
dataset?
I ne... more >>
System.Timers.Timer question ???
Posted by melanieab at 12/12/2005 1:34:02 PM
Hi,
I'm have a datagrid, and I'm trying to have a tooltip pop up if a cell has
been hovered on for 2 seconds. I was thinking of using DataGrid.Hover, but
then decided to try this instead:
static System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer();
private void dg_MouseMove(... more >>
How do I check the vesrion of .NET Framework?
Posted by A.M-SG at 12/12/2005 12:42:07 PM
Hi,
What would be the best way to check the version of .NET framework (2.0 Beta,
or 2.0 Release) ?
Thank you,
Alan
... more >>
Why doesn't this simple code compile?
Posted by Roy at 12/12/2005 12:21:02 PM
using Team Studio 2005
1. Create a new web site
2. Add a new class to the project
3. In the Page_Load handler of default.aspx.cxs, create a reference to the
new class
4. compile solution
Result: The type or namespace name 'TestClass' could not be found (are you
missing a using directive or ... more >>
QueueUserWorkItem: Design guidance
Posted by test.file NO[at]SPAM gmail.com at 12/12/2005 11:39:44 AM
I'd like to implement QueueUserWorkItem for some parts of the app;
specifically for DB related caching and file i/o. Example: When the
user finishes work on a file, I'd like to process the file persistence
(some data to db + file system as zip) in the background. I haven't
worked with ThreadPoo... more >>
TryParse with HexNumber returning wrong value
Posted by Greg Wilkerson at 12/12/2005 11:12:28 AM
Ok, Someone tell me what I'm doing wrong. The statement below is
returning 527.0 in v, instead of the expected 215. Am I missing
something?
double v;
if (Double.TryParse("0d7", NumberStyles.HexNumber,
NumberFormatInfo.InvariantInfo, out v))
{
......
}
Thanks,
Greg... more >>
C# confusion
Posted by Jesika at 12/12/2005 10:58:03 AM
I'm coming from a 3 year C background with some basic knowlegde on the Win32
API. I just started learning C# a day ago and I have a couple questions that
I need cleared up that just have me very confused.
[quesitons]
1.) Whenever you declare a class - MyClass - is the class alive in memor... more >>
Help me!!!!
Posted by Sebastiaan at 12/12/2005 10:36:04 AM
Hi!!
we are working on a project to receive IR(infrared).
we currently busy with the receiving part.
We get data true are com2: port. but we can't detect the 0 part of a rc5
signal
Because readfile doesn't read a zero.
it reads zero but we don't have start bit. so it doesn't se... more >>
MD5 Hashing a file for download checks
Posted by Benny Raymond at 12/12/2005 10:14:51 AM
I've nearly finished my personal auto updater and the only thing left to
implement is a hash check against the downloaded file to make sure it's
good before extracting it. Right now I havn't released it so I've
tested that the selected update components download correctly and
extract and th... more >>
.NET Remoting
Posted by Mike9900 at 12/12/2005 7:50:02 AM
We need to get the correct error message from the .NET Remoting server on the
another computer.
When we use .NET Remoting the client does not receive correct SQL Server
error message if the client is on the another computer. For example, if the
client deleted a record in SQL Server and th... more >>
Pass param to an invoked method
Posted by John F at 12/12/2005 7:35:02 AM
Hello,
I'm dynamically loading a child form saved in a DLL. I have this code
working and it's pretty straightforward.
What I'd like to do is pass an object type to an invoked method in the child
form as soon as it's loaded. It seems I can get the invoke working just
fine, but I can't... more >>
Console Application Hangs and loss of memory allocation
Posted by Punisher at 12/12/2005 7:31:03 AM
I have this console app that runs 24/7. When it first starts up it's around
14 megs. I come in today and the app is hung and is at around 1 meg.
I know this is a broad question but I'm looking to brainstorm any ideas of
what might of caused this.
No messages in the event log.
The ap... more >>
Toolbar and Windows Forms
Posted by Alfredo Barrientos at 12/12/2005 7:29:40 AM
Hi,
I have a little trouble trying to assign a Toolbar control to another
toolbar variable control.
I am getting my forms controls with this:
for (int j = 0; j <= frmChild.Controls.Count - 1; j++)
{
// Some operations
if (ctrl.GetType().ToString() ==
"System.Windows.F... more >>
C#/VS 2005 availability in Europe
Posted by robertino at 12/12/2005 7:10:14 AM
Hi all,
Can somebody explain to me why VS 2005 has been available in the US for
a few weeks now, but seems to be nowhere available in Europe yet (based
on amazon.co.uk / amazon.de listings) ?
Is it to give the US developers a jump-start on us Olde Worlde
code-serfs out here in the sticks? O... more >>
How to set DataGridTextBox.TabStop ?
Posted by Sharon at 12/12/2005 6:55:03 AM
I have a DataGrid control with two columns.
I want to prevent the user getting into the first (left) column by the Tab
key, meaning; I need the cells of the left column to be set to TabStop =
fasle.
I found a small sample showing how to that
(http://msdn.microsoft.com/library/default.asp?u... more >>
How do I use only one OleDbConnection
Posted by Tony Johansson at 12/12/2005 5:04:17 AM
Hello!
We have a database and several forms that access the database. When we
access the database from all the different forms we only want to have one
OleDbConnection that all the forms use. I assume that must be possible
because creating a OleDbConnection for each form takes a lot of time.
... more >>
xml and data sets
Posted by Diogo Alves - Software Developer at 12/12/2005 3:56:01 AM
Hi,
I am trying to put some XXL comde in a database column, and I am using a
dataset to edit it...
let's imagine this scenario
<?xml version = "1.0"?>
<root>
<class>
<student studentID="13429" name = "John"/>
<student studentID="13430" name = "Mary"/>
</class>
</root>
... more >>
Using generic list with SoapFormatter
Posted by Hotlips at 12/12/2005 3:48:21 AM
I'm trying to use an SoapFormatter with a generic List (List<int>)
(.NET 2.0)
When I use it I get an exception that states that the collections from
Generic-namespace cannot be used with the SoapFormatter.
Why does the SoapFormatter not support generics?
... more >>
Changing a space to a character
Posted by Jay Weston at 12/12/2005 2:02:36 AM
Hi
I have converted a string into a uuencode format, but i wish to change the
spaces in the string into the char ' , does anyone have any ideas on how i
can do this?
Thanks
... more >>
Reflection and an overridden class
Posted by John Richardson at 12/12/2005 1:32:25 AM
I haven't played much with Reflection before, so I'm hoping I'm missing
something simple with this problem I'm having.
Trying to follow the online examples for resizing a DataGrid row height, and
the following is the snippet:
------
MethodInfo mi = dataGrid.GetType().GetMethod( "get_DataG... more >>
Volatile fields
Posted by yaron at 12/12/2005 12:26:02 AM
Hi all,
let be focus on sigle processor machine 32 bits.
1. with multi-threaded on single processor machine 32bit do i
have to sync access to atomic get/set properties of type less then 32 bits ?
2. for those properties is it enough to use volatile on single processor
machine ?
3 does vol... more >>
|