all groups > c# > june 2004 > threads for friday june 25
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
Hiding an Always on top Window
Posted by No One at 6/25/2004 11:45:48 PM
I have one application in C# that stays on top. Now I have another one
that needs to make the former hide for a certain amount of time and then
come back up to on top. I had thought of adding a method to the former
to handle being sent a message to change, but I'd rather not change the
first a... more >>
Dynamically linking a dll...
Posted by Robert Vasquez at 6/25/2004 11:25:01 PM
How can I dynamically link a dll to my C# project. I specifically would like to create a resource dll that I can later load as required by my application. Any help is appreciated.
Robert Vasquez... more >>
Will it be GC in this condition?
Posted by Peter Lin at 6/25/2004 11:02:23 PM
Dear all,
I have a local object tManager in method foo, I create it there and not use
it in the thread that created it anymore.
Will it be GC if the life time of _tsacThreadManager thread is the same
as main thread? I am not sure because the tsacThreadManager thread is running
the tManage... more >>
Standard Exceptions... where to find them
Posted by Hans De Schrijver at 6/25/2004 9:26:14 PM
Where can I find a list of pre-defined exceptions for .NET?
Whenever possible, I'd rather use existing exception constants rather than
defining my own, unless no suitable one has been predefined.
Any help would be greatly appreciated.
-- Hans De Schrijver
... more >>
Sinking in .Net Remoting
Posted by learn_remoting at 6/25/2004 6:34:22 PM
Hello,
I am trying to understand the details of .net remoting. There are so
many different kinds of sinks .... which have left me totally confused.
TerminatorSinks, ContextSinks, MessageSinks, SinkProvider, RequestSink,
ResponseSink, FormatterSink, DynamicSink, BuilderSink, LeaseSink,
Si... more >>
GAC
Posted by Mike at 6/25/2004 6:02:40 PM
Hi.
I've installed three third party DLLs in my GAC using
gacutil /i "c:\path\file.dll"
The installation says it was successful and I can see the assemblies when I
browse to c:\windows\assembly.
However, when I try to create a reference to one of these assemblies in
Visual Studio 2003,... more >>
Custom forms in installation project
Posted by logicalfeline at 6/25/2004 5:42:07 PM
Hi there,
I'm creating an installation project where at a particular point in the
installation I want the user to be able to specify a filepath for use in the
program. My idea was to create a form that allowed the user to choose the
datapath and confirm it then add this to the installation pro... more >>
Custom Control Problem
Posted by anand at 6/25/2004 5:22:01 PM
Hi all,
I have created a custom control which displays Image using Graphics..
I am using this control in a different windows application.
I am dynamically creating the control and putting that in the form.
In the Control's InitializeComponent() function following statement is
present
c... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Active Directory Objects - Object reference not set to an instance of an object.
Posted by Jason Dunbar at 6/25/2004 4:12:35 PM
Whilst creating a class to search Active Directory domains and
retrieve user details, I ran into the following error:-
Object reference not set to an instance of an object.
Here's the error log:
Source Error:
Line 79: StringBuilder summary
= new StringBuilder();
Line 80:
Lin... more >>
System.OutOfMemoryException using Regex and Strings
Posted by jason at 6/25/2004 4:08:01 PM
I have exhausted all resources, so perhaps someone out there can help.
I have a 8MB string (that represents an html document) and I am trying to
run a couple of regular expressions on this string. I receive a
System.OutOfMemoryException.
Why am I getting this error? What can I do to fix th... more >>
StringCollection[]
Posted by Dan at 6/25/2004 3:59:47 PM
Hi,
Is it possible to iterate through a StringCollection[] ? I have the
following code but "row" always seems to contain the values of rowValues2
Thanks for any input,
Danny
StringCollection[] scArray = new StringCollection[]{rowValues1, rowValues2};
foreach (StringColl... more >>
Casting object[] -> string[]
Posted by AC at 6/25/2004 3:46:39 PM
I've put some strings into a stack, and now I want to convert the stack =
to an string based array. Here's what I'm trying to do (this returns a =
cast error)
string[] results =3D (string)resultStack.ToArray();
I've tried casting it as a string, an array of strings... no luck. =
ideas?... more >>
Struct in c# communicating to unmanaged C DLL
Posted by sinclas NO[at]SPAM sintechsoft.com at 6/25/2004 3:01:32 PM
What is the equiviliant of the following struct written in C in C#? I
can't seem to get it. Any help would great! I have tried many
different ways, but none seem to work. any help/direction would be
great!
typedef struct abc
{
union
{
double num;
LPSTR str;
WORD boo... more >>
Calling method in child form from MDI main form
Posted by Randy at 6/25/2004 2:50:43 PM
The following code, which runs when I click File->Save in my main form,
finds my save button in my mdi child for just fine. The question is: how do
I invoke the Save method in the child form?
Thanks....
protected void SaveMenuSelect(Object sender, System.EventArgs e)
{
Form form = (For... more >>
ADv. Thread Question
Posted by Vai2000 at 6/25/2004 2:37:21 PM
Hi All, I am running into a concurrency problem. I have a worker process
which reads some data out of a file and inserts fresh data into it. I have
put a Monitor.Enter(this) and Monitor.Exit(this) on both of the routines
which do read and writes.
The worker process is spawned off by a Multithrea... more >>
What is a hook and how does that help me in csharp?
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 6/25/2004 2:35:09 PM
What is a "hook" and how does that help me in csharp?
I've seen a lot of talk about that from C++ people were were "worried"
about that in coming to C#.
I am still newer at c# and not that experienced with C++ and the Win
API. I have used a lot of VB.
Can you give me a starting point on ... more >>
queued components and network service account.....
Posted by Ollie at 6/25/2004 2:31:33 PM
I have a COM+ queued component written in C# and I'm trying to get it to =
run under the 'NETWORK SERVICE' account, it runs perfectly fine under =
the 'interactive user' as this happens to be a admin account (this is my =
development machine) but when I switch the identity in the component =
ser... more >>
detecting minimization
Posted by UmmagummA at 6/25/2004 2:21:49 PM
How can I detect when the user minimize the form (when he/she press the
Mimimaze Box)?
... more >>
Track all enter and leave Message from Controls
Posted by Peter Schneider at 6/25/2004 1:33:32 PM
Hi there
it is possible to track all "enter" and "leave" messages from all Forms
controls with one routine?
Peter
... more >>
Running program from network mapped drive
Posted by Gacu at 6/25/2004 1:09:46 PM
Hi!
Have you met any problems with running C# program from network mapped drive?
Of course I have .net framework installed on both machines.
When I copy program file to local disk it works fine, but from network drive
it says: Unhandled exception :(
Thanx
... more >>
Convert .NET binary to native WinAPI
Posted by Olex Malko at 6/25/2004 12:59:30 PM
Hi, there!
I have a C# application. I would like to be able to run *exe file on any PC
where ".NET Framework" is NOT set.
Is there any utility that will convert my *.exe file to use WinAPI functions
instead of .NET?
... more >>
Using CodeDom to edit code
Posted by John Mark Howell at 6/25/2004 12:58:11 PM
BlankCan anyone give me an idea as to how to use the CodeDom to edit code?
I would like to perform mass changes (such as putting logging messages as
the first statement in all methods with method names) to a system with
hundreds of classes and thousands of methods. I know the CodeDom can allow
... more >>
ActiveX DLL COM object
Posted by vbMark at 6/25/2004 12:39:23 PM
When using regular, non .NET asp, I would write an ActiveX DLL COM object
in Visual Basic 6 to do all the work on the server.
Now I am using ASP.NET with C# and want to do the same. Which C# template
do I use? Where can I find information, tutorials, etc on this?
Thanks!
--
http://... more >>
C++ Template class equivilent
Posted by Christoph at 6/25/2004 12:30:53 PM
I'm curious if C# has the equivalent of a template class in C++.
Where, in C++, you can do something like the following:
CList<int> myList;
CList<byte> myList;
etc.
thnx,
Chris
... more >>
Reflection
Posted by John S at 6/25/2004 12:17:54 PM
Can anyone explain reflection and possibly show a good coding example (other
than the Miscosoft samples)?
... more >>
Please help
Posted by Paddy at 6/25/2004 11:27:45 AM
Could someone please tell me what the error
is in the second function?
private void Form1_Load(object sender, System.EventArgs e)
{
string [ ] show = new string [3];
show[0] = "ene";
show[1] = "mane";
ListViewItem listItem1 = new ListViewItem(show);
listView1.Items.Add(listItem1);
show[0]... more >>
DLL import problem for experts
Posted by Frank at 6/25/2004 11:17:52 AM
Hello,
i have a problem with the data exchange between a managed C# application and
an unmanged C++ DLL. The C# app fills some values of a structure and calls
the C++ DLL. This DLL reads the filled data from the structure and fills the
results into the same structure. This code above works, bu... more >>
How to Call LoadLibrary/GetProcAddress?
Posted by Siegfried Heintze at 6/25/2004 10:43:50 AM
I have some C functions I need to expose as XML web services. My original
plan was to deply an XML Web service in C# and use P/Invoke to call my C
functions. This is not working because the web service cannot find the DLL
in the same directory.
This is probably because the DLL needs to be in a... more >>
Serialization
Posted by John Sutor at 6/25/2004 10:13:08 AM
Can anyone explain simply and possibly show an example of Serialization?
... more >>
sqlexception - PK violation
Posted by Roel at 6/25/2004 10:12:30 AM
Hello
When I try to insert a record in database with a PK that already exists I
receive the error:
The changes you requested to the table were not successful because they
would create duplicate values in the index, primary key, or relationship.
Change the data in the field or fields that cont... more >>
runtime creation of an object
Posted by Daniel P. at 6/25/2004 9:51:05 AM
class MyClass1 : MyBase
class MyClass2 : MyBase
Instead of using
MyBase myB1 = new MyClass1();
MyBase myB2 = new MyClass2();
I need to create
MyBase myB1 =
using reflection, I can pass at run-time
Type t = Type.GetType( "MyClass1" );
Thanks!
... more >>
Designed public class MyForm : System.Windows.Forms.Form
Posted by Daniel P. at 6/25/2004 9:17:26 AM
Since multiple inheritance does not exist in C# I would like to be able to
subclass the Form and then have other class subclass MyForm. If I do that
then the designer will not see my classes as Forms anymore.
How can I fix that and have the design behave as MyFinalClass subclasses the
Form dir... more >>
Strange! please help. Request for the permission of type System.Data.SqlClient ...
Posted by davidw at 6/25/2004 1:19:49 AM
I encountered strange issues. I have code like this
sqlReader = SqlHelper.ExecuteReader(connString,
System.Data.CommandType.Text,sql);
It calls Microsoft.ApplicationBlocks.Data to execute a sql statement. It
worked fine, but after I did some modifications to my dll, I got error. The
... more >>
How to get the name of menuitem at runtime?
Posted by Tony at 6/25/2004 1:12:11 AM
like this,
foreach (MenuItem item in this.mainMenu1.MenuItems)
{
//some code
//I want to get the menuitem's name here!
}
No name property found. please help!
... more >>
Lex and Yacc
Posted by RAyRAy at 6/25/2004 12:50:57 AM
Is there a Lex and Yacc for C# or basically .NET CLR? I
hope there is. I would rather use .NET rather than C. If
there is a Lex and Yacc can you let me know of the class
and namespace it is under. I did a search and couldn't
find any.... more >>
FileSystemWatcher, determining when the file has been finished copying
Posted by Trowa at 6/25/2004 12:16:40 AM
Hi,
I'm trying to use FileSystemWatcher to determine when a new file has been
added to a directory. However, after the file has been added, I need to
process the file. This results in a problem if the file is large and takes
time to copy, as the events appear to get received before the copy ... more >>
|