all groups > c# > september 2004 > threads for wednesday september 22
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
change desktop resolution
Posted by Dirk Reske at 9/22/2004 10:50:50 PM
Hello,
is there a way, to change my resolution out of my programm?
thx
... more >>
Excel Automation
Posted by Mansi at 9/22/2004 9:33:03 PM
I need to do some research on how to use excel automation from c#. Does
anyone know of any good books related to this subject?
Thanks.
Mansi
... more >>
Problem creating dbf table using JET/OleDb
Posted by Derek Griffiths at 9/22/2004 8:48:49 PM
Basically I'm just trying to get my program to make a simple table. Lucky
for me that I choose to start with the simple ones I suppose.
Here's the SQL command I am trying to run: "CREATE TABLE Groups.dbf (Name
char (25),Number char (4));"
Here's the exception it generates:
Unhandled... more >>
Guid Array?
Posted by Tamir Khason at 9/22/2004 8:44:17 PM
I want to build Guid Array so doing:
Guid[,] data = new Guid[x,y];
.... and recieve an error "; expected" - What's the hell?
TNX
--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
... more >>
Is ther any wrapper framework dll available for gdi32,user32
Posted by TusharP at 9/22/2004 8:05:30 PM
Hi Friends,
Is there any similar framework dlls for gdi32.dll, used32.dll.
I want to use following functions
1) GetPixel
2)SetWindowRgn
3)CreateRectRgn
4)CombineRgn
5)SendMessage
6)ReleaseCapture
7)DeleteObject
8)GetRegionDataByte
9)GetRegionDataLong
10)ExtCreateRegionByte
11)OffsetRg... more >>
How to Embedded one Window Form datagrid as row of other datagrid
Posted by TusharP at 9/22/2004 7:51:32 PM
Hi Friends,
My requirement are as follow.....
1) First DataGrid display all row of one table, with this one additional
column having +/- control like tree.
2) When user click on +/- control DataGrid row must expand & show rows of
other table (filtered row based on clicked row values). I thi... more >>
ISerializable on value types
Posted by Eran Kampf at 9/22/2004 7:47:24 PM
I noticed this wierd problem when implementing ISerializable for a value
type.
The MSDN documentation (and FxCop) say The GetObjectData method should be
marked with [SecurityPermissionAttribute(SecurityAction.Demand,
SerializationFormatter=true)]
(http://www.gotdotnet.com/team/fxcop/docs/ru... more >>
WebForm DataGrid
Posted by Ben Cox at 9/22/2004 7:42:57 PM
I have a DataGrid on a WebForm which has one column added in the design
properties of grid and 6 BoundColumns added in c# code. The grid displays
properly but in the Edit event the Items.Cell.Count is one. When the grid
is displayed the Items.Cell.Count is 7. If anyone has an idea of what ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Sending account info on HttpWebRequest
Posted by Marco at 9/22/2004 6:46:16 PM
I'm trying to parse the results of a webpage so that I get more refined
information. I've gotten as far as downloading the webpage with
HttpWebRequest but I ran into a problem. Certain parts of the site need you
to login to access them. I can't figure out how to go about doing this.
Can s... more >>
Play a movie in interval
Posted by Vaibhav at 9/22/2004 6:34:46 PM
Hi,
How can we stop a 40 minutes movie in 10 minutes using .NET. I want to play
a movie in time intervals of 10 minutes.
Vaibhav
... more >>
set a property of inherited class from base class
Posted by TS at 9/22/2004 6:08:53 PM
I am trying to get set a property of a control on the inherited class from
base class. I imagine i have to use reflection, so could someone give me the
code to do it?
something like this?
this.GetType().GetMember("panel1").SetValue(xx).Left = 44;
... more >>
Compile .cs files
Posted by NOSPAM at 9/22/2004 5:58:32 PM
I don't have Visual Studio, Is there an easy way to compile bunch of .cs
files at once? I have written several .cs files and put in the /bin folder
.... everytime I add a new file, I have to edit the batch file, it's kind
of annoying if the project grows bigger.
Is there any free tools ou... more >>
Is C# support load device driver?
Posted by Steve at 9/22/2004 5:53:02 PM
I wrote a simple virtual device driver int15.sys, Is C# support load the
device driver from AP?... more >>
How to merge RTF with data ?
Posted by brandon NO[at]SPAM hotmall.com at 9/22/2004 4:23:52 PM
I have an RTF-file with 'placeholders' and these placeholders
must be filled with external data (by an C#-application).
What is the 'best' way to accomplish this ? I could, of course,
write a plain 'search-and-replace'-routine, but I gues there
are better ways (xsl ?).
I've already google... more >>
upload timestamp
Posted by MFS at 9/22/2004 4:03:38 PM
How can I make sure that an uploaded file has the same
time stamp as the file on the local machine?
... more >>
Create an object from an object.
Posted by James Curran at 9/22/2004 3:40:05 PM
Given an object on unknown type, I'd like to create a new
(default-constructed) object of the same type. After some playing with
Reflection (my first foray into that area), I came up with the following:
public object CreateNew(object obj)
{
Type t = obj.GetType();
Construct... more >>
WTSEnumerateSessions
Posted by Mészáros_Tamás at 9/22/2004 3:25:12 PM
Hi!
I want to get information about the state of TS-Sessions, and I've tried
it the following way:
------------------------------------------------------
enum WTS_CONNECTSTATE_CLASS
{
WTSActive,
WTSConnected,
TSConnectQuery,
WTSShadow,
WTSDisconnected,
WTSIdle,
WTSListen,
W... more >>
Overload resolution with params argument
Posted by hpalace NO[at]SPAM hpalace.com at 9/22/2004 3:21:44 PM
What are the rules for method overload resolution when there are
functions with a params argument? No mention of params is made in
section 7.4.2 of the C# specification on MSDN (titled "Overload
Resolution").
-- MJF... more >>
Convert Array of Int to image
Posted by Clas Hortien at 9/22/2004 3:19:52 PM
Hi,
i have a array of uint[] and want to display this array as a
System.Web.UI.WebControls.Image.
//=========================================
uint [] ar = new uint[3072];
string fName;
System.Web.UI.WebControls.Image i = new System.Web.UI.WebControls.Image();
vm.Display._GenerateThum... more >>
CRC Files
Posted by Wayne at 9/22/2004 2:47:15 PM
I want to take a checksum of a file, and store it. I use the checksum list
to compare to the current file I'm checking, if it's checksum is in the list
I delete the file.
Is there anything built in to .net that will give me back a checksum of a
file?
if so will it be unique enough to trust fo... more >>
Util functions for IList
Posted by cody at 9/22/2004 2:17:13 PM
why arent there some util functions for IList for example Sort()?
--
cody
Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk
... more >>
Https components throw the exception after the long idle time
Posted by SMike at 9/22/2004 1:42:26 PM
I post this message again as I didn't get an answer back. I would appriciate
any ideas.
I am getting the following error when sending a https request after a long
period with no activity.
Cannot access a disposed object named "System.Net.TlsStream".
After that everything sems to be fine u... more >>
catch changing of the Control.Name Property
Posted by Weinand Daniel at 9/22/2004 1:36:05 PM
i'd like to monitor changes of the "Control.Name" porperty during
designtime.
if the user changes the name in designer my event musst fire.
i have created a own button control. with an event NameChange.
during runtime it works fine. if the name of the control has changed the
event is fire... more >>
ASCII, StreamWriter and swedish letters
Posted by MA at 9/22/2004 1:33:24 PM
Hi all!
I have a major problem. I need to write an textfile with 1 b per letter. But
it should be able to handle swedish letters to (åäö).
Is it possible to use 8 b ASCII for this?
This file is used by an sms application and cannot be in another format.
/Marre
... more >>
slowness part2
Posted by Jason at 9/22/2004 1:24:33 PM
This is a simplified demo of the problem I posted this morning... boiled
down to just the basic case that is causing my app to run painfully slow.
Seems like the slow part is using the graphicsPath Point accessor. Can
anyone see how I could speed this up?
//main test form button handler
pri... more >>
Cannot access a disposed object named "System.Net.TlsStream".
Posted by SMike at 9/22/2004 1:08:55 PM
I post this message again as I didn't get an answer back. I would appriciate
any ideas.
I am getting the following error when sending a first https request:
Cannot access a disposed object named "System.Net.TlsStream".
After that everything sems to be fine untill the next long idle period.... more >>
System.Windows.Forms.Command??
Posted by Ignacio X. Domínguez at 9/22/2004 1:05:36 PM
Is there any way I can call System.Windows.Forms.Command.DispatchID() ?? the
problem is that it is declared internal, so I can't reach it because it
gives me: 'System.Windows.Forms.Command' is not accessible in this context
because it is 'Private'. exception.
Any ideas? Thanks
... more >>
Application customization in dotnet
Posted by MarcoT77 NO[at]SPAM gmail.com at 9/22/2004 12:42:07 PM
Hi experts!
For customization purpose i need to substitute a class that is
implemented within an assembly, with a new class (with the same name).
I haven't the sources but I'd like to rewrite this class so that the
application will consider my new class and not the original in a
similar way t... more >>
Input Request
Posted by Thom Little at 9/22/2004 12:20:24 PM
Given the request ...
http://www.someurl.com/default.aspx?type=off
how can default.aspx read the values "type" and "off" from this example
using C# in ASP.NET?
In ASP it is something like ...
strWork = location.search.substring(0).split("&" )[0] ;
strLeft = strWork.split("=")[0] ;
strRig... more >>
How Do I clear the Disk Cache (Virtual Cache) in Windows XP ?
Posted by Romy Sreedharan at 9/22/2004 12:11:01 PM
Hello,
I am wondering whether there is a mechanism to clear the Hard Disk Cache
using C#?
This is for O.S Windows XP
regards
romy
... more >>
.net framework 1.1 SP1 Problems
Posted by bwolfe NO[at]SPAM cgate.net at 9/22/2004 11:56:18 AM
We are having problems with SP1 of the framework. This has been
confirmed to be a SP1 issue and tested on several machines using XP
and Win2K. MDI activation is different.
1. Have multiple MDI windows open in an a C# app that has MDI forms.
2. Close the top window.
3. The form that was first o... more >>
Interfaces design question (w/ multiple inheritence)
Posted by matt.raffel NO[at]SPAM mindspring.com at 9/22/2004 11:33:22 AM
Bear with my while I try to explain...
I've created these two interfaces:
public interface ILoggingEvents { event LoggingWindowClosing
OnClosing;}
public interface ILogging { ... }
I then created a class that implements them both:
public class WindowLogging : ILogging, ILoggingEvents
... more >>
Method info discovery using Reflection, variable argument list
Posted by JH at 9/22/2004 11:27:26 AM
Fairly new to c# so please forgive any simple oversights.
I'm developing a console app that loads dll assemblies at run time. The app
scans a "plugin" directory for these dlls. Each dll is loaded into an
Assembly object, the types in the assembly are extracted and the methods on
each type are ... more >>
Idea for a tiny little program...
Posted by Marco Ippolito at 9/22/2004 11:21:32 AM
Hi,
I am giving a seminar on C# interop and I would like to feature an original
sample class to stimulate some interest.
Does anybody want to write an open-source ConsoleApp || WinApp that, given a
starting English word, calls Babylon for translations in N languages and
plays a game with th... more >>
Convert a string containing a 32-bit binary date to a date data type
Posted by Remi Caron at 9/22/2004 11:08:08 AM
Hi,
I took over an Visual Object project (Visual Clipper) in that language there
is a function to: Convert a string containing a 32-bit binary date to a date
data type. That function is called bin2Date and there also is a Date2bin
function of course in cannot find how to do this in csharp. ... more >>
PrintDialog/PageOrientation BUG ?
Posted by Steph. at 9/22/2004 10:46:43 AM
Hi,
Is there a BUG in the printdialog ? When I create a PrintDialog =
ans set the "DefaultPageSettings.Landscape" property to "false" and then =
display the dialog, select "Landscape" and click OK, the value of the =
"DefaultPageSettings.Landscape" is still false !!??
Code Exemple :... more >>
get started the -right- way on my application
Posted by Keith Henderson at 9/22/2004 10:43:07 AM
I need to build a small application, 1 exe, 4-5 forms, about 5 imbedded
Crystal Reports, about 5 classes, one locally installed access database,
etc. I will be the only coder. I don't want to start another application
where I just code right away because I can see that I waste time because I... more >>
disabling custom controls
Posted by Alon at 9/22/2004 10:29:50 AM
Hi,
I created a button control, which inherits from
System.Web.UI.LinkButton.
I wrote a function which disables all the web controls
and the HTML controls on the page, but for some reason,
the custom button remains enabled.
What is the reason, and what can I do ? I know I can use
the f... more >>
Export data in CSV format
Posted by Hetal Shah at 9/22/2004 10:15:08 AM
I am trying to export data to CSV file as comma separated file. Some of the
data contains comma in it. Because of that, it splits the data into to cells
while I expect to have in one cell only.
How can I have the data in one cell having comma in it?
Thanks
Hetal
... more >>
NullReference Exception on new'ed array(?)
Posted by SteveK at 9/22/2004 10:07:57 AM
given this code:
TreeNode[] n = new TreeNode[10];
n[0].Text = "test";
does it make sense that I should get a NULL Reference Exception when
assigning to .Text?
Isn't that the whole point of 'new TreeNode[10]'
Any help appreciated, thanks!
... more >>
slowness
Posted by Jason at 9/22/2004 9:56:29 AM
I have a graphicsPath object filled up with apporximately 2000 points, I am
coping them out into my own point class so I can do some extra operations on
them, its super slow. In C++ this would be pretty fast, not instant, but
would take in the milliseconds, in c# is taking up to 10 seconds. The
... more >>
XML from J#
Posted by Ahmad at 9/22/2004 9:47:51 AM
C# generates XML, How to generate XML file from J# code.
Thanks
ahmadrazakhan@hotmail.com
... more >>
GUI - Threading question
Posted by Tim Gallivan at 9/22/2004 8:43:34 AM
Hello group,
I have a form that starts a thread via a ThreadStart. The thread lives for
the lifetime of the form, doing processing and so on. My question is: In
such a situation, what is the accepted way to monitor the thread to make
sure it hasn't crashed. Do you use a timer and check the thr... more >>
Do you need to close FileStream AND StreamWriter?
Posted by Dan at 9/22/2004 8:25:16 AM
In the following example, is it necessary to close the FileStream object as
well as the StreamWriter object?
FileStream fs = new FileStream(fileName,
FileMode.CreateNew, FileAccess.Write, FileShare.None);
StreamWriter swFromFile = new StreamWriter(logFile);
swFromFile.Wri... more >>
Background Image drawing
Posted by Aku at 9/22/2004 4:32:37 AM
Hello,
In my C# app I put a background image (.jpg) via the Properties
attributes.
The image appears several times, tiled - so if you resized the dialog,
more will appear!
This is not what I wanted; I meant to get one image, and it should be
stretched to full window size and automaticallly... more >>
Convert java to C#
Posted by BuddyWork at 9/22/2004 2:24:26 AM
Are anyone aware of any conversion tool out there which
can convert the java code to C#.... more >>
Sharp3D.Math - A C# class library for .NET numerics and Geometry calculations
Posted by Eran Kampf at 9/22/2004 1:53:59 AM
Check it out at http://www.ekampf.com/Sharp3D.Math/
Eran Kampf
http://www.ekampf.com
... more >>
CreateConsolScreenBuffer
Posted by Maverick at 9/22/2004 1:15:02 AM
Really have problems when converting "CreateConsolScreenBuffer" to C#. Can
anyone give me an example for the function ?
typedef struct _SECURITY_ATTRIBUTES
{ DWORD nLength;
LPVOID lpSecurityDescriptor; // not sure abt this part
BOOL bInheritHandle;
}
transfer to the followi... more >>
|