all groups > c# > july 2004 > threads for tuesday july 6
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
Regex Help
Posted by choyk1 at 7/6/2004 11:53:01 PM
I want to match some elements with regular expression
-------------------------------------------------------------------------------
<word> <type.> <meaning> : <synonyms>
e.g. preeminent adj. having paramount rank, dignity, or importance : OUTSTANDING
--------------------------------------... more >>
How to: Move a button like a scrollbar slider?
Posted by gmtongar at 7/6/2004 11:29:01 PM
Hi,
I've made a custom scrollbar which consists of three buttons and a panel. My problem is: How do I move it like a scrollbar slider? I've tried DoDragDrop, but it does not appear to be the same, all though I can move the button. I have also used the mouseMove event, so I can move the button, but ... more >>
Listening on port
Posted by Beholder at 7/6/2004 10:55:11 PM
Hello,
I want to write a spam filter, and for that I have to
listen on the incoming mail port in order to catch the
arriving mail messages (from any server) and filter them.
How can I listen on a port and catch any transportation
going through it?
Thanks.... more >>
XML Family - sounds confusing with so many different technologies.
Posted by Chua Wen Ching at 7/6/2004 9:15:01 PM
Hi everyone,
I am not that good in xml terms and coding in c#. To be honest.
ok, just imagine, i had this xml file.
<xml>
<language>C#</language>
<comments>cool language</comments>
<desc />
<author />
<company />
<codes />
</language>VB</language>
<comments>Never used before</commen... more >>
context free gramma
Posted by benben at 7/6/2004 9:06:15 PM
Where I can obtain a complete C# gramma? As well as the language
specification?
... more >>
C# events and threads
Posted by ananthr NO[at]SPAM gmail.com at 7/6/2004 8:47:44 PM
I had a question regarding C# events. When an event is raised are the
event handlers invoked in separate threads or are they sequentially
invoked?... more >>
Drag and Drop
Posted by John Jenkins at 7/6/2004 8:29:11 PM
Hi,
I need to develop an app that can drag an xml file from my desktop and
drop it into a textbox, where it iwll be displayed.
1. I though this should be straightforward but I cannot get it to work. I
tried http://www.c-sharpcorner.com/Code/2002/Nov/DragDrop.asp
but it did not work. Ca... more >>
Stable sort?
Posted by cody at 7/6/2004 7:14:08 PM
I need a sort method for stable sorting, that is, if two values have the
same value they won't be swapped. Will there be such a thing in whidbey?
--
cody
[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
columns in a DataSet
Posted by Alberto at 7/6/2004 6:49:58 PM
How can I set the width of the columns in a DataSet?
Thank you.
... more >>
Shell32 FileOperation and Open Resources
Posted by Brian Reed at 7/6/2004 6:48:01 PM
I am trying to use Shell32 objects to move files to the recycling bin upon user command. The problem is that I have the resource open prior to the user making the decision to delete the resource (image files). I close them and call Dispose on them, but I get an 0x402 response and the image is not ... more >>
WMI and ACLs
Posted by Telmo Sampaio at 7/6/2004 6:07:02 PM
Hi all,
I have not dealt a lot with WMI in .NET yet. And today, one of my students
asked me what classes from System.Management to use to change the entries in
a NTFS file ACL. I will do some research tonight, but if anyone has the
answer, please let me know.
Thanks,
Telmo Sampaio
... more >>
DateTime, formatting, quarters and weeks??
Posted by Michael Howes at 7/6/2004 5:49:40 PM
If I have two integers, a week and year how can I create a DateTime object
that is set to the first day of the week of that week/year?
If I have two integers, a quarter and a year, how can I create a DateTime
object that is any date that falls in that quarter?
Is there a DateTime format stri... more >>
how to find out the class information
Posted by Daniel at 7/6/2004 5:38:11 PM
Hi,
I want to write a code to list all the members of one class, but i don't
know how to do that, any advice?
Thanks in advance.... more >>
.Net and Powerpoint
Posted by Sascha Kerschhofer at 7/6/2004 5:37:51 PM
Hi,
1) How can I extract single slides from a PowerPoint file? (as graphic or
even as Animation) from C#?
2) How can I read the properties of the single elements within a Slide of a
PowerPoint file?
3) How can I embed a PPT filein a .Net application an control the slideshow
with a forward an... more >>
graphics screen
Posted by Jay at 7/6/2004 5:12:00 PM
Is there a something similar to initgraph in C#, or do I have to download
the directx library? All I want to do is bring up a graphics screen and be
able to recognize the mouse and color some pixels.
Thank You!
... more >>
Remove A User From A Group
Posted by Ram at 7/6/2004 4:54:00 PM
Hey,
I'v got a group in ActiveDirectory that has about 2000 members.
I want to remove a certain user from that group.
When I tried to remove it using the group's DirectoryEntry:
usersGroup.Children.Remove(userEntry) I get the following exception:
"Cannot Remove The Specified Item Because It Was... more >>
Slow Fill method of DataAdapter class
Posted by Radovan Radic at 7/6/2004 4:51:22 PM
Hello
I tried to find answer on google but i didnt find it.
Using MySQL 4, with MyODBC driver
This code:
string sql = "SELECT * FROM Poruke";
OdbcDataAdapter da = new OdbcDataAdapter();
da.SelectCommand = new OdbcCommand(sql, conn);
DataSet ds = new DataSet();
da.Fill(ds,"Poruke");
ta... more >>
Chart of C# to VB.NET equivelent syntax
Posted by Earl Teigrob at 7/6/2004 4:42:39 PM
After starting programming with VB.NET, I switched to programming in C# a
few years ago. I just landed a new job where I will be coding in exclusively
VB.NET. Does anyone know of a C# to VB.NET syntax equivalency chart? This
would definitely make the transition a easier!
Thanks
Earl
... more >>
Datagrids???
Posted by Darryn Ross at 7/6/2004 4:39:41 PM
Hi...
When displaying my datagrid the fields are not defaulting to their set
width. i add a custom table style to the grid then populate it with the
database records.. but i can't seem to work out why the fields are not at
their set width
Regards
Darryn
... more >>
Slow Debug of C++ code
Posted by Eric Robert at 7/6/2004 4:24:57 PM
Hi,
I am writing a C# application that uses a C++ unmanaged DLL. When I turn the
unmanaged debug option ON, the application is much slower to start and the
unmanaged code is very slow to debug.
Is it normal?
Eric Robert
... more >>
help with example "paint on form by mouse"
Posted by Serge Klokov at 7/6/2004 4:24:44 PM
Hi!
1. Please, help with example "paint on form by mouse"
2. Below is my example, but it clear the line after each Refresh()... how to
fix?
3. How to draw the line in Mouse_Move event?
private Boolean isCanPaint = false;
private MouseEventArgs MouseEvent1;
private MouseEventArgs M... more >>
multithread c# socket server
Posted by zhebincong at 7/6/2004 3:01:45 PM
Hello:
I write a multithread c# socket server,it is a winform application,there is
a richtextbox control and button,when the button is click,the server begin
to listen the socket port,waiting for a incoming connection,the relative
code snipprt as following::
private IPAddress my... more >>
Insert into Access with C#
Posted by Abareblue at 7/6/2004 2:44:08 PM
I have no clue on how to insert a record into access. here is the whole
thing
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace Project_Two
{
/// <summary>
/// Summary des... more >>
Printer language & sending commands
Posted by Vlki at 7/6/2004 2:38:31 PM
Hello,
I can't find a way to send printer specific language codes to printer.
Part of my code :
String sString = "B50,0,0,3,1,2,50,B," + "12345678901234567890";
Font fFont = new Font("Arial", 16);
SolidBrush bBrush = new SolidBrush(Color.Black);
PointF pPoint = new PointF(150.0F, 150.0F);
... more >>
byte[] to struct
Posted by Ben Terry at 7/6/2004 2:22:24 PM
What's the most efficient way to transfer data from a byte[] to a struct?
The struct is rather complex--contains other structs as well as byte[]
members. I've tried to use Marshal.Copy and an IntPtr to my struct address
but I get the following error, perhaps due to the byte[] members of my
stru... more >>
numbers to words
Posted by Frazer at 7/6/2004 2:11:03 PM
hi,
I had to write a program in my exam to simulate a
cheque writing utility, that would take numbers as input and give me words
as output.
But i just got 9/10 . my lecturer said i could have used a design pattern.
and made it more efficient.
eg
956.23 should be nine hundred and fifty... more >>
The third time to ask in here ... Mobile Web form
Posted by Amal Ismail at 7/6/2004 2:05:37 PM
hello
this is the third time i inquire aboutthe same
thing and none answer me !! .. hope to find help here
i'm using ASP.NET Mobile web application using c#
And i'm facing a problem , i use SQL server Database
I've table inside it a column of type smalldatetime &
i... more >>
Command line in C#
Posted by Lubo¹ ©lapák at 7/6/2004 2:04:08 PM
Hi,
i have a Win32 application in CSharp and i have to run command "net send
....." (these is a command for windows command-line) from this application,
but i don't know how can i run this command. How class can i use? Or how
command in CSharp exists for this issues?
Thanks a lot
Lubos
... more >>
{simple} Exception handling & Object references
Posted by War Eagle at 7/6/2004 1:29:01 PM
I have this line of code I want to know where to put it in my code (basically so any private function using clientSocket.Send or clientSocket.Receive will accept it):
Socket clientSocket = new Socket(AddressFamily.InterNetwork,SocketType.Stream, ProtocolType.Tcp );
so that this line of code (... more >>
Unexpected poor performance
Posted by melvers at 7/6/2004 1:16:01 PM
I have a C# application that compiles other C# functions on-the-fly depending on user selections. There are several C# functions that can be selected. There is one that takes considerably longer than the rest. This function seems to have an unusual performance characteristic. If it is the first ... more >>
Global Variable
Posted by freddy at 7/6/2004 1:12:02 PM
I know in vb.net you can declare a global variable, but how do you declare one in c#. I want to make a connection class with the path and have it accessed by anther class or method.
Thank you... more >>
Serialization idea / rant
Posted by John Wood at 7/6/2004 12:22:32 PM
I'm just considering embarking on writing a class that does a better job
than the Serialize attribute. The serialize attribute is no good because it
sucks at even the most basic of versioning. So the idea is to write
something that uses reflection and a simple persistable named/value pairs
objec... more >>
trouble while filling an dropDownListBox
Posted by Alexandre Jaquet at 7/6/2004 12:06:21 PM
hi withe the following code I got some strange result
when the page load it's only fill one element
could anyone tell me why thx
private void Page_Load(object sender, System.EventArgs e)
{
if (!Page.IsPostBack)
{
this.sqlConnection1 = new SqlConnection ("server=HEWLETT-
IPODDL1\\SQLSERVE... more >>
decimal - nulls
Posted by Mark at 7/6/2004 11:49:48 AM
We have a SQL Server table with a decimal column that is not required.
We're building a .NET application for data entry. If the value is optional,
but a decimal is strongly typed in C# and cannot be assigned a value of
null, what are the best practices for dealing with passing this potentially
... more >>
DLL-P/Invoke to C++ class
Posted by jholtz NO[at]SPAM accuratetechnologies.com at 7/6/2004 11:29:44 AM
I've read the posts about instantiating a class from a dll in C# and
then even accessing the class method via the
CallingConvention=CallingConvention.ThisCall. Now I have a Class
defined in the header dll which has a pure virtual method. Inside the
dll a specific class is created which then im... more >>
Windows 2003 Hosting
Posted by Mike at 7/6/2004 10:36:01 AM
Excellent prices, terrific support (phone support included)
www.75host.com... more >>
Trying to Understanding Namespaces
Posted by Rob G at 7/6/2004 10:19:00 AM
Hi,
I am having a problem finding a good explanation of exactly how Namespace
works. I am not clear on how it uses directories (if it does at all),
contains classes, after I complile a cs file how does a Namespace come into
play, or do I even need to have one?
Any info would be greatly appr... more >>
ListView GetItemData and SetItemData
Posted by PL at 7/6/2004 9:43:36 AM
Hi all,
What is the equivalent to C++ ListView methods GetItemData and SetItemData
in the C# ListView component?
Regards,
PL
... more >>
DllImport and Data Marshalling
Posted by dominicjoseph NO[at]SPAM rediffmail.com at 7/6/2004 9:32:07 AM
Hi,
I had a question on DllImport. On importing a function from a VC++ dll
using DllImport (to a C# program), the function argument data types
and the return types may be of a type that is not supported by C#. In
this case if I am not mistaken the system performs default marshalling
- matchin... more >>
Retrieving hidden fields (key) when updating datagrid
Posted by KavvY at 7/6/2004 8:59:56 AM
Hello,
I have managed to get to a point where clicking on the update button
retrieves the fields which are updated ok, but the field that contains the
key and is hidden is proving to be difficult.
// The following line finds nothing
String strKey = e.Item.Cells[0].Text;
// these lines a... more >>
How do I highlight a row in a datagrid?
Posted by mike at 7/6/2004 8:32:13 AM
I'm trying to highlight a specific row in a datagrid who's contition matches
..text = "Dawn"
i've been playing with the code below without much luck, is there a foreach
loop i could do, like
(
foreach(datarows in datagrid)
check if the first cell in the row contains Dawn
if so highlight the... more >>
Custom Object Databinding Question
Posted by Frank Wisniewski at 7/6/2004 8:22:37 AM
I have the following persudo code:
//My Form Class
class Form1 {
//Local Variable for my custom object
private MyCustomObject1
//Constructor for Form Class
public Constructor{
MyCustomObject1 = new MyCustomObject1();
MyCustomObject1.MyProp = "Test";
textbox.dat... more >>
Visualizzare HTML in una Windows Form
Posted by massignan NO[at]SPAM email.it at 7/6/2004 8:06:33 AM
Salve a tutti , avrei bisogno di visualizzare una email in HTML in
una windows form . C'è qualche controllo che mi permette di farlo ?
Grazie e Buon lavoro... more >>
? How do I add a color palette to the font dialog
Posted by Kathy at 7/6/2004 7:43:20 AM
How do I add a color palette to the font dialog? I want
the font dialog to look like the standard Microsoft office
Font Dialog but am unable to find any information on how
to do this. ... more >>
DataGrid Problem
Posted by Joe Bloggs at 7/6/2004 6:45:09 AM
I am trying display the contents of a table in a web page, select
certain rows from that table and then display the fields that I have
selected (now table columns) as text in a Label object. Amazingly I have
managed to display the table - no problem, I can select rows - no
problem, BUT I can't w... more >>
Image List
Posted by curtiswellborn NO[at]SPAM yahoo.com at 7/6/2004 6:38:14 AM
Hey,
I was wondering if there is any way in the designer to put my
Icons(which i have 200 in three different folders) into an ImageList
with out doing it one by one in the add image. This will take me
forever and I dont know the capacity of the imageList so it could also
be a waste of time. If ... more >>
EventArgs raise a NullReferenceException
Posted by ZAky at 7/6/2004 6:15:01 AM
Why do I get a System.NullReferenceException for this script?
I added the following script to a simple form with a button.
<Script>
public event EventHandler DoThis;
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
private void button1_Click(object sender, System.EventArg... more >>
Hashtable fails miserably.. i not sure why this cannot work???
Posted by Chua Wen Ching at 7/6/2004 4:52:02 AM
Hi i very wonder, why i can't get the right output.
I search for -100, and it extracts -99 for me. I place any number, but i stil get -99. What is the problem???
Hashtable table = new Hashtable();
table.Add(-100, "value1");
table.Add(-99, "value2");
table.Add(-98, "value3");
... more >>
Comparing collections - speed + flexibility!
Posted by Chua Wen Ching at 7/6/2004 4:45:01 AM
Hi there,
1)
I am looking for the best collections techniques to be used in my program.
Is hashtable or arraylist or any .net collection, which is the fastest when adding, getting out data???
2)
And also, just curious, Hashtable.Add (key, value), can i somehow make the hashtable to have t... more >>
Date
Posted by Amal Ismail at 7/6/2004 4:26:20 AM
hello
i'm inquiring about something .. hope to find help here
i'm using ASP.NET Mobile web application using c#
And i'm facing a problem , i use SQL server Database
I've table inside it a column of type smalldatetime &
i can't change its format , and in the mobile webform
... more >>
app.config setting for Component object in c#
Posted by Maverick at 7/6/2004 3:05:02 AM
In normal application the set and get of appSettings are simply as following
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="Log" value="1" />
</appSettings>
</configuration>
string log = System.Configuration.ConfigurationSettings.AppSettings["Log"];
... more >>
XmlTextReader
Posted by mike parr at 7/6/2004 2:44:53 AM
I need to be able to use an XmlTextReader to read a string object which
is made up of XML. Does anybody know how to do this?
Any help would be really appreciated.
Cheers,
Mike
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
page controls
Posted by Das at 7/6/2004 2:33:02 AM
Hi All,
Where does asp.net stores the objects declared in the page.
I have a method where I want to loop through all the controls(textbox, HtmlInputText) within the page.
I want to in which collection these (textbox,HtmlInputText) are stored
thanks in advance..
das... more >>
Regular expressions performance problem
Posted by James Dean at 7/6/2004 2:05:12 AM
I wanted to use regular expressions but unfortunetely it is too
slow.....Should they be so slow or am i doing something wrong. I am
reading in bytes from a file then converting them to char then making a
string out of each of the individual bytes. I check if its in the
correct format...and take ... more >>
Efficiently reading bytes from a FileStream
Posted by James Dean at 7/6/2004 2:05:07 AM
I create a new filestream and then i move i use the readbyte function
and the position function when required. These seem to be cripplingly
slow for some reason. This readbyte maybe is the problem. Do i need to
use a binaryReader with this in order for it to be faster?. I am
manipulating a compr... more >>
Convert from XSD types to/from .NET types
Posted by TT (Tom Tempelaere) at 7/6/2004 1:51:02 AM
Hi there,
Following link shows the mapping between the types:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconDataTypeSupportBetweenXSDTypesNETFrameworkTypes.asp
But I don't see how I can convert them. I read my values from the XML file, and later save them ... more >>
[Q] Deleting records in flat files
Posted by stuie_norris NO[at]SPAM yahoo.com.au at 7/6/2004 1:05:02 AM
Dear Readers,
I am developing an application that stores "messages" in array list
and writes new entries to a disk file at the end. This file is used
incase the user choses to restart the program. When the program is
restarted the messages are replayed so the application knows where it
is u... more >>
Changing size of checkbox boxes
Posted by shofu_au NO[at]SPAM yahoo.com.au at 7/6/2004 12:44:28 AM
Dear Group
I am writing an application a visually impaired staff member using
csharp and windows forms.
In this application everything needs to be large to make working
easier.
We have made everything larger expect the checkbox boxes.
We have text in 20 point font and an extremely sm... more >>
|