all groups > c# > october 2007 > threads for tuesday october 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 30 31
Drag Drop images in Listview
Posted by Rotsey at 10/9/2007 11:34:49 PM
Hi,
Does anyone have some example code they
can direct me too for drag dropping images
from a listview to PictureBox???
I have googled but not found anything I can get to work.
rotsey
... more >>
Garbage Colletor
Posted by Johnny E. Jensen at 10/9/2007 11:34:21 PM
Hellow
I'am not sure what to think about the Garbage Collector.
I have a Class OutlookObject, It have two private variables.
Private Microsoft.Office.Interop.Outlook.Application _Application = null;
Private Microsoft.Office.Interop.Outlook.NameSpace _Namespace = null;
The Constructor:
pu... more >>
Reflection.Emit help request
Posted by John at 10/9/2007 10:58:47 PM
I am trying to figure out how to translate the following CIL call into
an Emit statement.
In CIL it is:
IL_004c: callvirt instance class [System.Data]System.Data.DataRow
[System.Data]System.Data.DataRowCollection::get_Item(int32)
The C# equivilant is as follows:
MyDataRowCollection... more >>
Multi-Processor Threading
Posted by Bob Allen at 10/9/2007 10:24:18 PM
Is there a way to specifiy what processor to run a thread on in a quad core
processor in c#. Any links or direction is greatly appreciated.
Bob;
... more >>
Referencing another source file
Posted by PLS at 10/9/2007 8:20:56 PM
I guess I'm a bit confused about how to organize a C# project.
I have two .cs files compiling into one assembly. Both place classes
into the same namespace.
File A contains a class with a bunch of static methods that I want to
use in file B.
What do I put into B to make the class and me... more >>
Problem With TextWriter
Posted by kengtung NO[at]SPAM gmail.com at 10/9/2007 8:19:26 PM
Greetings all,
I just started programming with C# (.Net FW 1.1) last year and still
learning. Previously I am using VB 6.0.
Recently, in one application, I encountered a C# error "Cannot write
to a closed TextWriter.". I looked at the code and it looks ok to me.
Maybe I am missing some unde... more >>
Propertygrid
Posted by Redivivus at 10/9/2007 7:37:14 PM
Hi
Ho to use dropdown in propertygrid with values from database?
Lets say i have table ITEMS
and columns ID, NAME
Now i want to select id, name from items
and display those values in dropdown of my propertygrid
Best regards;
Mex ... more >>
Static members in ASP .net
Posted by RSH at 10/9/2007 5:15:04 PM
If I have a static method that references the HttpContext.Current object is
it safe to be in a static method within a class under ASP .Net?
I know that static classes are shared by all sessions at a given time, so Im
not sure if this can be a static class.
public static SessionManager Inst... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
P/Invoke Problem
Posted by Mike M at 10/9/2007 4:51:00 PM
Hello,
I have the following C functions exported from a DLL:
void copyString2(const char * sSrcBuf, long nSrcBufSize, char ** sDestBuf);
void freeString(char * sBuf);
The idea is to copy the source buffer into the dynamically allocated
destination buffer returning the pointer to the buff... more >>
Add custom control programmatically on Toolbox
Posted by R.A.F. at 10/9/2007 2:38:56 PM
Hi,
2 Days ago i wrote a post about "how to add programmatically custom
control on Toolbox".
I'm still blocked with this issue.
Is there someone who did it under C#.NET 2005 and 2008 ?
thanks a lot,
RAF... more >>
Calling managed VC++ from C#
Posted by Andy at 10/9/2007 2:26:55 PM
Hi all, sorry for the cross group spam but my question does really
fall into both groups. Here's my issue.
I have a Visual C++, CLR Class Library with a public class and a
public method in a solution. Also in the solution is a c# console app.
I have referenced the c++ project from the c# proje... more >>
Help with typed dataset and tableadapters update
Posted by bz at 10/9/2007 2:04:25 PM
Hi,
I spent several days and I cannot manage to make TableAdapters to
automatically post updates to database.
I created a typed dataset with one tableadapter
But somehow I cannot manage to update data in database.
When I call update nothing is happening.
How should I configure the tableadapt... more >>
Using an API
Posted by amdrit at 10/9/2007 1:46:44 PM
Hello Everyone,
I am having an issue using an API and was wondering if you could point =
out what I am doing wrong. The error that I am getting is 'The =
paramater is not correct.' I am unable to figure out what paramater the =
error is referring to.
The API Call is WTSVirtualChannelRead ... more >>
sorting values in a generic list
Posted by Paul at 10/9/2007 1:10:00 PM
Hi I have a generic list populated by a structure and sorts the contents of
the list based on the day and project # that is part of the structure. I
would like to modify it to also sort on the start time as the third sort
parameter? thanks.
public class Comparer : IComparer<mergeoutstruct... more >>
Image Viewer Control
Posted by Rinu Gopalakrishna Pillai at 10/9/2007 12:51:01 PM
Hi All,
I have an ASP.net based application; one of my tasks is to show images on
the page and do some image processing work (like Rotate, Zoom, Clip etc).
For the above process I would like to write an Image control in C#. Can any
one help me to write a control or any one can suggest a... more >>
Loading Embedded Resources/Files
Posted by Rasheed at 10/9/2007 12:31:44 PM
Hi ,
Requirement is, I have to load my Xslt file into Exe/DLL.
I have created one .Xslt file and C# code for the same to produce
on .Xml file, like this:
System.Xml.XPath.XPathDocument Xmlpath = new
System.Xml.XPath.XPathDocument(filename);
XslTransform xsl = new XslTransform();
Stream... more >>
How to use Y/N values with winforms checkbox
Posted by GG at 10/9/2007 12:25:12 PM
Is there a way to use Y/N values instead of true/false values?
Thanks
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Data Source and Combo Box
Posted by Soulless at 10/9/2007 11:54:41 AM
I would like to bind a combo box to my DSNs in windows. Any idea how
i might accomplish this? I wouldl like to have the drop down display
the available sources. I am searching but cannot find anything online
or in my C# books and am new to C#.
Thanks in advance!
... more >>
adding time segments
Posted by Paul at 10/9/2007 10:28:01 AM
Hi just wondering if anyone had any ideas on how to do this in C#.
I am trying to get the total time of several start and stop time data
entries. For example the input data looks like
starttime endtime
3:00pm 4:00pm
6:00pm 7:00pm.
6:30pm 7:00pm
3... more >>
Generic Method Help
Posted by rbjorkquist at 10/9/2007 10:09:23 AM
I'm looking for help and understanding of generics; specifically, the
use of generic methods. I'm new to using generics and haven't found a
good example that applies to what I'm trying to do.
I have a web server, feeding data through web methods, to a windows
application. This is not a probl... more >>
Multiple versions of the same type coexisting in the same AppDomai
Posted by Vanni at 10/9/2007 9:56:00 AM
Hello,
I have the requirement of being able to load different versions of the same
type (same class name) in the executing AppDomain. I am aware that I would
not be able to unload obsolete instances, but I don't mind. The problem is
that, it seems, only one instance of the same class type c... more >>
Copy byte array to other
Posted by SushiSean at 10/9/2007 9:39:07 AM
Hello. How I can copy one byte array to other byte array?
For example I have
byte[] array1 = new byte[500];
byte[] array2 = new byte[100];
in array1 I have useful data from position 55 to 105 and I need copy those
bytes to array2 on position from 15 to 65.
How to do this? There are sho... more >>
Convert string to int
Posted by tshad at 10/9/2007 9:21:38 AM
I am trying to convert a string character to an int where the string is all
numbers.
I tried:
int test;
string stemp = "5";
test = Convert.ToInt32(stemp[0]);
But test is equal to 53.
If I change it to:
test = Convert.ToInt32(stemp);
Then it works the way I want where test = 5.
... more >>
Token identification
Posted by DBC User at 10/9/2007 7:58:06 AM
I would like to write a program that needs to do the following;
1. This program will be launched from another program. (I have that
one ready)
2. This program when launched, should display which token this program
is launched (like administrative token or standard user token).
3. I also want ... more >>
XSD Class
Posted by Looch at 10/9/2007 7:10:45 AM
All,
I have created a class file using the XSD.exe tool that includes
multiple classes based on the complex parent elements in the schema I
used.
I aslo have a win form that has a bunch of text boxes that match the
elements in the schema. I understand how I would set the properties in
the ... more >>
How would a guy at Microsoft...
Posted by nano2k at 10/9/2007 6:19:03 AM
....open Windows's Calc?
I want to integrate a shortcut to Windows Calc in my application.
Ok, it seems quite str8 forward:
1. put a button / link label, whatever on a form
2. grab Calc's icon from system32\calc.exe and attach it to the
button, etc, if needed.
3. Call Process.Start("calc.exe")... more >>
Toolstrip Exception - bad .NET?
Posted by Mike at 10/9/2007 5:05:37 AM
I have a program that is crashing on some machines (at a client of
ours). I have determined that it goes down on this line of code:
ToolStrip x = new ToolStrip();
I created a simple test app that only performs this one line of code.
It throws an exception so I know the problem is not caused ... more >>
OleDB and Access Problem in C# (.NET Framework 2.0)
Posted by sirinath at 10/9/2007 2:32:09 AM
Hi,
Is there a known issue in using Access through OleDB provider in C#
(.NET Framework 2.0) where inserted records are not reflected in
subsequent queries. Worst still, if the PK is a auto number an
exception is thrown.
Please be good enough to point me to some resources on resolving this
... more >>
Can't connect to SQL database with VS .NET - object reference error
Posted by RichGK at 10/9/2007 1:41:51 AM
When using "Choose Data Source" on a GridView object I receive the
error "Object reference not set to an instance of an object".
I can connect and use the database ok when using my own data access
layer within the same program (I'm writing).
Here are the steps I perform.
1. choose a new d... more >>
Opening a Delphi.NET MDI Child form in a C# MDI Container
Posted by Mucker at 10/9/2007 1:28:06 AM
This could be a difficult one, so please bear with me.
I've an assembly containing Delphi 2006.NET forms.
A C# app, via reflection opens these forms . This works fine - I've a C#
app, opening Delphi 2006.NET forms.
Some of these forms are MDI Child forms. Exceptions are thrown - "Cannot
... more >>
C# and UML
Posted by aine_canby NO[at]SPAM yahoo.com at 10/9/2007 12:25:59 AM
Hi,
I have Visual Studio 2005 installed on my work computer and I've used
it to develop a number of .net applications that comunicate with my
companies databases.
I'd like to start working with and learning more with UML. Can anyone
suggest any freeware sortware that I might use to do this?... more >>
generate entity classes
Posted by butch77 NO[at]SPAM web.de at 10/9/2007 12:04:51 AM
Hi
For every project I need entity classes for each table.
I'm using an XSD DataSet to retrieve the data from the DB.
Since these classes are always very similar, I was wondering, whether
I could just develop a little generator program, that uses a template
to generate my class.
I've bee... more >>
DX
Posted by Peter Morris at 10/9/2007 12:00:00 AM
Hi all
I soon have a project to write and need to cover a few areas I haven't
before. Before looking deeply into it I thought I'd ask a few questions :-)
I have to produce an animation made up of PNG files + audio. This will
output in various formats using plugins.
01: Can I use DX to ... more >>
Asp.net Treeview Clientscript - Auto Check Child Notes After Check Parent Node
Posted by Sylvie at 10/9/2007 12:00:00 AM
I have a treeview on my web form,
When I check one of the parent nodes, Child nodes must be checked
automatically at client
Is this possible ?
... more >>
|