all groups > c# > january 2005 > threads for friday january 28
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
Regular Expression Question
Posted by Amy L. at 1/28/2005 11:57:57 PM
I was looking at some Regular Expressions and I noticed some of them have
the following character in them "/i". For example:
\b(?:college|university)\s+diplomas/i
In the .Net documents I can't seem to find any reference to /i - can someone
tell me exactly what /i does and if it is supported i... more >>
System.Collections.Hashtable.Add question
Posted by nzanella NO[at]SPAM gmail.com at 1/28/2005 11:46:44 PM
Hello,
I cannot seem to find this in the MSDN documentation: what I would
like to ask is whether the System.Collections.Hashtable.Add should
throw an exception or replace the old value when an element with
the same key value as an existing one is added. For instance, is
the following code l... more >>
stack to array
Posted by benben at 1/28/2005 9:27:20 PM
How can I convert a stack to array?
I have a Stack of System.Drawing.Point's and I would like to invoke
Graphics.DrawCurve, which takes a Point[] array as parameter.
I tried Stack.ToArray but it only returns an object[].
I tried to do element copy, but I cannot foresee the size of the stac... more >>
C# and array in a dll
Posted by Mircea Dragan at 1/28/2005 6:51:23 PM
Hi,
I have a problem. Here is the description:
I have a dll which I call from a C# program. The C# program passes an
array
of doubles to the dll function. Everything works fine as long as I don't
change
any array element in the dll function.
The problem comes into picture when I want to... more >>
protect overflow of sql data type decimal(9,3)
Posted by Zeng at 1/28/2005 6:46:43 PM
Hello,
I have many fields in my SQL database that are of type decimal(9,3). How do
I detect a decimal value (type decimal in C#) will overflow the db column of
sql type decimal (9,3)? Is there a way to figure out the min/max constants
of decimal(9,3) to compare against in C# to make sure th... more >>
Is this a true statement?
Posted by Chris at 1/28/2005 5:54:09 PM
If I use Perfmon to look at the number of GC Handles for my application, and
it stays about the same over several hours, I don't have an issue with
freeing up unmanaged resources in my app. Is that true?
I have an application that is using up memory. Using Perfmon, # Bytes in
all heaps stays... more >>
Considerations for packaging MSDE app
Posted by Paul Aspinall at 1/28/2005 5:18:00 PM
Hi
I have a C# Winform app which runs using SQL Server.
I want to package up the app, so that it deploys with MSDE.
Can anyone offer any pointers or references to help??
Thanks
... more >>
Session_End called at wrong time
Posted by akanihuu NO[at]SPAM yahoo.com at 1/28/2005 4:04:57 PM
I am building a ASP.Net web application using C# and added code to the
Session_End function in the Global.asax.cs to delete user files when
the session times out in ten minutes. I have a page that displays the
accounts in a datagrid with two columns. One column contains the
account name and th... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
occasional bug
Posted by nicksjacobson NO[at]SPAM yahoo.com at 1/28/2005 3:35:15 PM
Try getting this bug to occur!
Run the following code in debug mode (i.e. hit F5). Then literally
just keep moving the mouse around in the main window form area (the big
gray box).
IT TAKES OVER A MINUTE, even! But *eventually*, a window pops up with
the error message:
"An unhandled ex... more >>
Winzip equivalent class?
Posted by Derrick at 1/28/2005 3:15:05 PM
Is there any core assembly class that can compress/decompress files similar
to winzip? I found how to create custom actions. What I would like to do
is write something that decompresses winzip files.
I tried adding the files to the deployment project, but they are so large
that compiling, an... more >>
Convert "Int32" to type Int32
Posted by Joe at 1/28/2005 2:57:39 PM
I have data types stored in a field in a database and would like to use
something similar to GetType when reading these values.
string datatype = dr["DataTypeColumn"]
// something like this would be nice.
ConvertStringToCorrectDataType(datatype);
I guess I could just list all the string v... more >>
How to programmatically set the "compress" attribute of a folder with C#
Posted by delphiconsultingguy NO[at]SPAM yahoo.com at 1/28/2005 2:43:41 PM
Anybody?
thanks,
Sean
... more >>
Setup Project, launching a ReleaseNotes PDF after installation?
Posted by Derrick at 1/28/2005 2:25:55 PM
What's the best way to go about doing this? I see the "Readme" dialog you
can add, but that seems like only a small text box to put some .rtf text in.
I would like to pop up a somewhat lengthy .pdf.
Thanks in advance!
... more >>
VS.NET designer
Posted by Gawel at 1/28/2005 12:17:01 PM
Hajo,
VS.NET designer generates method for event using following pattern:
controlName_EvenName. Now If you have variable name written lower case
then your method will start its name lower case too.
And in .NET method names are upper case.
What is more you get this ugly underscore in the midd... more >>
screen flickering
Posted by benben at 1/28/2005 12:13:54 PM
I created a form and overrided OnPaint, OnClick and OnResize methods. My
OnPaint calls base.OnPaint then repaints the whole screen.
The screen flickers a lot! It didn't happen when the app was written in C++.
What is the general strategy to reduce screen flickering with C# Forms?
Perhaps sav... more >>
I'm having problems with the DataGrid
Posted by rkuleta NO[at]SPAM hotmail-dot-com.no-spam.invalid at 1/28/2005 11:57:06 AM
I'm working on a program that will display a modal form containing 2
datagrids (but might as well focus on just one for now). These
datagrids display read-only information that is stored in arrays.
I'm completely new to datagrids, so I don't know what I am doing wrong
as I'm getting runtime er... more >>
dataFrid Exception Error
Posted by Paulb1us NO[at]SPAM newsgroup.nospam at 1/28/2005 11:57:03 AM
I can't access the rows of my dataGrid after I call a dg.Delete() on some of
the rows.
I populate a datagrid from a datatable like this
dataGrid1.DataSource = dt;
Then I loop through each datarow deleting some of the rows like this:
dr.Delete();
I then refresh the grid to get the re... more >>
Custom control
Posted by seshu at 1/28/2005 11:44:41 AM
Hi,
Can any one help me in creating the custom control in C-Sharp .Net.
I want to create a transparent resizable rectangle which when placed on any
window should be able to see the contents of the window.
Thanks in advance
... more >>
bool int
Posted by Elementary Penguin at 1/28/2005 11:16:58 AM
Shouldn't I be able to do this:
if(1) ++count;
it seems really a pain to have to do
if(1==1) ++count;
--
Texeme
http://texeme.com... more >>
How do I get the text color for the taskbar clock?
Posted by Quoner at 1/28/2005 11:16:19 AM
With XP's default theme (Windows XP style / Default (blue) on the Display
Properties/Appearance tab), the taskbar clock foreground color is white.
Change that to Windows XP style / Olive Green, and that taskbar clock
foreground changes to black.
So my question is, how do I get that color pr... more >>
Smart Client Authentication
Posted by Dan at 1/28/2005 10:59:04 AM
Good Day All,
I am writing a Smart Client application that will be used both internally
and externally within our organiztion. The user will need to log on to the
application. Since I can't store the external user's information within our
Active Directory my plan is to store them in SQL Ser... more >>
Thread Completion question
Posted by Frank Rizzo at 1/28/2005 10:27:43 AM
I kick off a bunch of threads inside the ThreadPool. How do I know when
the thread is finished running?
Thanks.... more >>
C# WinForm....changing font colors for multi line rich textbox
Posted by Mr.Baha at 1/28/2005 10:26:43 AM
Hello,
I have a situation where I am appending text to a multi-line
(rich)textbox in a C# form. Now depending on which event does the
appendtext, i want to distinguish the lines in the textbox by having
them written in different font colors. So my multi-line textbox will
contain lines of variou... more >>
HOW TO: Win32 API - Get all windows, draw a icon and bring the windows to the systray
Posted by Christoph Engelhardt at 1/28/2005 10:00:27 AM
Hi newsgroup,
What I intend to do:
Write a small programm, that will add a new Button to every Window right
beside the Buttons for minimizing, maximizing and closing the window in
the window's titlebar. When this button is clicked the window itself
should be minimized to the systray
On m... more >>
server gs vs workstation gs
Posted by Zeng at 1/28/2005 9:43:36 AM
I just realized that there are 2 modes for garbage collection modes: server
gs and workstation gs. Would someone know how I can go about changing the
mode for my web application written in C#? I want to make sure it's using
server gs mode. Thank you for any comment or advice.
-zeng
... more >>
Bug with String Replace with /"/" or double quotes
Posted by torontobikerboy NO[at]SPAM hotmail.com at 1/28/2005 9:03:54 AM
This is an obvious bug in the String.Replace function:
//load a XML string into a document
XmlDocument doc = new XmlDocument();
doc.LoadXml("<test id='' />");
//Obtain the string again...Converts my '' to ""...strange, but ok.
String strXML = doc.OuterXml;
//trying to convert back the si... more >>
Windows update
Posted by freddy at 1/28/2005 8:41:08 AM
I would like to scan the network to make sure every machine has all the
hotfixes and patchs - Is this possible and can I extend it to check for other
kinds of software like gator and spyware. Once it scans the network I would
like to save info mation to an access db like :machine name missing ... more >>
Dynamically build an MPEG,AVI
Posted by DaveF at 1/28/2005 8:23:25 AM
I need to put it in a specific place. Here is the old code
switch(CAMERA_TYPE_ID)
{
case "0":
case "7": // this is an image
Response.Write("<img id='RTC' SRC=" & url & ">");
Response.Write("<script>");
Response.Write("window.onload=starttime");
Response.Write("</script>");
... more >>
Convert .rtf or .doc or .pdf or .htm to plain txt
Posted by Dave at 1/28/2005 8:14:26 AM
Greetings,
Is anybody aware of any code that will allow me to read .rtf or .doc or .pdf
or .htm as plain text (so I can do a streamreader off them). Thanks,
-Dave
... more >>
Deployment question regarding base class
Posted by Eric at 1/28/2005 7:45:54 AM
I've got a base class in an assembly, then I have a lot of other
assemblies that inherit from it.
Now I modified some of the private methods in the base class, and I want
to deploy the new base class.
Do I have to recompile all of the child class assemblies that inherit
from it, or will ... more >>
Namespaces and inheritance
Posted by Karen at 1/28/2005 7:41:01 AM
Hi
I was just wondering - when you you use the using feature in C# to
reference a namespace in your project - does it enable you to write
classes that inherit from classes in the referenced namespace?
Thanks.
... more >>
Conversion Error
Posted by kscdavefl at 1/28/2005 6:41:02 AM
When I run the following code:
{
if (e.Item.ItemType == System.Web.UI.WebControls.ListItemType.Item ||
(e.Item.ItemType ==
System.Web.UI.WebControls.ListItemType.AlternatingItem))
{
int i = e.Item.Cells[6];
string s = i.ToString();
if (s == "0")
{
e.Item.C... more >>
Array of pointer in C#
Posted by Kathy Tran at 1/28/2005 6:37:15 AM
Hi,
Could you please help me how to declare an araay of pointer in C#.
In my program I declared an structure
public struct SEventQ
{
public uint uiUserData;
public uint uiEvent;
public uint uiParam0;
public uint uiParam1;
}
Now I want to delare an array of pointer look likes... more >>
URL encode a text in XML
Posted by QQ at 1/28/2005 6:22:44 AM
Basically i have a database record field that stores long string.
<Field Name = "Data", value="xxx"/Field>
xxx could be very long. Is there anyway that I can url encode it or
reference the text?
... more >>
Draw directly to title bar on a window?
Posted by redneon at 1/28/2005 6:07:03 AM
Is it possible to draw directly to the title bar on a window? I'm wanting to
add another button to the window to pin it on top.
Any ideas?
Darrell
... more >>
index out of range error
Posted by kscdavefl at 1/28/2005 5:45:01 AM
When I run the following code:
private void applicationPermissionGrid_ItemDataBound(object sender,
System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if (e.Item.ItemType == System.Web.UI.WebControls.ListItemType.Item ||
(e.Item.ItemType ==
System.Web.UI.WebControls.ListItem... more >>
Little problem with ListBox
Posted by Josema at 1/28/2005 5:39:02 AM
Hi,
I have a class called Person that have this properties:
- ID
- Name
- Height
Another called Persons that derived from Collection base
And a listbox...
I use DataTextField and DataValueField to assign these values to the
ListBox, but i will like to Include the Height too using... more >>
Inherits
Posted by jonathan shepherd at 1/28/2005 3:47:03 AM
Using visual studio.net I have made a set of aspx web forms. They work on the
iis webserver but when moved to the web I get a Inherits error. can some one
help out.
here is the code at the top of the first webform
<%@ Page language="c#" Codebehind="1.aspx.cs" AutoEventWireup="false"
Inheri... more >>
Display Control Property Page
Posted by Chris Richards at 1/28/2005 3:38:34 AM
I am working with the Windows Media Encoder SDK, and at one point in the
code, I have a need to display the Property Page of a Device plugin. The
only code I have for doing this is written in C++ and looks like this:
// Retrieve the plug-in object.
if ( SUCCEEDED( hr ) )
{
h... more >>
API for reading DBX files
Posted by Paul Fi at 1/28/2005 3:38:14 AM
does .net have any api for reading outlook express files (dbx files)?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Serialization of the class derived from CollectionBase
Posted by Just D. at 1/28/2005 1:47:34 AM
All,
1. Did anybody write Serialization/Deserialization of some custom class
derived
from the CollectionBase class? The custom class is like a container of many
different simple classes, each one of them is serializable, these methods
have been added and work properly.
As an additional he... more >>
Qualified type names and GetType(String)
Posted by KK at 1/28/2005 1:15:16 AM
Two quick questions:
1.) Given only a string containing fully qualified type name (e.g.
"System.Drawing.Rectangle"), is there a consistent way to get the Type
object that the string corresponds to that will work with most types?
2.) If no to question 1, then given the string containing the... more >>
Cluster API
Posted by Peter Ericsson at 1/28/2005 12:55:59 AM
Does anyone know if Microsoft plans to implement an C#
(.net) API for MS Cluster like the one in C++?
Or has someone else written a C# wrapper for the C++ API?... more >>
Help on Regular Expression
Posted by Hayato Iriumi at 1/28/2005 12:26:54 AM
Hi,
I didn't know which newsgroup to post, so I'm posting here hoping to get
a help on Regular Expression.
Here is what I want to do.
I want to find Matches using Regex for the following cases. String look like
the following.
MyObject.ExecuteWhatever(parama, paramB, paramC...)
Or
... more >>
|