all groups > c# > may 2005
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
SRE (Simple Rule Engine)
Posted by Yahoo at 5/31/2005 11:57:37 PM
GO TO http://sourceforge.net/projects/sdsre/ TO GET THE LATEST VERSION!!!
SRE (Simple Rule Engine) is a lightweight forward chaining inference rule
engine for .NET. Its 'simple' because of the simplicity in writing and
understanding the rules written in XML, but this 'simple' engine can solve... more >>
How to? COM class library Property pass-by-reference for TypeLib [propput] ?
Posted by TJ at 5/31/2005 11:45:42 PM
In C# how do you achieve pass-by-reference property declarations in the Type
Library?
I am writing a COM Class Library that must mimick an existing library for
which the only information is the TypeLib. I'm using Visual Studio .NET
2003.
The original library provides simple authenticatio... more >>
asp.net 2.0 on production server
Posted by Aaron at 5/31/2005 10:50:30 PM
I'm too excited about the new features in 2.0. I'm think about installing
beta 2 to my live production server.
Is there going to be any problems running .net framework 2.0 beta 2 on a
production web server? security issues? compatibility with existing com,
..net 1.0, 1.1 apps?
Do you guy... more >>
Help!! Problem instantiating WORD object using C#.NET
Posted by Handy Mulia at 5/31/2005 10:34:27 PM
I am trying to open the content of a WORD file from C#.NET which resides
in the REMOTE SERVER, however I get an error:
"System.Runtime.InteropServices.COMException: Server execution failed"
when declaring new Word.ApplicationClass().
string fileName = this.btnWorkOrder1.Value;
object readOnl... more >>
how to write a log file
Posted by a at 5/31/2005 10:26:02 PM
I'm going to iterate over the rows of a datagrid.
The contents of a column are web addresses that I'm going to use in HTTP
requests.
Since this will most likely crash at some point, I'd like to write some sort
of log that would help me see where it stops working, rather than having to
go ... more >>
PLS HELP - User-Designing form in run-time
Posted by MuZZy at 5/31/2005 9:38:36 PM
HI,
We have a pretty large application with hundreds of forms in it. Now some of our new clients request
us to make some custom screens(forms), which basicly comes to rearranging controls on our standard
forms - moving existing text boxes, grids, etc. around. We currently are creating custom ... more >>
Word Editor
Posted by groast at 5/31/2005 7:52:02 PM
Hi guys,
I'm trying to design a word editor, something similar to "Microsoft Word".
This is my first time designing with Visual C#, so not really good will all
the features. I wonder how to actually create a work space ( which is set to
the paper size chosen by the user) and able to handle ... more >>
Stupid Question from Newbie
Posted by PMGuy at 5/31/2005 7:41:31 PM
I'm baffled.
The clown who posts a flame for the sole purpose of getting a rise out
of folks gets replies. Yet, the post that I made ealier today about
capturing accellerator keystrokes in an MDI child form has been
ignored.
What am I doing wrong?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
HTTPS WebRequest and WebResponse
Posted by Marc Sartele via DotNetMonster.com at 5/31/2005 7:39:37 PM
My C# project seems a little complex for me to handle. I am trying to auto
login to a bank https site, the site will then redirect me to a menu page
and then I need to auto select a link that will build a text file and ask
if I would like to save, where I select yes to download the text file to a... more >>
absolute disk read write
Posted by Adelino at 5/31/2005 4:17:49 PM
Is it possible to read/write sectores in any hard drive? I have some examples
from the net in vc++ but is there a simple way in c#? Thanks
The ideia is to do a disk search of a pattern that identifies pictures for
examples and by it's size, save all those sectores/clusters to another disc
d... more >>
IPCChannel & ASP.NET app
Posted by Sahil Malik [MVP] at 5/31/2005 4:15:57 PM
Okay, I am trying to use a service over a remoting connection using the IPC
Channel. This is from an ASP.NET app. The service is singleton if you care
(don't think it should me a difference).
But I'm getting an ugly "Access Denied" error.
Anyone knows how to fix this?
- Sahil Malik [MVP]
... more >>
Defining Destructor (Finalizer) and calling the base Filnalize??? how?
Posted by esafran at 5/31/2005 4:08:25 PM
I've defined a class, but now I want to Define a Finalizer
(destructor)...
How do I call the Base Finalizer???, void Finalize() is a protected
override method and Type.GetType Does not work.
Hoe do I call it?
private void DefineFinalizer(TypeBuilder typeBuilder)
{
MethodBuilder finaliz... more >>
C# Windows Service, Detect Login
Posted by Frank Gibbs at 5/31/2005 4:06:30 PM
What will tell me that a logon event has occured in a windows service. I
don't need full credtitals just NT User Name.
Frank
... more >>
dropdownlist question
Posted by Newbie at 5/31/2005 4:02:08 PM
i have a dropdownlist that should allow the user to select a state. it should
display the 2-letter state code and the full state name. for example:
AK Alaska
CA California
....
but i am only able to display either the 2-letter state code or the full
state name (not both). my code follows... more >>
hide source code
Posted by iWrite at 5/31/2005 3:46:11 PM
I would like to know if there is anyway to hide the string variables by
simply opening it from a notepad.
string mString = "thequick";
can view easily by opening the application file from Notepad.
... more >>
Re-number a column for all rows in RowChanged event?
Posted by Tim Nelson at 5/31/2005 2:25:48 PM
I have the need to have a column called "order" in a dataview that is
tied to a grid. When the use changes the "order" field in the grid and
moves to another row I want to trap the RowChanged/ing event and
renumber all the rows. Problem I think I am having is as I renumber the
rows, the ro... more >>
SqlDataReader --> Array --> combobox
Posted by RvGrah at 5/31/2005 2:15:44 PM
In Vb.Net I used to use this code to put a few thousand numbers into an
array and then use the AddRange method to add them all at once to an
auto-complete combobox. It was hundreds of times faster than adding the
items directly to the combobox as I iterated through the SqlDataReader.
Since you c... more >>
Explore Back Button
Posted by Microsoft at 5/31/2005 2:01:54 PM
Hi,
I have written a C# web app and need to simualte the Back button.
Like : Response.Redirect;
Except: Response.Back;
I found that I need to use the History.Back but cannot get it to work
Any help would be great!
Thanks,
Bryan
... more >>
PrintDirect ?
Posted by JC at 5/31/2005 1:44:16 PM
http://www.c-sharpcorner.com/Code/2002/Oct/PrintDirect.asp
There is some code on how to directly send codes to a printer. I am trying
to figure out how to different codes than what is listed here but get enough
from the sample to know at least the first part of the needed printer
control co... more >>
class files into dll
Posted by Hrvoje Voda at 5/31/2005 12:20:33 PM
I have created a project solution with two class projects.
One is used to give information about user and the other one is a dataset
connection properties.
The class with users has reference to dataset.
Now, I created an dll of those project solution.
But, when I call a public function... more >>
Testing for the (possible) occurance of a substring.
Posted by Michael McCarthy at 5/31/2005 11:57:57 AM
I want to test for the ~possible~ occurance of a string within another
string... IndexOfAny gives wildly odd results, possibly because it's
expecting the string to be there... This is probably exacerbated when
you compare two strings of different lengths... I simply want to test if
a stream ... more >>
Math.Round()
Posted by Marty at 5/31/2005 11:39:25 AM
Is there a function that rounds decimal numbers using the traditional 0
- 4 down and 5 - 9 up? The result from System.Math.Round(3.85) returns
3.8 instead of 3.9! Thanks.
... more >>
Can't Capture Ctrl-F4 in MDI Form
Posted by PMGuy at 5/31/2005 11:09:18 AM
Hopefully, I'm missing something real simple in front of my face.
I've used the ProcessDialogKey override and I'm able to capture *most*
shortcut keystrokes, except for the one I'm really interested in.
It seems that the CTRL+F4 keystroke is being captured someplace before
my override ca... more >>
Sending emails via c# code
Posted by Joe_Black at 5/31/2005 10:55:27 AM
Hi all,
I have googled this and found some answers but none that give me exactly
what I'm after, maybe someone here can help.
I have an app that will be distributed to users for their laptop and
home PC's, I have no idea what operating system they are using although
it will be at least W... more >>
Database connection
Posted by Peter Kirk at 5/31/2005 10:01:15 AM
Hi
I am writing a windows service which needs to access a database (which will
be running on a different machine). I don't know what the database is (maybe
oracle, maybe sql server - it is something that needs to be
configured/installed at deployment time).
How do I make a "connection" t... more >>
Identifying the Current Row
Posted by Christopher Weaver at 5/31/2005 9:51:58 AM
I want to set a value in a specific field in the current row of a DataSet.
This seems like the most basic thing to do but I can't find the syntax for
identifying the current row.
IOW, I can do this:
SomeRow["fieldName"] = 'value';
But how do I set SomeRow to the row that the user is cur... more >>
Copy of an object.
Posted by Andrew at 5/31/2005 9:28:06 AM
I would like to make a copy of the Request.Form collection object. A
shallow copy is fine. Request.Form is read-only and I'd like a copy to work
with. It seems MemberwiseClone() is protected. I'd be very appreciative if
someone would point me in he right direction.
Thank you,
Andrew
... more >>
Ayuda con un datagrid
Posted by Juan Martinez at 5/31/2005 8:43:14 AM
Tengo una tabla en un archivo de xml y esta tabla la muestro en un
datagrid
dg.DataSource = DS.Tables["tabla"];
DS es mi dataset, esta tabla tiene varios campos, es posible mostrarlos
ordenador de alguna forma que yo quiera? ya que solo los muestra en la
forma en que estan en la tabla es ... more >>
XP Style Icons
Posted by Stuart Ferguson at 5/31/2005 8:08:18 AM
I was wondering if anybody knew of any good sites to pick up some XP
Style or Linux Style icons that are free for non commercial use ?
Stuart
*** Sent via Developersdex http://www.developersdex.com ***... more >>
subdomain url rewriting?
Posted by Leon at 5/31/2005 7:39:55 AM
Is it possible to allow my website user's to enter the site using a
subdomain name such
johndoe.mywebsite.com then a automated script in the Global.asax file within
the
Application_BeginRequest redirect the user to
mywebsite.com/index.aspx?username=johndoe?
if so then how?
I kind of know... more >>
Highlighting Text in a RichTextBox
Posted by paulgabion at 5/31/2005 7:34:29 AM
Hello!
I want to ask you guys how can I highlight a certain text in
richtextbox. I want to use this in making breakpoints for my ow
program.
Thank you and good day! :)
- Pau
--
paulgabio
-----------------------------------------------------------------------
paulgabion's Profile: ... more >>
Visual Build Tool
Posted by BuddyWork at 5/31/2005 7:30:56 AM
Hello,
Done anyone know of any good or free .Net build tools. I want to build
multiple solutions but want to automate the build process, I know in
Whidbey there is MSBuild but that does not help as yet.
Thanks
... more >>
class must only be used as a base class
Posted by Steve Richter at 5/31/2005 6:08:33 AM
I have a class, "BaseUserTable", that must be derived from to be used
correctly:
class BaseUserTable
{
public virtual string TableName
{
get { throw( new ApplicationException( "where's the TableName
property in the derived class??" )) ; }
}
}
( the idea is that BaseUserTable ... more >>
Statics and inheritance
Posted by Andrew Ducker at 5/31/2005 5:29:55 AM
Let's say I have a root class called RootBusinessService
and I then want to have 25 business service classes based off of it.
And each class has a property that's shared between all instances of it
- called 'State'. I therefore want all of them to have a static
property State.
However, I c... more >>
Registering ActiveX Component using code
Posted by Raed Sawalha at 5/31/2005 4:55:25 AM
Hello I have ActiveX DLL and I usually register it using following procedure
1. gactutil -i ActiveXDLL
2. regasm ActiveXDLL /tlb:DLLNAME/codebase
3. then using the activeX
can I automate step 1 and 2 inside ActiveX itself... more >>
Ordering items in an array
Posted by CodeRazor at 5/31/2005 3:49:34 AM
My array is
int[] list = new int[3]{20,99,6};
Using a for-loop, how can I order the output of this array. I don't want to
use a sorted list.
I know this is straightforward but can't figure it out.
thank you!... more >>
want to know the directive for this class ScheduledTasks in C#
Posted by bassembwa NO[at]SPAM hotmail.com at 5/31/2005 3:33:31 AM
Hi All,
I searched the net for the directive for this class ScheduledTasks and
didn't found it. I want to use this class to add task running in fxed
time every week. I want to run EXE every week. If anyone can help in
this, thanks.
... more >>
Why is this poor design
Posted by Nick Weekes at 5/31/2005 2:59:34 AM
Morning all,
Ive read a few posts regarding the manipulation of form controls from
one class to another etc, and the opinion is that it is considered poor
design to set the instanciation of controlX to Public, so its
accessible from other classes, rather than create FormY.ControlX public
prop... more >>
Newbie DirectX 9
Posted by bernardpace NO[at]SPAM yahoo.com at 5/31/2005 2:39:48 AM
Hi,
I am trying to use DirectX 9 for the first time. I have downloaded
the SDK from microsoft site, and installed it on my pc.
I created a new application, and I am trying to use
using Microsoft.DirectX;
This namespace(DirectX) is not accessible. I tried to Add Reference
but can't find ... more >>
starting process
Posted by Just close your eyes and see at 5/31/2005 2:22:03 AM
i am trying to run a process through that code
Process.Start("myApllication.exe");
but the command prompet window opens while starting of the process
i want to delete this effect
how ?
thx all ... more >>
Worker Process
Posted by Studio P.M. at 5/31/2005 2:21:02 AM
Does anyone know a valid and compete reference paper about what the
“Worker Process†precisely is and does? So far I couldn’t find any.
Reason is that during last weeks I had to go deep down into SharePoint
security, and the related identities. Which, by the way, as I realized, are ... more >>
Prevent JIT inlining
Posted by Brian Keating at 5/31/2005 1:52:13 AM
Hello there,
I'm having a slight problem in that my JIT compiler is getting an exception
and I really don't know how to stop it.
Let me expain what's happening with the help of this simple test program.
[STAThread]
[MethodImpl(MethodImplOptions.NoInlining)]
static ... more >>
Diagnostics methods
Posted by SalamElias at 5/31/2005 1:34:03 AM
Hi, I am trying to use
using System.Diagnostics;
Then somewher
Process ProcessCourant = Process.GetCurrentProcess();
I get the following error :
System.Diagnostics.Process' does not contain a definition for
'GetCurrentProcess'
Thansk for your help... more >>
dataset table into an array list
Posted by Hrvoje Voda at 5/31/2005 12:00:00 AM
How to put a specified dataset table into an array list ?
Hrcko
... more >>
Implementation of Singleton
Posted by Tony W at 5/31/2005 12:00:00 AM
Hi,
I'm trying to write a small app where I need to keep referencing a
stored file location that is stored in an xml file.
My research suggests that I should use a Singleton to store the file
path and use the Singleton each time I need the path string.
I am new to c# so have looked at num... more >>
Can strongly named assembly1 reference non-strongly named assembly2 ?
Posted by Oleg Subachev at 5/31/2005 12:00:00 AM
When I try to use strongly named assembly1 that references
non-strongly named assembly2 I get the following error:
"The located assembly '<assembly2 name>' is not strongly named."
How can I force strongly named assembly1 to reference non-strongly named
assembly2 ?
--
Best regards,
... more >>
Regular expression problem, help please!
Posted by at 5/31/2005 12:00:00 AM
Hi
I need to write one regex to read all the fields from the following lines /
file format
line 1 - some_alphanumeric,some_alphanumeric,"something,
something",numbers_hyphenatedORnot
line 2 - some_alphanumeric,some_alphanumeric,something
something,numbers_hyphenatedORnot
At first I thou... more >>
Catching run time errors
Posted by Manish Soni at 5/31/2005 12:00:00 AM
Hi,
A module which I am calling may have a run time error. Now currently in
such case user gets message box saying run time error has occured. My aim is
to catch this runtime error and show a friendly message to the user. How can
this be done? I have tried putting a try catch block aroun... more >>
C# .net APP--pls help
Posted by zhonghua_1999 NO[at]SPAM 163.com at 5/31/2005 12:00:00 AM
Hi ,all
I have an App in CSharp which works fine on my computer,
when i try to run this exe on my friend 's computer(he have
already installed the .net Framework 1.1 .) it show me
an err.have the fellowing err msg:
///////
" the key datagrid1.AllowSorting' does exist in......."
///////
... more >>
Problem with messageboxes generated by Topmost window after losing focus
Posted by Claire at 5/31/2005 12:00:00 AM
I need my communication status window to be topmost when it's open/active.
Ive set the TopMost property of the form to true and it does work ok.
After performing tasks this window generates an error or confirmation
messagebox. If this window is the Active/Selected window then the messagebox
a... more >>
|