all groups > c# > october 2005 > threads for monday october 10
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
database treeview
Posted by Mike at 10/10/2005 11:59:03 PM
hi everyone!
i'm searching for a tutorial or an example for how to fill a treeview with
information from my ms sql database. i've found some on "code project" and
other sites, but nothing like a real tutorial for beginners.
does anyone knows some helpflul links or can give me a short intro? ... more >>
I am stucked: Working on a network mapped drive via Web Service
Posted by Nirosh at 10/10/2005 10:37:36 PM
Hi All,
Can any one suggest me a best way to do this ..
I have a thrid party tool "EXE" that we need to use with our web service to
manipulate some complex XML files, which reside in a seperate files server.
we have mapped the fodler to a different folder and need to allow the EXE to
proces... more >>
Dll loading takes lots of time.
Posted by Kiran_Juikar at 10/10/2005 10:30:02 PM
Hi,
I am using third party dll's in my project for reports. While opening the
reports it takes lots of time. (The dll's are alredy registred in th GAC with
proper version in the code also). It works really fast when I disconnect my
m/c from network.
Please tell me what is a problem in t... more >>
Closing local and remote file connections
Posted by blakecaraway NO[at]SPAM gmail.com at 10/10/2005 10:26:33 PM
Hi there.
I have a C# console application that extracts data to flat files. Some
of my business partners begin consuming these extract files before I've
had a chance to write the newest ones (I am extracting these files once
a day beginning at midnight). Since one or more consumer has a
parti... more >>
splitting cells of datagrid
Posted by jack at 10/10/2005 9:51:40 PM
Hi
Dose any one knows how to split the cells of a data grid . Iv
search'd on net but im only able to find third party ocx . But what i
want is ,splitting the cells of grid which is available in .net . Is
there any way to do this ????.
Awating for the answer.
... more >>
dictionary or collection
Posted by jg at 10/10/2005 9:47:46 PM
I was trying to get custom dictionary class that can store generic or
string[]; So I started with the example given by the visual studio 2005 c#
online help for simpledictionay object
That seem to miss a few things including #endregion directive and the ending
class }
Is there not a sim... more >>
Session State Username and Cookies?
Posted by wellnesseducation NO[at]SPAM hotmail.com at 10/10/2005 8:10:27 PM
I am trying to get session stating working with certain specifications
right now, and am running into an issue I can't peg. I currently have
session stating running have changed my web.config file to SQLstate and
ran the installsqlstate.sql script through the query analyzer. This is
all fine and... more >>
void () type to object
Posted by Max at 10/10/2005 8:02:12 PM
When you add an event handler to some object you need to specify the function to call when the event occurs. Suppose there is a
class TesterClosed() which is called whenever the Tester is closed. Code below:
public void TesterClosed(){}
Tester m_tester = new Tester();
m_tester.Close += new... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Bitmap Manipulation
Posted by Macca at 10/10/2005 7:53:33 PM
Hi,
I am writing a a C# application that needs to display a bitmap to the user
and allow the user to manipulate the bitmap. e.g, add edit bitmap, like in
an application such as photoshop or Corel Draw etc.
I'd like to know how i can achieve this in a C# application. I assume i
would have t... more >>
A Newbie Increment Question
Posted by Tim at 10/10/2005 6:30:03 PM
Hello All,
I was wondering if there is an easy way to increment a char[].
eg. char[] c = {z,x} would increment to {z,y}, {z,z}, {0,0,0}, {0,0,1} and
so on.
Is this easy or should I be using another type to do this instead of a char[]?
Thanks in advance for your help.... more >>
Help with ResourceManager
Posted by FireStarter at 10/10/2005 4:18:27 PM
I entered a couple of strings in the project's resource file
(Resources.resx). At execution time, I want to retrieve one of them:
ResourceManager rm = new ResourceManager(<baseName>,
Assembly.GetExecutingAssembly());
string s = rm.GetString("KEY")
I do not know what to use as the <bas... more >>
Size of all files in a folder
Posted by **Developer** at 10/10/2005 3:38:49 PM
Is there an easy way (i.e., not checking each file and adding the sizes) to
get the total size of all files in a directory tree?
And/or the number of files in the tree.
Thanks in advance
... more >>
Invoke or BeginInvoke usage
Posted by Meya-awe at 10/10/2005 3:05:26 PM
Anyone can tell me how to use control.Invoke or .BeginInvoke if i want
to pass some day from a non-ui thread to a ui thread?
Currently, i am using events into the UI module:
private void DataProcessingResults(object o, PresentationEventArgs args)
{
object[] argsData = new object[2];
ar... more >>
Playing Music
Posted by Donald Smith at 10/10/2005 2:34:34 PM
Hey,
What's the best component to use to play MP3's in my own program? I've used
the Windows Media Player one, but is there a better one? Thanks.
-Don
... more >>
Event assigned but doesn't fire
Posted by Mark Nijhof at 10/10/2005 1:39:26 PM
Hi,
A quicke summarize:
I made a windows form that can set up a socket connection. It also has
events that fire when data arives. Now I am using this form in a hidden
way inside other code (was the only way I could get the threading to
work for the client without the client needing to test fo... more >>
return statement inside a using
Posted by john_teague at 10/10/2005 1:02:14 PM
I am using a statement similar to this:
using(SqlDataReader dr = ...){
dr.Read();
return Fill(dr);
}
will the using tag properly destroy the data reader after the return
statement?
... more >>
Does threadpool utilize a memory barrier?
Posted by NOtcarvinSPAM NO[at]SPAM lycos.com at 10/10/2005 12:25:30 PM
It occurs to me that if I have a work object that gets executed via
QueueUserWorkItem AND the work proc accesses only that object's
instance data I STILL may have to lock because the object constructor
ran in a different thread. That therefpre means that without a lock
the threadpool thread mig... more >>
Exit out of Class
Posted by Mike L at 10/10/2005 11:46:25 AM
What is the code to exit (break) out of a class?
I have a class, with an if statement, if is true then exit class, if false
continue with the code in the class.
... more >>
How C#.Net DLL is used in VB6.0
Posted by TulasiKumar at 10/10/2005 11:34:34 AM
hi
i am new in Csharp programming.i have developed in One DLL in C#.Net that
dll is used in VB6.0.is it possible?
if i am adding reference this dll in to VB6.0 it is n't added.So, i have
created TLB in that Dll.So, i have added that TLB file in to Vb6.0.
Here is the one problem is getting it is... more >>
Marshalling array of strcuture
Posted by Senthil at 10/10/2005 11:01:00 AM
Hi,
I am using a COM component in C# client. The COM component has a method
which accepts an unallocated structure pointer. The method allocates memory
and returns filled up strcuture array. The method exceutes properly but when
the structure array is read in C# it does not return the fille... more >>
Weird problem with Clip Organizer cut-and-past
Posted by queisser at 10/10/2005 10:46:25 AM
Hi all,
I'm writing a C# app that uses copy/paste to put graphics in a window.
My copy/paste logic first looks for Metafile, then for bitmap.
Here's the problem: when I copy and paste a WMF clip from the organizer
(in Word or standalone) into my app I get a nice high-res image the
first tim... more >>
Simple Encoding Question
Posted by pagates at 10/10/2005 10:29:04 AM
Hello,
I am playing a little with Encoding, and I have what is possibly (forgive
me) a newbie-type question.
I have a function that takes a string and a codepage (based upon the basic
MSDN help - look for "Using Unicode Encoding").
Anyway, I want to pass the contents of a textbox "as is... more >>
Try Catch Question How Make it go to specific catch?
Posted by needin4mation NO[at]SPAM gmail.com at 10/10/2005 9:58:57 AM
I'm writing c# asp.net. I have a dataset loading when the page loads
and it has an itemdatabound event.
When there is an error in the itemdatabound event I get the catch in
the calling function, not the one that actually caused the error (the
ItemDataBound).
How do I do this correctly? Th... more >>
2.0 Generic Collection & ObjectDataSource
Posted by Demetri at 10/10/2005 9:30:06 AM
Here is what I want and I can't seem to find it:
In asp.net 2.0 I want to create a generic collection that will perform
sorting and is capable of being used by the ObjectDataSource and eventually
bind to a GridView.
Are there any samples out there of this?
--
-Demetri... more >>
Session, MVC, Struts and Collection objects
Posted by pxm4 NO[at]SPAM nreca.org at 10/10/2005 8:57:30 AM
I'm working on a Content Management Server project developing a MVC
based on a dynamic place holder control. One thing that I have some
questions about is session management. What I would like to do is mimic
the behaviour found in the helper bean in Stuts, BUT make it more
generic. I would like ... more >>
Data Errors When Calling Unmanaged VC6 DLL
Posted by ANdrew Olden at 10/10/2005 8:31:16 AM
Hi All, I Have A Few Problems with a unmanged DLL (VC6) sending back data to
a C# application. The DLL is passed 10 "strings" (char* in the dll), which
should then be updated - in other words i want to pass some strings to the
dll by reference - it is called like this
s1 = enc.GetBytes(lat)... more >>
Reading text-only body from MSMQ in C#
Posted by Lee Zeitz at 10/10/2005 8:24:27 AM
Hello,
I have a need to read messages from MSMQ (on the order of 350,000 messages
per day) that have a body that is text-only (not in XML format). There are
3 message formats to select from (XMLMessageFormatter,
ActiveXMessageFormatter, and BinaryMessageFormatter). All samples that I
ha... more >>
Response.Redirect and Firefox
Posted by Andy at 10/10/2005 8:10:20 AM
Hi all,
I'm having a problem with a response.redirect and firefox.
I have an error hanlder setup in the global.asax which issues a
response.redirect to a generic error page. This works fine in IE, but
in firefox I get an alert 'The document contains no data.' The error
occurs when the us... more >>
problem of background color in MS-Word
Posted by IMS.Rushikesh NO[at]SPAM gmail.com at 10/10/2005 8:10:02 AM
Hi Friends,
I am having a problem to set a background color of any selected Word in
MS-Word.
Only few default (nearly 16 colors) are allow to set as Background
color in MS-Word.
But i want to set all applicable background colors. Is there any way or
alternative for this.
Your help is grea... more >>
public variable problem
Posted by Steven Blair at 10/10/2005 7:18:34 AM
Hi,
Here is my problem:
This is using Visual Studio 2005
I have a DataSet declared as a public member:
public DataSet tmp
In my Page_Load I populate the DataSet.
Anytime I try to access this DataSet outside the Page_Load, e.g
Wizard1_FinishButtonClick
The DataSet is null.
... more >>
Need ur help??
Posted by Aravind at 10/10/2005 5:59:03 AM
Hi guys,
Unfortunately IIS was removed from my system. Plz send me some links to
download the IIS for windows 2000 which is portable to run ASP.NET
applications..
Thanks in Advance..
With Regards,
Aravind... more >>
passing argument to timer event
Posted by Thorsten moeller at 10/10/2005 5:10:05 AM
hi,
i am am fairly new to c# and trying to write a service to check some thing
periodically. i want to use a windows service. The onStart method is starting
a timer. The timer.elapsed event creates a new Handler, which is calling
another method. Is it possible to give this method an argume... more >>
Updating GUI controls from threads
Posted by Curious at 10/10/2005 5:07:07 AM
Hi,
I have a thread running, and at a point in this thread I am calling a
method to update GUI controls. From the net I have read that updating
GUI controls from the worker thread is bad practice.
Thread myThread = new Thread(new ThreadStart(Worker));...
myThread.Start();
public void ... more >>
Plugin
Posted by GTi at 10/10/2005 3:38:29 AM
In C/C++ it is easy to create plug-ins with LoadLibrary and
GetProcAddress.
But how can I create similar functions in C#.
Does anyone have any samples references for how plugins can be created
in C#
... more >>
help regarding Threading
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 10/10/2005 2:30:43 AM
Hi all
i am having application in C#.
here what i want it to update one datagrid depending on particular
value.
I want to start minimum of 5 threads at a time and all these threads
are updating datagrid in their thread proceudre.
What i want is whenever 5 threads are running as soon as one thr... more >>
Problem with SortedList
Posted by Curious at 10/10/2005 1:55:46 AM
Hi,
I am using SortedList, but I am having problems with indexing.
SortedList x = new SortedList();
x.Add(0, "zero");
x.Add(1, "one");
x.Add(3, "three");
Console.WriteLine(x[x.IndexOfKey(0)].ToString());
Console.WriteLine(x[x.IndexOfKey(1)].ToString());
int index = x.IndexOfKey(3);
Co... more >>
Searching for newsgroup in German
Posted by redo at 10/10/2005 1:01:02 AM
Hi everybody,
is there any newsgroup for C# in german.
I am new here
Thanks in advance... more >>
Nested Tables in DataGrid in Windows Form
Posted by SR at 10/10/2005 12:57:50 AM
Plz Help
I have a dataset which has tables area,goals,objectives,tactics
each area can have many goals,each goal can have many objectives,each
objectives can have many tactics
they are related wuth there respective ids
now the problem comes when in i am showing then in nested datagrid i
... more >>
Technical question?
Posted by perspolis at 10/10/2005 12:00:00 AM
I have an application using sqlserver.
I want to send my data from this database to another database(again
sqlserver) in my site.
how can I send this data to my database on my site??
thanks in advance.
... more >>
Web service error
Posted by Davie at 10/10/2005 12:00:00 AM
I've got a rather strange problem with accessing web services. This is on
the compact framework with a smartphone app. When i run the application
with my smartphone plugged into my computer the web service is accessed
correctly, (I should point out that this is a proper hosted web service an... more >>
NullRefException in windows service
Posted by lajo_79 at 10/10/2005 12:00:00 AM
Hello
I get the following error when i trying to run a function fro
OnStart() in my win-service:
"Object Reference not set to an instance of an object" and th
stacktrace only gives me the function name (setEvents), nothin
else...
protected override void Onstart(string [] args)
{
init_ti... more >>
Exceptions handling
Posted by ___Newbie___ at 10/10/2005 12:00:00 AM
Hello,
Does every error encountered during try() block is handled by
catch(Exception e) ? Do I have to catch every aspect or every detail of
exception? e.g. catch (IOException io) catch (OutOfMemory mem)exception..
What I'm after is a generic catch().
Thanks
... more >>
partial class (designer created) and Dispose override
Posted by Lelekács Zoltán at 10/10/2005 12:00:00 AM
Hi,
I would like to use a thread together with an object.
In the constructor of the object I create the thread and I would like to
dispose in the Dispose method of the object, but it is already defined of
the designer created partial class of the object.
What is the nice solution to dispose... more >>
Transparent Control Library
Posted by Simon Tamman {Uchiha Jax} at 10/10/2005 12:00:00 AM
I understand that MS made their controls annoyingly difficult to modify (for
example transparency on a listbox, tab control, treeview etc) to ensure they
didn't torpedo the third party control library industry (or is this just an
excuse to fob us off with controls that are difficult to extend?).
... more >>
Hashtable.Item
Posted by Peter Kirk at 10/10/2005 12:00:00 AM
Hi
I obviously do not understand something about Hashtable....
The documentation in MSDN
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemcollectionshashtableclassitemtopic.asp
states that there is a property called "Item".
But I get a compile time er... more >>
Remote Registry Access
Posted by Mothish at 10/10/2005 12:00:00 AM
hi guys, is there any where i can access remote registry through c#. im new
on this can any one help me on this.
thanks mothish
... more >>
How to read from ap.config
Posted by ad at 10/10/2005 12:00:00 AM
I have stored my connectionstring in ap.config like:
<configuration>
<appSettings/>
<section name="microsoft.visualstudio.testtools"
type="Microsoft.VisualStudio.TestTools.UnitTesting.TestConfigurationSection,
Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=8.0.0.0,
Cult... more >>
TreeView using
Posted by Aleksey at 10/10/2005 12:00:00 AM
Hi, All!
I have a problem with TreeView component. My TreeView consists of two
nodes Node1 and Node2. On click of right mouse button TreeView has event. In
this event I check wich node is selected. At the start Node1 is selected.
But when I do right click on Node2 the selected node remain ... more >>
|