all groups > c# > october 2003 > threads for monday october 20
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
monitor resolution
Posted by RickN at 10/20/2003 11:47:28 PM
What's the best way to determine the resolution of the
client's monitor, eg. 640x480, 800x600?
Thanks,
RickN
... more >>
Run .Net programs on other computers
Posted by Greg at 10/20/2003 11:36:02 PM
Hi
Where can I find that program that allows a c# program to
run on a computer that hasn't MS Visual Studio installed.
thanks.... more >>
RegEx, Match but not include
Posted by Gawelek at 10/20/2003 11:33:04 PM
Lat say, we have such a string : "Ala ma kota"
Is is possible to express using Regular Expresion, that I want to get
word "kot", that lies behind word "ma" ?
BUT, it is the most important thing, in "matches" I want to get only
word "kot".
Example :
String s = "Ala ma kota";
Regex r = new... more >>
print preview bug when printing
Posted by Martin at 10/20/2003 11:25:43 PM
I have encountered a bug in print preview:
In my program, data for printing is taken from arrays. When print preview is
invoked or page is printed directly, it is ok, but when user prints from
print preview, any data that was in array is not draw, so only thing printed
is header and footer.
A... more >>
Exception
Posted by Ajay Bhola at 10/20/2003 9:44:23 PM
Hi All,
I am getting following exception when I try to execute my app from C
drive.
Recently I have build a control which lies in a DLL and this error
happens
only on a particular PC and when user try to open the window which has
that
control. The other PCs seems to be ok.
Before impleme... more >>
CodeDOM: Parsing and Generating C#
Posted by John Wood at 10/20/2003 7:58:37 PM
Is it possible to use CodeDOM to parse a project's C# source files, and then
use it to generate the source from the given structures in order to reformat
all your code?
... more >>
Accessing another namespace
Posted by Mike Oliszewski at 10/20/2003 7:39:57 PM
Given the following c# code:
namespace Company2
{
public class SomeFunctions
{
public void FunctionA()
{
// Do Something.
}
}
}
namespace Company1.Company2
{
public class SomeFunctions
{
public void FunctionB()
... more >>
Output to Multiple Monitors
Posted by JMM at 10/20/2003 7:20:51 PM
I'm writing a control program that will require a lot of
screen real estate to interact with the user. One thought
I had on how to do this was to use a dual output display
adapter and two monitors. I would then create forms that
would present specific information on each monitor. My
questi... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Text file as embedded resource
Posted by Ron Vecchi at 10/20/2003 6:45:32 PM
I have a text file(.js) that holds a buch of java script code that is
rendered in some web controls all part of a larger webcontrol library.
The file is rather large. Would embedding this resouce in the application
be relevant in this situation. I know I can chage the build type to
embedded ... more >>
winsock???
Posted by '[] WiRaN at 10/20/2003 5:53:54 PM
one ever use winsock?
example???????
'[] WiRaN
... more >>
[imp] Active Directory Question Pls Reply
Posted by Arvind P Rangan at 10/20/2003 5:34:50 PM
Hi,
I working on Active Directorys, and am trying to retrive some values for
certain attribute.
No problem till now, but some attributes don't have values like
Title,Second Name,etc...
When i try to compare those values with isNothing or IsDbNull its still
raising System.NullReferenc... more >>
Updating FoxPro DBF From C#
Posted by at 10/20/2003 5:01:37 PM
I am trying to Delete records from Fox Pro Free Tables (.DBF) using
C#. I am able to insert and view data with no problems but when I try
to delete - no luck. It appears that I need to run a "Pack" command
but I receive the error "File must be opened exclusively." on the Pack
Command. The co... more >>
Here's a simple one
Posted by Tomas Vera at 10/20/2003 4:47:51 PM
Hello All,
I've come across something that's probably simple, but I can't seem to figure
out (probably 'cause it's Monday.. yeah, That's it).
Anyway, how do I receive form information from a standard HTML or ASP page into
my ASPX page?
I assumed that Request.Form would hold the form info fr... more >>
C# and file system
Posted by George Varelas at 10/20/2003 4:20:48 PM
Hi.
Can anyone help me with the following problem?
I have a desktop application. The language is C#. I want to access a
directory on a server through this application. Not with http or ftp (using
the 'directory' object). The problem is that I am not user of this server.
Even if I was (I can do ... more >>
How to control the height of lines in list view?
Posted by CYShao at 10/20/2003 4:15:09 PM
How to control the height of lines in list view?
Hi, friends:
I just want to set the height of lines in list view.( not the height of
font )
But I didn't find a property to do that.
Now, I have to insert an empty image for each line to make it heighter.
Could you tell me some other bet... more >>
Create Object from Variable
Posted by Patrick at 10/20/2003 4:01:07 PM
Is there a way, to create dynamicly an object from a variable in c#.
Something like
string myclass ="testclass";
Object t = new (object)myclass;
then the contains a new testclass ...
any idea how to do this??
... more >>
String question
Posted by Ivan Demkovitch at 10/20/2003 3:39:44 PM
Hi!
Completely dumb question...
I'm constructing email text in code and need to add line break.
i.e.:
s = "sdfsd" + LineBreak + "sdfsdf";
In VB I use vbNewLine
How do I make it in C#?
Thanks!
... more >>
SQL Query
Posted by Eric at 10/20/2003 3:11:10 PM
I'm having trouble building an SQL query. I have 2 tables
Students
Name Major ID Year
and
Elections
Title Major Year All
Given the name of a student, I need to find the title all the elections that student can vote in if his Major OR ID matches. Ignore the All fiel... more >>
Windows service not reading sql table
Posted by timb at 10/20/2003 3:06:12 PM
Hi,
I have created a windows service which is responsible for running
certain tasks when they are scheduled to run. The service monitors a sql
table and runs a task when the task scheduled time is overdue. This service
is installed at several sites and on 4 out of 5 sites runs the tasks
co... more >>
multi byte char * to csharp string
Posted by caviar at 10/20/2003 1:52:17 PM
I'm trying to read in a ref parameter from a native dll, its working in vb
if i use the kernel32 functions below transforming the ref param to a vb
string:
Now, i want to skip this vb dll and use the native dll directly from c#
[DllImport("pafutw32.dll")] // CharSet = CharSet.Auto, CallingCo... more >>
Looking for a Wizard97 sample in C#?
Posted by Michael Herman (Parallelspace) at 10/20/2003 1:50:33 PM
http://msdn.microsoft.com/downloads/samples/internet/default.asp?url=/downloads/samples/internet/shellcc/wiz97/default.asp
is a C++ .Net version of the original Wizard97 sample.
My question is: has anyone created an equivalent C# sample for a Wizard97
style wizard? ..."equivalent" => same lo... more >>
extracting tokens from strings
Posted by Jay Nesbitt at 10/20/2003 1:47:29 PM
Is there a quick way to extract tokens from a string of text? I know Java
provides a StringTokenizer class to do this. Is there something similar in
the dot net framework?
Ex.
string s = "some text then #token1# and then #token2#";
string[] tokens = tokenizer.GetTokens(s, "#");
The content... more >>
oldcomobject.ToString in C# :-)
Posted by JerryP at 10/20/2003 1:15:23 PM
Hi Group,
I realy enjoy the great help that is given here - but I guess now I have a
real challenge:
I have an "old" vb6 com Object that has a methode ToString. Now if I
instanciate this object in C#
and call ToString() I get the FrameWork Version of the Methode - how can I
get the com Obj... more >>
Finding MAC Address
Posted by FR3AK at 10/20/2003 1:02:49 PM
Hi.
does anyone have any idea of how to find the mac address of a remote
networking device? I've worked with WMI and it works fine as long as the
target machine is a Windows computer, however, i want to return the MAC
address of ANY IP device on my network.
right now, i have a totally inef... more >>
Re: Network adapters
Posted by Nicholas Paldino [.NET/C# MVP] at 10/20/2003 12:32:32 PM
"Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard.caspershouse.com> wrote in
message news:...
> Boniek,
>
> What you want to do is use the classes in the System.Management
> namespace to perform a WMI query. You want to get all instances of the
WMI
> class Win32_NetworkAdapterConfigurat... more >>
C++ struct transparency in C#
Posted by Urs Wigger at 10/20/2003 11:53:16 AM
In a C++ project, I have the following struct definition:
struct GridModeDataT
{
double dVal1;
double dVal2;
double dVal3;
long lNumberOfPoints;
int bUseRegion;
enum ES_RegionType regionTyp... more >>
Recycle a thread after it was suspended
Posted by Müller at 10/20/2003 11:47:05 AM
Hi All,
What I want to do, is to reuse a thread after it was supended. However,
if the thread was suspended for a while and I reinvoke it using
Thread.Resume(), an exception is thrown. If I look at the ThreadState of
the thread, it does not show Suspended, but WaitSleepJoin.
Am I missing ... more >>
Validating whole numbers stored as float (was "Inheritance Question")
Posted by Neils Christoffersen at 10/20/2003 11:37:27 AM
Hey all,
I wrote on Friday asking for some help moving a common subclass field up
to the base class (original post and followup included below). This
entails storing whole numbers inside float data types. What I'm stuck on
is how to make sure that the value coming in is indeed a whole numb... more >>
In ListView to cach text changed
Posted by dave at 10/20/2003 11:34:05 AM
With LabelEdit = true a user can change item's text, how
to cach this event?
Also, a ListView has OnTabIndexChanged (inherited from
Control), maybe this is it, but I could not implement it.
I general, how to implement an inherited event?
Thanks.... more >>
c# AsyncCallBack and COM+
Posted by Rick Close at 10/20/2003 11:18:39 AM
We are developing a C# application using .Net
AsyncCallback delegates. The application currently
executes, as expected,
using these asynchronous methods. Once this application is
converted to a COM+ component (i.e. a .NET serviced
component) the program ceases to execute properly
and 'ha... more >>
statically linking to unmanaged .LIB files.
Posted by Daniel Bass at 10/20/2003 11:17:58 AM
Is it possible to do this?
I know if you take an unmanaged COM DLL and run it through the tblimp, you
get a new file with an intermediate layer that translates between the IL and
native code, but i don't see anything for .LIB library files.
Thanks.
Dan.
... more >>
printing problem with PrintPreviewDialog
Posted by georg at 10/20/2003 11:14:30 AM
Hi,
i have a problem with the PrintPreviewDialog, if i want to
print out my document with the button in the preview
dialog, the output on the printer is empty, but on the
preview I can see it. If there is not more than one page
it seems to work. Printing out without preview works
correc... more >>
.NET c# application call win32 regulare dll api
Posted by Chi Tang at 10/20/2003 11:07:26 AM
Hi,
Does anybody know how to call a unmanaged win32 dll function from a .NET C#
managed application? Do I need to write a managed C++ dll or a COM dll
which become a server of .net C# app or I can just 'import' the win32 dll
into my .NET C# application? Where can I get the sample? Thanks a ... more >>
User's Operating System & .NET
Posted by sandman at 10/20/2003 10:56:22 AM
I found a page on MSDN that describes the different Windows operating
systems and .NET compatability
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotn
et/html/framewkwinsupp.asp). But it sounds like the page is referring
to developer installations. Do the same limitation... more >>
Assembly Id
Posted by web1110 at 10/20/2003 10:29:21 AM
Hi
I am trying to find out how to associate an assembly name with a dll file
name. I am creating dynamic assemblies and must perform
ReferencedAssemblies.Add() operations. I know the name of the assemblies I
need for the using clauses, but not the names of the corresponding DLLs for
the Ref... more >>
verifying the authentity of an assembly producer with strong naming?
Posted by Reinhold Schalk at 10/20/2003 10:24:40 AM
Hello,
somewhere i've read that using strong names does assure two things:
1. Assure that the content of the assembly is not modified (that's ok in my
opinion)
2. Assure that the assembly is really from the "fabricator" (?)
If these two point are correct (i'm not sure), i have a problem with ... more >>
Windows Services shutdown order
Posted by Bill Sonia at 10/20/2003 10:11:15 AM
I've written a Windows Service to send e-mails on events like OnStart,
OnStop, OnShutDown using System.Web.Mail. It works for everything but
OnShutdown. My guess is that for OnShutDown, once my send mail code is
executed, other necessary Windows Services have been terminated before
it can actu... more >>
Execute Scalar
Posted by Mike P at 10/20/2003 10:11:13 AM
Is it OK to use ExecuteScalar if there is a possibility that the SQL it
uses may not return a value? I'm asking this because I have a table
with a particular field (call it Department) and then another field
(call it Department number). Now I want to find the last record with a
particular Depa... more >>
Priority Queue
Posted by Dan H. at 10/20/2003 9:47:04 AM
Hello,
I have implemented a C# priority queue using an ArrayList. The objects
being inserted into the priority queue are being sorted by 2 fields, Time
(ulong) and Priority (0-100).
When I enqueue, I do a binary search on where to put the object and then
insert using that index and arraylis... more >>
PrivateFontCollection??
Posted by Alex Davis at 10/20/2003 9:35:24 AM
Does anyone know how use fonts that are NOT installed on the system?
Alex
... more >>
Save state and restore state of ASPxGrid Accross pages
Posted by jameswansley NO[at]SPAM yahoo.com at 10/20/2003 8:57:50 AM
I am using C# for codebehind and ASP.Net for page code. I am using a
databound ASPxGrid on a page that is databound in the codebehind. I
have a single LinkButton on this page. When I click this link button
I:
1. Send the ASPxGrid object to the Session["Grid"] variable
2. Send the the dataso... more >>
Initializing listView items
Posted by Ray Mitchell at 10/20/2003 5:59:42 AM
Hello,
I've created a 2-column listView control and have successfully labeled the
column headers using the ColumnHeader Collection editor. I would now like
to put some text items into the list using the ListViewItem Collection
Editor. I can successfully do this for the first column by simply... more >>
Change Page Background Image programmatically
Posted by ron at 10/20/2003 5:55:01 AM
Hi,
I have a page where i would like like to change the
background image depending on the 'Request.Params'
received value in the code behind.
There are three different image that can be loaded.
What is the best way to do this?
I have been trying to do this using the Tables Styles
class b... more >>
Running in the background
Posted by Jesper Dk at 10/20/2003 5:51:43 AM
Hi, I would like to create an idle running application
that runs in the background using very few resources for
the simple purpose to react on WM_QUERYENDSESSION and
then invoke some shutdown(or log of) code. Is it possible
to make such an app showing an icon next to the clock in
the task ... more >>
SetDataBinding
Posted by Michael at 10/20/2003 5:28:50 AM
Hi guys,
I'm new in developing applicationa in C# and I have a
very strange effect to display my data in the DataGrid:
the method SetDataBinding is unknown for my DataGrid
I use the following codesample:
myDataGrid.SetDataBinding(myDataSet, "Customers");
please can you help me?
Thank... more >>
preventing multiple logins
Posted by Sameer at 10/20/2003 3:10:23 AM
one important problem i am facing is that my web solution
(asp.net) will be deployed on a webfarm. I am using sql
server session management on clustered sqlservers. but as
i need to prevent multiple logins through a
username/password (same credentials at a time) on the
website.
also se... more >>
COM+ in C#
Posted by Irfan at 10/20/2003 2:56:26 AM
hi there,
I have 4 servers running a COM+ app. within their own
COM+s on Windows 2000. I mean, the same COM+ app. is
replicated on these 4 servers and each server uses its own
COM+ app.
Now, I have another PC having say a monitor application
that refers to the COM+s running on the 4 se... more >>
Mouse Hook in C#
Posted by Logan Mckinley at 10/20/2003 12:05:46 AM
I need to know where the cursor is (x,y) and when it moves even when it is
not over my form. I know i can get the current location with:
System.Windows.Forms.Cursor.Position.X
System.Windows.Forms.Cursor.Position.X
But that does not raise an event and using a timer w... more >>
|