all groups > c# > july 2004 > threads for thursday july 15
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
Automatically logged out
Posted by Philip Carnstam at 7/15/2004 10:28:55 PM
Hi,
I know I've seen this thread around here somewhere before, but I can't seem
to find it, so I'm asking the question anew.
When trying to connect to my Terminal Server (Windows 2003) I get logged out
before I have even seen the desktop. I log in and the dialog for personal
settings shows ... more >>
OFFSHORE DEVELOPMENT
Posted by David at 7/15/2004 10:28:01 PM
Hello.
Can anybody tell me where can I find any offshore jobs in .NET technologie?
... more >>
Dragging image inside the RichTextBox ?
Posted by Sachin at 7/15/2004 9:35:01 PM
If I have an image inside the RichTextBox, can I drag/move it inside the RichTextBox with the help of mouse, just like we can move any control on the form during design time.
Please guide
--
sachin... more >>
Seems to be a dumb question = Windows Services.
Posted by craig NO[at]SPAM craiganddenise.org at 7/15/2004 9:33:59 PM
I am trying to use a timer in a simplistic windows service... In my
OnStart method, I declare and initialize the System.Threading.Timer,
and set it to fire every 30 seconds. In my callback method, I read
from one Database, and write to another. Mainly that is all it does.
(This only takes ar... more >>
SNMP Api Problem
Posted by craig NO[at]SPAM craiganddenise.org at 7/15/2004 8:44:04 PM
Can anyone help with this one?
I am using mgmtapi and am having trouble with the function
SNMPMgmGetTrapEx.
It should be passing out a pointer to a structure, but it seems to be
passing me just an int?
Any Ideas?
Craig... more >>
Windows Service Threading
Posted by Dan at 7/15/2004 7:45:04 PM
All,
I have a windows service that creates a couple of worker threads to do some processing. The service works fine.
However, the main service thread has a method for sending email notices that I would like to be able to call from the worker threads. Furthermore, I would like this call to be d... more >>
Virtual static methods?
Posted by Pavils Jurjans at 7/15/2004 6:41:34 PM
Hello,
I wanted to get some feedback on why there are not allowed virtual static
members in C#.
Say, I have the Parent class, that hosts number of protected methods, that
occasionaly make calls to the virtual methods. When I create the Child
class, inheritting from the Parent class, and dec... more >>
SQLConnection.Open() in a WebService
Posted by stephenkearney NO[at]SPAM yahoo.com at 7/15/2004 6:30:25 PM
I'm experiencing a strange problem that has me baffled. I created a
webservice with a webmethod that connects to a remote MS SQL Server.
It works fine when connecting to one server (running SQL Server 7).
But it can't connect to another server (running SQL Server 2000). The
SQLConnection.Ope... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How do I add an event to code?
Posted by vbMark at 7/15/2004 6:20:06 PM
If I have a control, for example a CheckedListBox, how do I add and event
to code, for example that a box has been checked by the user?
Thanks... more >>
Desperate: Problem with AL.exe and questions
Posted by Ian at 7/15/2004 6:16:06 PM
Hi there,
I need some help if anyone can jump in, i know its something easy but i am
just going round in circles.
I was following a tutorial here
(http://www.codeproject.com/dotnet/Localization.asp) to use localization, I
have created a resource file (.resource) but everytime i try and comp... more >>
GUI thread
Posted by Nenad Dobrilovic at 7/15/2004 5:55:02 PM
Hi,
I have big problem. I made generic form which can be rendered, and as a
result of that action, I get System.Windows.Forms.Form object.
Rendering must be done in GUI thread (one which has message pump), but I
can't garantee that the using of Render function will be made in GUI thread.
This... more >>
Free Space on a Drive Passing UNC Path
Posted by Glenn Wilson at 7/15/2004 5:39:01 PM
I need to pass a UNC path to the code and return the Free space on that drive, Can any one please pass through some samples that will assist.
Thanks ( C# Newbee :) ) ... more >>
where is app.config?
Posted by Lei Jiang at 7/15/2004 5:03:15 PM
In VS.NET 2005 Beta1, where is app.config when I create a C# project?
... more >>
iterate through object attributes
Posted by Fabian at 7/15/2004 4:58:42 PM
Hi,
I would like to iterate attributes of an object like
foreach(attribute a in o.attributes)
{
...
}
any way i can do that?
Thanks
Fabian
... more >>
Terminating the main window
Posted by Michel Racicot at 7/15/2004 4:52:38 PM
Within a catch statement located in my main window's constructor, I want my
application to terminate.
I've tried doing this:
try
{
// Some code that raise an exception...
}
catch (Exception eError)
{
MessageBox.Show(eError.Message);
Application.Exit();
}
... more >>
Class design issue: how to store unique inherited objects?
Posted by J.J. Feminella at 7/15/2004 4:50:41 PM
I have an unfinished small class hierarchy that looks something like the
code snippet below. The intent is to have a simple company identification
system that ensures uniqueness by calling IsUnique() and allows for
variations between different types of ID. (This isn't at all close to what
I'm ac... more >>
Delegation and refreshing UI control
Posted by VM at 7/15/2004 4:42:50 PM
How can I display the contents of a datatable in a windows datagrid while
the table is being filled? Here's my summarized code:
delegate void loadAuditFileToTableDelegate();
private void btn_run_Click(object sender, System.EventArgs e)
{
/* In Window form */
loadAuditFileToTableDeleg... more >>
RichTextBox undo/redo function doesn't work
Posted by Alan at 7/15/2004 4:04:42 PM
Hi all,
I want to hilight some syntax keywords. While parsing text, I used these
properties such as SelectionStart,SelectionLength and SelectionColor of
RichTextBox. Although the syntaxhilghting effect was reached, I found
original undo/redo function didn't work!!
Any ideas?
Thanks,
Ala... more >>
Removing embedded (white) space from string
Posted by Julie at 7/15/2004 4:00:29 PM
I currently use the following to remove embedded spaces from strings:
dest = str.Replace(" ", "");
and resort to something like the following to remove white space:
dest = str.Replace(" ", "").Replace("\t", "").etc.;
Is there a better, more efficient way?... more >>
...107 Pages?
Posted by High_D at 7/15/2004 3:59:38 PM
When I hit print in my program it loads a background image, then loops
through each control placing its text of the background. That is then saved
as a temp image, and the temp image is printed.
The problem is that when I click the print job icon it says there are 107
(or so...it varies) page... more >>
Help: VS2003 BUG? - Boxed value types cannot be casted to custom value types
Posted by Laura T. at 7/15/2004 3:35:39 PM
The following code is driving me so crazy, that I'm thinking it's a
"feature" or a..
....dare I say it... a BUG. I'm using VS 2003.
I've created a new value type (struct) called MyInt. MyInt has
all(?) the conversion routines necessary to convert from Int32 and string.
(see the listing at the... more >>
ArrayList.Item
Posted by Fernando Chilvarguer at 7/15/2004 3:23:23 PM
Hi
On Microsoft documentation (both on my MSDN library localy and online) the
System.Collections.ArrayList class contains a Item property.
When I try to use it I can't see that property available (using object
browser).
Has anything changed?
Online Doc URL:
http://msdn.microsoft.com/lib... more >>
TextBox.Text property empty after hiding and showing the control.
Posted by johns1111 NO[at]SPAM gmx.de at 7/15/2004 2:23:02 PM
I am building a little unique dialog editor and have derived some new
classes like DButton, DLabel and DTextBox. The user adds these
Controls to a panel which is part of a class Document which is not a
control. The controls in the dialog can be edited with a PropertyGrid.
When the user closes th... more >>
Enumwindows
Posted by Wayne at 7/15/2004 2:16:12 PM
I have some code written in delphi that uses EnumWindows, I would like to
begin to translate this code to C#. Is there a built in EnumWindows call in
Csharp? or do I have to import the API and use it that way?
Thanks
Wayne
... more >>
Ars Technical on Mono development
Posted by Baja Jones at 7/15/2004 2:07:45 PM
http://arstechnica.com/etc/linux/index.html
Conclusion
As you can clearly see, Mono brings almost limitless possibilities in
breaking down the barrier between desktops: a commercial software
provider would target Mono and it would "just work" on all platforms
that Mono supported. How i... more >>
Checking For Debug Mode In Code
Posted by Greg Smith at 7/15/2004 1:38:20 PM
Hi, is there a way to tell in code if you are in Debug|Release mode?
I have an error handling routine that sends me a e-mail if an error is
caught. This is great when the users are working with the release version
of the app but not when developing in the IDE. I would rather turn the
e-mail ... more >>
not strictly an asp.net or C# question but?.....
Posted by Ollie at 7/15/2004 1:37:11 PM
The client I am currently working is using a thrid party framework to
generate web content, this framework utilizes asp.net web services I have
written for them, one of these web services streams the contents of file for
download by the end user.
My question is how do I write the following bit... more >>
Why can't I implement an interface property as a static property?
Posted by Erik Harris at 7/15/2004 1:26:01 PM
I apologize if this is a stupid question - I'm relatively new to OOP.
I have a property that must exist in a class in order to be used by another class. The property, however, does not change with each instance (it returns an instance of a delegate that points to the same method no matter what th... more >>
Property Grid
Posted by ananthr NO[at]SPAM gmail.com at 7/15/2004 1:23:42 PM
I would like to know if we can enter properties (name-value pairs)
dynamically into a property grid object using C#. Also is it possible
to have the text in the property grid (within the indiidual sections)
show up in different fonts(bold, italics etc).
Ananth... more >>
Session Problem
Posted by Stephen at 7/15/2004 1:08:55 PM
HI,
I have created an application that has a logout.aspx page. here I clear the
session variables and redirect the user to the login page, but if I dont
close the brower and hit the "back" button. the user is directed to the old
pages.
How do i avoid this?
Please advice,
Stephen
... more >>
ContextMenu - MVP please help
Posted by Valerie Hough at 7/15/2004 12:57:54 PM
Is there any reason why a ContextMenu object cannot be created (and
populated with menu items) in the constructor of the control for which it
will be used?
If not, then why don't my mnemonics show up if I do it this way? (they work
but don't show as umderlined)
If I create the ContextMenu i... more >>
C++ 'friend' keyword
Posted by Ben Galvin at 7/15/2004 12:28:14 PM
Hi,
I'm looking for an equivalent to the C++ 'friend' keyword in C# (for those
who don't know, this lets you give a specific class access to all the
private/protected members of another class).
I'm trying to write an object persistence mechanism where all of the
persistence logic for each c... more >>
App.config
Posted by Christoph Boget at 7/15/2004 12:06:51 PM
How do you utilize the "app.config" file? I am using a
freeware utility that spits one out (along with the code
to access it) but I'm not sure where the file needs to go.
Everything I've tried thus far (adding it to my project,
moving it to the directory where the executable runs, etc)
has fai... more >>
!!!Displaying data in grid!!!
Posted by Greg at 7/15/2004 11:51:37 AM
I need to display data (that is not in a database!) in a
grid format , and I cannot find a grid control to do
this!!! I know of the datagrid, but this has to link to a
dataset and database.
I know of the MS flexigrid (which doesn't appear in my
resources???), but this apparently has to ha... more >>
How to Insert User Control into DataGrid Cell
Posted by tolgademirel NO[at]SPAM hotmail.com at 7/15/2004 11:40:34 AM
How do insert a user control i have created into a datagrid cell.
Basically i am trying to create a column of my user controls. This is
what i have tried so far.
int i = 0;
while (i < dsSignIn1.Tables["Contacts"].Rows.Count)
{
SignatureControl.SignatureControl sig1 =
new SignatureContr... more >>
Taskbar Application Menu
Posted by PL at 7/15/2004 11:38:43 AM
How to insert an item to the Application menu in the Taskbar with C#?
... more >>
FYI: Easy way to validate AD credentials on win2k using c#
Posted by Steffen Balslev at 7/15/2004 11:36:31 AM
I tried to find a way to validate user credentials using C#, searching =
google and lots of other news and kb sites left me without a solution.
You can use a SSPI but it's that easy to implement so I found a simple =
way and here it is:
using System.DirectoryServices;
public bool Win2kCre... more >>
client2screen coordinates
Posted by Piotrek Stachowicz at 7/15/2004 11:11:01 AM
Hi,
Trivial question but strangly enough I can't find it anywhere: how can I
obtain screen coordinates having client ones (e.g.. when I handle mouseMove
event for a control, I'm able to access current coordinates but I'd like
them to be expressed in terms of screen not a control).
Thanks
... more >>
Number of threads in a .Net Application
Posted by Vijaye Raji at 7/15/2004 10:53:28 AM
I create a test app in C# as below:
using System
namespace Test1
{
class Test2
{
static void Main()
{
Console.ReadLine();
}
}
}
When I compile and run this app, I see this "tiny" app, running 4 threads.
Accounting one for the garbage ... more >>
online contest
Posted by David at 7/15/2004 10:49:58 AM
Hello!
can anybody tell me where can I find good online programmers contests?
... more >>
Can't StretchBlt an image loaded from my hard drive
Posted by D. Yates at 7/15/2004 10:19:21 AM
I can't seem to figure out why I can't StretchBlt an image that I have
loaded from my hard drive. There are two button events below. The first
button event, btnFormStretch_Click, works fine, but the second one,
btnStretch_Click, does not. The only difference seems to be the way that I
get th... more >>
DLL Loading......
Posted by Organza at 7/15/2004 10:06:17 AM
Good morning.
Im building a little utility that load dll and show me all his properties
and methods.
somthing like the object browser.
but i have a big problem with it.
when im loading a .net dll everything is fine , but when im loading vb6 dll
, the dll can not be loaded.
anyone knows how to... more >>
DirectDraw/ DirectX
Posted by Tim Bücker at 7/15/2004 10:02:23 AM
Hello.
What is the best to use? DirectDraw from DirectX 7.0 or Direct3D from
DirectX 8.0 when the only thing one wants to do is to draw bitmaps fast on
the screen in fullscreen mode. I think DirectX 9.0 is not a topic in C#
right now when one wants to have fast access to DirectX as the type
l... more >>
parent window, child window
Posted by Piotrek Stachowicz at 7/15/2004 9:52:22 AM
Hi,
I've got two windows: main one (visible in task bar) and, the other one
which is created by main (not visible in task bar). Now, how can I make the
"child" window obey his parent, i.e. when main window is brought to front,
child should also be brought to front, etc.
Thx,
Piotrek Stac... more >>
File to MemoryStream
Posted by Bas Hamer at 7/15/2004 9:48:01 AM
ok, I'm trying to make my aplication faster, and the main time sink seems to be in the code that is reading the file and putting it into a MemorySream.
what would be the fastest way to read a file into a MemoryStream, when the file read is done over a network?... more >>
AppDomain Probing issue
Posted by A. Elamiri at 7/15/2004 9:47:56 AM
Hello,
I created a small app which acts as a services manager. I basically drop a
DLL in a Services folder and set the frequency through the application for
how often do I want the code in the assembly to run (scheduler).
I created a seperate AppDomain here is the code:
....
AppDomainSetup... more >>
Figure out whether DirectX is installed or not
Posted by esch NO[at]SPAM syssoft.uni-trier.de at 7/15/2004 9:33:56 AM
Hallo,
i am writing a C# application using dotnet.
My problem is: The application has to figure out whether DirectX is
installed or not.
Can anybody tell me how to do this?
Thanks... more >>
MSMQ trigger
Posted by tommy at 7/15/2004 8:32:28 AM
Apart from designing a timer to examine the queue, I know
that the new version of MSMQ over XP/2003 platform
provides a way called 'MSMQ trigger', anyone had some
experience of using it from programmer's point of view?
thanks in advance... more >>
drap and drop in a datagrid
Posted by Torre Quinn at 7/15/2004 8:00:08 AM
Does anyone have any good sites or resources dealing with adding drag and
drop functionality to a set of controls on a form? I'd like to try to get
several examples of varied applications of drag and drop being used on
different types of controls.
My current task is this. I have a treeview con... more >>
Advice needed - SQL queries in C#
Posted by Kavvy at 7/15/2004 6:17:44 AM
After messing about I've made some headway towards getting a DataSet filled
with data from an SQL database, unfortunately I've been advised that this
isn't the way forward due to the overhead involved of filling the DataSet
with every page access.
So what method is prefereable to use?
Am I ... more >>
Performance problems
Posted by James Dean at 7/15/2004 5:11:06 AM
I am wondering is there an easier way to save memory than splitting a
whole image into blocks. If the block is white then it takes up no
memory basically at all and so storing image data in an array of blocks
is efficient. But i am thinking with C# there must be a less complicated
way.....At the... more >>
Scope problem
Posted by Gudni G. Sigurdsson at 7/15/2004 2:02:53 AM
I am new to C# and use MS Visual C# .NET.
I have defined a class, Config. I create one instance of this class at
the begin of my program and would like this instance to have a global
scope within my program (it contains configuration data to be used in
various other classes). Where should I pu... more >>
CheckedListBox - Get the value of checked items
Posted by Ram at 7/15/2004 1:29:01 AM
Dear Helpers,
I assigened values to checkedlistbox control in the following way
cList.DataSource=oDs.Tables[bTableNo].DefaultView;
cList.DisplayMember=oDs.Tables[bTableNo].Columns[1].ToString();
cList.ValueMember=oDs.Tables[bTableNo].Columns[0].ToString();
where oDs is DataSet
the purp... more >>
Programmatically reading of Password Policy info
Posted by Studio P.M. at 7/15/2004 1:23:03 AM
Assuming that I need to know programmatically (VS C#) an User's, or Domain's, Password Policy parameters:
1) MinPasswordLength
2) PasswordHistoryLength
3) PasswordAttribute - COMPLEX
so far I’ve found a way to get the parameters 1) and 2), but not 3).
Here and there, though, parameter 3) is m... more >>
Why do plain .NET console or windows applications have a minumum of 3 threads???
Posted by anyusernameisgood NO[at]SPAM yahoo.com at 7/15/2004 12:51:16 AM
Hello,
does anyone know why standard .NET console or windows applications
that do nothing start out with a minimum of 3 threads??? Aren't 3
threads far to many for an application that does nothing??? What are
they for??? Any article around that explains their purpose???
Bob Rock... more >>
Common string class.
Posted by cooldesign NO[at]SPAM yahoo.com at 7/15/2004 12:21:43 AM
Okay, I am sure this question has been asked here before, but to all
of the Object Oriented Guru's, please shed some light on a simple
question. What is the best practice for creating a common text
object? For example, I have a table named "User" that has a column
named FIRST_NAME; I would lik... more >>
Send key code to the control
Posted by Systemspecialist at 7/15/2004 12:19:02 AM
Hi All,
I need to sent key code (for example, like enter) to the textbox control. I need to simulate press key. i think , solution can be by firing message, but i don't know how....
Thanks a lot.... more >>
|