all groups > c# > september 2003 > threads for tuesday september 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
Can I include .C & .H file in C# project?
Posted by Jim at 9/9/2003 11:52:44 PM
I have a DOS application done in MS C++ 6.0 that was written in C. Since
it's DOS, I'm creating a GUI for the application in C# but would like to use
all the original functions from the .C and .H files. Can I include these in
my C# project or do I need to modify them? They're about 10,000 lines ... more >>
design guidelines on msdn
Posted by Michael Roper at 9/9/2003 11:21:32 PM
http://tinyurl.com/2vnd
This is a very painful section to navigate as every atomic bit of
information gets its very own page. Is this information available anywhere
in a more printer-friendly version? Or even better, in a book?
Michael Roper
... more >>
notifyIcon question...
Posted by Zanthor NO[at]SPAM hotmail.com at 9/9/2003 11:15:16 PM
Ok, I've got a small App I'm trying to make minimize to the system
tray...
The behavior I'm after is that while the forms FormWindowState is
Normal I want the form visible in the taskbar, when it's not normal
(I've disabled maximize, so the only other state is minimized) I want
it to be not v... more >>
list of assemblies for use with reflection
Posted by memememe at 9/9/2003 11:02:51 PM
I wanna get a list of all loaded assemblies so that I can access them with
reflection.
... more >>
putting ASP.NET C# website online
Posted by Mark Jones at 9/9/2003 10:50:09 PM
I've recently put a data-driven website that uses C# online but am having a
few problems getting it to work properly. On the first page is a login form
that works perfectly on my localhost but doesn't on the external hosting - I
keep getting a default 'login failed' response when I put in details... more >>
disabling controls
Posted by Mike at 9/9/2003 10:14:01 PM
That is exactly what I am looking for. Just one thing,
after I turn the cursor into a wait cursor, is there a
way to disable all the controls (e.g buttons, textboxes)
so that I can't click on anything, or do I have to
disable each control individually. Again , thanks for
the reply.
>-... more >>
path of dll loaded in exe
Posted by john at 9/9/2003 9:43:01 PM
I have a dll that is referenced by an exe. the default
path of the appdomain is the path to the exe, but i need
to retrieve the path to the dll. how can i do this when
the exe has loaded the dll?... more >>
Sorted List Problem
Posted by Robert Zurer at 9/9/2003 9:04:18 PM
Assuming that I have created a strongly typed collection and overridden the
appropriate methods, i.e. this[], Add, Insert etc., so that a sort order is
maintained, it's still very possible for a property of the
'ListMemberObject' which is instrumental in the sort to be modified
unbeknownst to t... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
COM Problems
Posted by timtos at 9/9/2003 8:47:42 PM
Hello.
I want to use the function IShellExtInit::Initialize
HRESULT Initialize(
LPCITEMIDLIST pidlFolder,
IDataObject *pdtobj,
HKEY hkeyProgID
);
in C#.
I´ve used the [DllImport] a few times, often with no problems but this time I think I have to give up! I´ve searched... more >>
I need a good books for C# for ASP.Net and Windows App.
Posted by Marc Lefebvre at 9/9/2003 8:43:43 PM
I need a good books for C# for ASP.Net and Windows App.
Thanks
Marc
... more >>
Performance - ODBC vs OLEDB vs SQL Providers
Posted by PeteZ at 9/9/2003 8:37:17 PM
I've come from a strong ODBC usage background (using DSN's on servers) and
am wondering whether I should start recommending OLEDB or SQL data providers
rather than ODBC
It seems that ODBC support was only provided in the .NET Framework Ver 1.1 -
should I be thinking ODBC as "old" legacy data p... more >>
Question about passing reference type to a method
Posted by Alex at 9/9/2003 8:10:42 PM
When I pass a reference to a method by value, the reference argument to the
method is copied but still points to the original object, and that method
can modify the object. Can I apply const keyword to the argument to prevent
this?
f.e.,
instead of:
void Method(mytype obj)
{
// can m... more >>
help
Posted by Reb at 9/9/2003 8:00:10 PM
Hi,
Could be a silly question.
I have 2 classes as written below.
how can i make the control tv (in WebForm1 class) to be
available in test class.
thanks
Reb
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;... more >>
lock statement
Posted by Sunny at 9/9/2003 7:24:03 PM
Hi,
I can not understend completely the lock statement.
Actally what is locked:
1. the part of the code between {...}
or
2. the object in lock()
In the docs is written:
for 1: The lock keyword marks a statement block as a critical section by
obtaining the mutual-exclusion lock for a given... more >>
Reverse engineering of DotNet is SO EASY ! (Crackers rejoice!)
Posted by Ed Sutton at 9/9/2003 5:55:17 PM
Try using this free web-based de-compiler on your .NET binaries. I was
shocked.
1 - Press the Browse button on the webform and go select a .NET Dll or Exe
you are proud of.
2 - Double-click on a class in the treeview to decompile. (It looked like I
wrote it without the comments.)
http://w... more >>
Web Service -- Can't Add Reference to it
Posted by Steve Harclerode at 9/9/2003 5:45:27 PM
Hi all,
I've been doing web service development for a year, with a break for the
last few months. What I remember is how easy it is to reference a web
service using Visual Studio.
So today, I go into a project that I'm working on, let's call it Project A.
I choose to add a web reference, an... more >>
How do I Catch if the text have changed in a specific cell ?
Posted by mario at 9/9/2003 5:40:21 PM
Please Help!!!
... more >>
Regular expressions question
Posted by Carlos_Guzmán_Álvarez at 9/9/2003 5:35:11 PM
Hello:
I want to know if it's possible to obtain the SQL commands stored on a
string using as delimiter a ; character using Regular expressions (i
have tryed it for some time without any result :)),anything like this
(but supporting any combination of SQL commands ;)):
"INSERT INTO TES... more >>
Questions re DataGrid
Posted by Jeff Cook at 9/9/2003 5:22:00 PM
Hi
1. In a DataGrid, I'd like to respond to a click anywhere on the line,
but it seems that the click event only works on the first column (the
"indicator" column).
2. In my click event, I want to get data from the correct row of the
DataSet (XML). This what I've done so far, and I r... more >>
making a bitmap file from arrays
Posted by Jeroen Ceuppens at 9/9/2003 5:00:15 PM
I have the colormap (ARGB, 8bit , so every color from 0 to 255) , put it in
an array (1dim)
I have the pixel date (array 640x480)
What is the best way to make with these array's a bitmap file?
Thx
Jeroen
... more >>
VB.NET to C#
Posted by Juan Irigoyen at 9/9/2003 4:55:13 PM
Can I traslate this line
Private Scanner As New CScanner(AddressOf HandleNewBarcode)
to C#,
.... Sample of HandleNewBarcode
Private Sub HandleNewBarcode(ByVal Scan As CScanner)
Dim frmSearch As New frmSearching
End Sub
... more >>
Share Data Between Classes
Posted by cksj at 9/9/2003 4:39:39 PM
I'm working on a VB.Net DLL project. It has 6 classes. One of the classes
has the properties for the database path, database name and server name. The
purpose of this class is so that the DLL can be tested on different servers.
Without using the keyword "Shared", how can I share these data to the... more >>
Variables passing problem
Posted by Reinier Beeckman at 9/9/2003 4:30:37 PM
Hi,
In a program i'm working on i got several classes. 3 of them have relation to my
problem. Let's name them classes class A, class B and class C.
classA
{
public static ClassA A = new ClassA( );
public static void Main()
{
Example();
}
public static vo... more >>
System.Net.Sockets.Socket.Blocking = True doesn't work
Posted by Robert A. van Ginkel at 9/9/2003 4:29:21 PM
In news:OZ0W9RsdDHA.2432@TK2MSFTNGP10.phx.gbl... I ask the question how I
can see if all the data is on the other side of the connection.
I got as answer that I should use the blocking property.
I tried this I don't see any diffents, I am sending 10Mb and the
Send/BeginSend command doesn't wait ... more >>
Need 2 forced garbage collections?????
Posted by Richard at 9/9/2003 4:16:47 PM
Hi,
I'm writing an MS Outlook 2000 Addin in C#. I have
created C# classes that monitor folder events and do other
business logic. Things work fine until I want to exit
Outlook. When I exit Outlook I have to force 2 garbage
collection cycles in order for all of my folder monitor
class... more >>
strongly typed
Posted by Mark at 9/9/2003 3:54:27 PM
Just wanted to confirm that my understanding of a strongly typed language is
correct:
1. .NET is a strongly typed language because each variable / field must be
declared a specific type (String, Int, Float, etc...)
2. VB 6 and VBScript were not strongly typed because both allowed you to ...
... more >>
how make a stream of 2dim byte-array?
Posted by Jeroen Ceuppens at 9/9/2003 3:40:30 PM
byte[,] bytes=new byte[50,100];
for (int i=0;i<50;i++)
{
for (int j=0;j<100;j++)
bytes[i,j]=i+j;
}
Stream stream;
stream.Write(bytes,0,bytes.Length);
I get this error when compiling: Argument '1': cannot convert from
'byte[*,*]' to 'byte[]'
... more >>
formatting datetime data from a data reader field
Posted by Lauchlan M at 9/9/2003 3:39:14 PM
Hi
In an ASP.NET application, I am doing the following (dtrData is a data
reader that has been loaded with data already):
if (dtrData.Read())
{
lblEDPresentationTime.Text = (DateTime)
dtrData["EDPresentationTime"].ToString();
}
Currently this is giving me values such as "24/07/200... more >>
Locating application config file
Posted by Thomas Koch at 9/9/2003 3:10:25 PM
Hi - I would like to load other files relative to the application config
file.
Do anyone know if this is possible?
If I do Environment.CurrentDirectory it will work if the program is launched
directly from there. Another approach is to combine CurrentDirectory with
the CommandLine string in... more >>
Architecture, entity states, the meaning of life?
Posted by Martin Platt at 9/9/2003 3:07:17 PM
Hi,
I've been working on designing new architecture to be
used for future development using C#.
We're going quite well with the architecture, having
originally decided not to use the dataset, datatable,
dataadapter type implementation. Instead we are using
our own implementation using... more >>
.sln file in VSS
Posted by Mark at 9/9/2003 3:05:40 PM
Where do you typically store the .sln solution file when using VSS on a
team? By default, the .sln file is stored in my My Documents folder, inside
a VS.NET folder, etc. I am aware that you can change the default location
of the .sln files for VS.NET.
What's the ideal setup? Should I setup ... more >>
Compile One, run Everywhere
Posted by Michel Racicot at 9/9/2003 2:50:14 PM
Ok, I heard that C# code was supposed to run on many platforms/OS, as long
as you have the CLR installed.
Where can I download the CLR for other OS?
Thank you
... more >>
Documenting namespaces in C#
Posted by Thomas Koch at 9/9/2003 2:45:40 PM
Hi - does anyone know if it is possible to document namespaces in C# using
the XML documentation tags or something similar?
Cheers
Thomas Koch
... more >>
Dynamic add to context menu only works 1st time??
Posted by Ed Sutton at 9/9/2003 2:37:37 PM
I am dynamically appending to a context menu when user right mouse clicks on
a treeView. The first time I right-mouse click I see the appended menu.
Subsequently, the menu items I append do not display.
this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[]
{this.mnuParent})... more >>
Interfaces and web services in .Net.
Posted by Ollie at 9/9/2003 2:18:35 PM
Can I specify a custom Interface as the return type for a web service in
..Net?
I can see that you can't define ICollection as the return type but you can
defined IList as the return type?
Why is this?
Cheers
Jim
... more >>
VB.Net to C#
Posted by Juan Irigoyen at 9/9/2003 1:59:47 PM
I have this code in VB
Dim CallbackThread As New Thread(AddressOf Me.ThreadProc)
CallbackThread.Start()
How I traslate (AddressOfMe) to C#
... more >>
Date convert to Julian
Posted by google at 9/9/2003 1:57:04 PM
I need help in converting a normal date to Julian. Can
someone help me please.
Thanks
G... more >>
Problem with object to array convertion
Posted by Jeroen Ceuppens at 9/9/2003 1:49:48 PM
I get an object from a function (tt.array1_10), it is a 2dim array
I do this
object o=new object();
o=tt.array1_10; (you can see through quickwatch the correct values in the
"array" o)
But you can't do this:
o[0,0] => compiler tells: o is object not object[*,*]
Is there ... more >>
Send fax.
Posted by PawelR at 9/9/2003 1:44:59 PM
Hello Group,
I've two questions.
1. How send fax from my apps?
After OnClick button fax must be send, without question to user
(backword application).
2. How send fax from command line?
Thx
PawelR... more >>
Help Please
Posted by Lampy at 9/9/2003 1:41:57 PM
Can someone reccomend a book on C# WinForms?
... more >>
Reactivation of a closed MDI child
Posted by zobie at 9/9/2003 1:33:05 PM
In the parent of my MDI application I declare a child form
private frmChild = null;
which is to be activated on a menu click. In the click event I am using the
following code:
if (frmChild == null || !frmChild .IsHandleCreated)
{
frmChild = new frmChild ();
frmChild .MdiParent ... more >>
DataSet DiffGram Question
Posted by John Lee at 9/9/2003 1:28:21 PM
Hi,
When I use DataSet.WriteXml(filename, XmlWriteMode.DiffGram), the xml file
contains current values (at <InvDataSet> node) and original value (at
<diffgr:before> node) - this means the original values are stored somewhere
in DataSet, Can someone tell me how can I access those original value... more >>
Socket still sending?
Posted by Robert A. van Ginkel at 9/9/2003 1:21:12 PM
Hello Fellow Developer,
I use the System.Net.Sockets to send/receive data (no
tcpclient/tcplistener), I made a receivethread in my wrapper, the
receivethread loops/sleeps while waiting for data and then fires a
datareceived event.
Within the waitingloop there is a timeout function, but I want... more >>
Find dll version number
Posted by beaninkc NO[at]SPAM hotmail.com at 9/9/2003 1:10:53 PM
I'd like to be able to loop through files in a directory and file the
version number of each .dll I find. Does somebody have an example of
how to do this?
Thanks,
JK... more >>
Managing multiple forms
Posted by john sutor at 9/9/2003 1:07:38 PM
I have a main form in a project that launches other forms. How do I ensure
that the same form does not get launched twice without killing the orignal
form. I other words I need a method to manage multiple forms in an app.
Thanks
John
... more >>
C#, Crystal Report and Stored Procedure
Posted by Lalit Parashar at 9/9/2003 12:58:19 PM
Hi,
I am clueless on how to integrate stored procedure in Crystal Reports using
C#. Any pointers please?
Thanks
Lalit
... more >>
COM Interop - Cannot instantiate objects
Posted by Bobby C. Jones at 9/9/2003 12:27:28 PM
I'm trying to use some classes defined in a COM component that I did not
create. I have successfully created the RCW via Tlbimp.exe and referenced
it in my project. All is well until I run the project and it chokes with an
"Invalid access to memory location." error when I try to instantiate an
... more >>
empty recycle bin with c#
Posted by thx NO[at]SPAM mindlab.at at 9/9/2003 12:11:51 PM
Hi,
I wrote some code using the shell32.dll to query the size of the
recycle bin. The function does not produce an error but the results
are not correct:
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
public struct SHQUERYRBINFO
{
public Int32 cbSize;
public UInt64 i64S... more >>
string.split
Posted by Alberto at 9/9/2003 11:53:15 AM
Can somebody tell an example of how to use the method split?
Thank you
... more >>
ignoring mouse clicks
Posted by Mike at 9/9/2003 11:51:26 AM
Currently, when my application needs to write/read to a
database, there is a time lag. In that time lag, a user
can click the same button multiple times causing my app
problems. I want to turn the mouse pointer arrow into an
hourglass and ignore mouse clicks until my app finishes
working... more >>
dynamic properties
Posted by Leon Jollans at 9/9/2003 11:51:07 AM
Hi all
Is there a way to catch all property requests and resolve at runtime
internally within the class?
I ask because I'm looking into creating a dynamic CrystalReport web service,
and all the sections are explicitly named properties in the generated asmx
rather than being indexed.
Thanks... more >>
adding controls programmatically on winfform
Posted by jj at 9/9/2003 11:47:28 AM
i try to add a group of linklabel to winform as following, but when running
it, i can only see one linklabel added (the first one). Could anyone help
me to solve it and tell me why?
thanks
jj
---------------------------------------------------
LinkLabel[] lnkCase = new LinkLabel[caseCount]... more >>
performance issue (Tech Questions)
Posted by Champika Nirosh at 9/9/2003 11:15:39 AM
Hi All,
I just wonder the differences between fallowings
if (myValue > 0)
{
DoThis();
}
&
if (myValue>0)
DoThis();
____________________________________
AND
____________________________________
If I call a variable with the "this" reference and if I call the same
... more >>
aximp of shdocvw.dll -> problem with ShellExecute
Posted by Wiktor Zychla at 9/9/2003 11:03:29 AM
I have a problem I cannot solve.
My application hosts IE activex control. I follow the standard procedure: I
just aximp shdocvw.dll. Note that this gives you two files: axshdocvw.dll
and shdocvw.dll.
And there comes the problem. I reference the libraries from my project. For
this to work, I... more >>
Error editing and deleting AD
Posted by Bryan Yeo at 9/9/2003 10:32:19 AM
Got no problem adding an AD account using the LDAP connection, but error
when finding a record to edit:
DirectoryEntry entry = new DirectoryEntry("LDAP://MyDomainName,
DC=MyDomainName);
DirectoryEntries entriesChild= entry.Children;
DirectoryEntry entryCheck = entriesChild.Find("bryantest");
... more >>
ActiveX control in new thread goes slow
Posted by Martin Baker at 9/9/2003 9:56:05 AM
I have an activeX control which I am calling from a C# program, this works
fine.
I now want to call the activeX control from a seperate thread, this works
but is very slow. This is far too slow to work properly, can anyone suggest
how I can fix this?
The program is not doing anything else w... more >>
Installing a Windows Service Programmatically
Posted by Hardy Wang at 9/9/2003 9:49:43 AM
Hi all:
I read an article from
http://www.c-sharpcorner.com/Code/2003/Sept/InstallingWinServiceProgrammatically.asp
about how to install a windows service programmatically.
Based ont the code sample, it provides the feature to install service
under LocalSystem account.
What I need ... more >>
Primitive types and threading
Posted by decrypted at 9/9/2003 9:47:03 AM
Is it generally ok to access static primitive types defined on the main
thread from a worker thread?
... more >>
Transfer file between webservice and client
Posted by Sunny at 9/9/2003 9:34:11 AM
Hi all,
I have to prepare a webservice (framework 1.1, C#) and winapp client (fw
1.1, C#). The service will prepare a file and soul send it to the
client.
Any help in that direction, how to implement file transfer between
webservice and client?
Thanks
Sunny... more >>
Adusting form size to screen size
Posted by Sagiv at 9/9/2003 8:49:11 AM
Hi,
I guess this should be an easy one (and yet..)
How do I adjust my form's size to the screen upon which it
is displayed(programmatically ,of course).
Thanks,
Sagiv... more >>
[ANN] LLBLGen Pro has been released!
Posted by Frans Bouma at 9/9/2003 8:41:53 AM
LLBLGen Pro has gone gold!
LLBLGen Pro, the new O/R mapper and data-access tier generator for .NET
has been released. LLBLGen Pro generates a complete data-access tier and
business facade/support tier for you (in C# or VB.NET), using an existing
database schema set. In seconds. The generate... more >>
Array of FileSystem Objects
Posted by timb at 9/9/2003 8:26:20 AM
Hi,
i want to declare an array of file system watcher objects. The idea is
that my config file specifies how many directories to monitor and then i
dynamically declare the filesystemobjects and add them to an array. This
idea was so i can create a event for handling these events since i do... more >>
Reading The Event Log On a Remote System
Posted by Greg Smith at 9/9/2003 7:37:55 AM
I have an old application that analyzes the data in the event log on one of
our servers. I would like to convert it to C#. Does anybody know of any
examples of reading the event log on a remote system in C#.
Any help is greatly appreciated.
... more >>
Spliter in an application Windows
Posted by PABLO at 9/9/2003 7:37:41 AM
I need to use spliter in an application Windows, if they
can help me with that I will thank for them very many... more >>
Printing a string to multi-page
Posted by Hai Ly Hoang at 9/9/2003 7:34:29 AM
Hi,
I have string which contains linefeed and carry-return characters (eg.
"Banana \r\n Apple \r\n...");
To print this string, i make use of PrintPage event of PrintDocument with
DrawString methods.
It causes a trouble, when the string is covered more than one-page when
being printed, some ... more >>
Dereferencing a property
Posted by Max Sandman at 9/9/2003 5:54:52 AM
Say I've got a control c = textBox1 and a string that is a property of
c, say string s = "Text". Is there a way in C# to use c and s to get
the contents of textbox1.Text?
sandman
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for... more >>
MDI problem
Posted by Bevo at 9/9/2003 5:50:26 AM
I use reflection to invoke a class derived from
System.Windows,Forms.Form and I want this form to run as
an MDIChild.
When I run it as a non-MDIChild the world smiles, when I
run it as a MDIChild its Show-method gives me this
exception:
'An unhandled exception of
type 'System.Missing... more >>
Xml Serialization Error
Posted by ron at 9/9/2003 5:31:26 AM
Hi,
I have class object that i serialize using the
System.Xml.Serialization class.
Intermittently the object is not getting serialized
correctly, using System.Xml.Serialization classes.
Therefore the application errors out when deserializing
the xml data.
It places the some part of the... more >>
Equivalent of PreTranslateMessage in C#
Posted by Vibhesh at 9/9/2003 5:29:56 AM
Hello,
I have designed a form in C#. There are several controls
on the form. I want to trap all the events at the form
level before they are passed on to the controls.
For eg : Suppose there are two buttons on the form. At any
moment one of the two buttons will be focused. When I
press... more >>
C# equality to Java >>> operator
Posted by Dennis Myrén at 9/9/2003 5:13:12 AM
Hi.
Is there a C# operator that is equal to the java operator:
>>>
Regards
Dennis
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
How to get the differences between two DataSets in a thrid one?
Posted by ah2003 NO[at]SPAM gmx.net at 9/9/2003 5:00:15 AM
Hi there
I have two typed DataSets. One represents the state of a certain DB
table some time ago, the other represents the current state of the
same DB table. Now I would like to get the changes in a third table,
each row with the appropriate row state Added, Deleted or Modified. Is
there any... more >>
Microsoft.Web.UI.WebControls.TreeView
Posted by Reb at 9/9/2003 3:03:56 AM
Hi,
Can I have any simple example for
Microsoft.Web.UI.WebControls.TreeView?
I need to use Treeview, but i have no idea of how to go
about doing this.
Thanks
Reb... more >>
|