all groups > c# > may 2005 > threads for tuesday may 3
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
Math expression validator, not evaluator??
Posted by Faraz at 5/3/2005 9:56:01 PM
Hi everyone,
I am developing a WinForms application and I need a Math Expression
validator, not an expression evaluator. So I want to be able to say...
if ((sales - tax) > 20)
THEN (x * y * 0.55)
without knowing at runtime what the values of sales, tax, x and y are. Is
there any softwa... more >>
Cookies not sending in HttpWebRequest
Posted by Michael Evanchik at 5/3/2005 7:53:03 PM
Hello all, since i wanted to use ssl and its seems easy to do so with this
object. Im trying to login to a webserver (aol) for this example. But for
some reason, im packet sniffing with ethreal and cookies are not being sent
along with the header and post data. here is the code im using. C... more >>
Set form on the fly?
Posted by vb6dev at 5/3/2005 7:29:59 PM
Hi,
I have code such as:
Form01 f1 = new Form01(); where Form01 is a form in my project.
then I have Form02 f2 = new Form02();
etc. I have 50 forms. Can I use Form f = new Form(); and then assign
FormXX to f?
It must be simple, but I can't find how to assign one of my 50 forms to my ... more >>
Forcing Data to be written to DataSet
Posted by Greg at 5/3/2005 7:28:58 PM
The issue: I have a grid which has a dataset as the datasource.
If a user enters data in a textbox on the grid and then clicks on the close
button of the form (the red X in the upper right corner), no events fire for
the grid or the control that the user was typing in.
The closing event o... more >>
Control References in DataAdapter Commands
Posted by Christopher Weaver at 5/3/2005 6:45:02 PM
How do I reference one of the properties of a form control within a SQL
Command of a DataAdapter? Do I have to do this dynamically within code or
can it be done within the CommandText property editor?
... more >>
Would like to have a smooth progress bar or a custom image in the progress bar
Posted by jayderk at 5/3/2005 5:47:29 PM
Hello All,
I would like to have the progress bar look smooth not add the little
progress boxes when you change the value?
how about a custom image as the progress bar?
regards
Jay
... more >>
C# Remoting
Posted by Jason at 5/3/2005 5:36:31 PM
I have implemented a C# class inherited from System.MarshalByRefObject
and using RegisterWellKnownServiceType to allow a web app to communicate
with a service on the same machine.
I would like to limit remoting of this class to the same machine (i.e. I
do NOT want external machines connecti... more >>
C# string method equiivalent to C++ CString SpanExcluding?
Posted by WRH at 5/3/2005 5:11:06 PM
Hello
Is there a C# string method or short algorithm equivalent to CString
SpanExcluding?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Sharing Code between Window Forms and Windows Mobile
Posted by Robert W. at 5/3/2005 4:28:52 PM
I'm embarking on a project that will have both a desktop application and a
Pocket PC application. It seems logical to have as much code as possible
sitting in a shared project, which would be referenced and utilized by both
the Windows Forms application and the Mobile Device application.
A... more >>
load excel into dataset from asp.net page
Posted by chris at 5/3/2005 4:09:03 PM
Hi there,
I load an excel file from an asp.net page and try to read it into a dataset.
The problem is that it tells me: Database or object is read-only
It only needs to be read only. Here is the code. Could someone please advice
me what I am doing wrong. Thank you Chris
(FileExcel is the inpu... more >>
Re-instantiation of an application
Posted by Steve Teeples at 5/3/2005 2:48:01 PM
I'm hoping someone can provide me with an idea how to approach this problem I
have. I am writing a test utility that runs multiple tests. While looping
through and executing each test it is possible that one of the conditions
requires the system to reboot. I want to be able to pick up my te... more >>
What is "Exit Sub" in C#?
Posted by Brett at 5/3/2005 2:21:22 PM
What is the C# equivalent of VB.NET's Exit Sub?
Thanks,
Brett
... more >>
Simulating mouse movement
Posted by Benny Raymond at 5/3/2005 2:12:54 PM
In my attempt to make a macro recording program where i can then
playback mouse movements i'm running into a big problem:
I'm trying to simulate the movement of the mouse to a point on the
screen. With my current code the mouse is only moving in the X
direction and not in the Y direction (... more >>
Remove Lines in a text file
Posted by a at 5/3/2005 1:29:02 PM
I'm trying to remove specific lines from text files.
I need to always remove lines 1 thru 8 and lines 10 and 11 from text files.
Seems like a simple task, but I'm not getting it.
I'm reading the file via webresponse as a stream and then trying to remove
the lines before parsing it and the... more >>
TextBox and HTML question
Posted by viboater NO[at]SPAM hotmail.com at 5/3/2005 1:14:16 PM
This may be a dumb question. Bear with me because I'm a driver guy.
Anyway, I would like to put text, and/or HTML, and/or a hyperlink into
a TextBox type of object. Any clues on how to use a TextBox object or
browser object to accomplish this would be very much appreciated.
Thanks
... more >>
sorting and image in datagrid
Posted by Newbie at 5/3/2005 11:51:03 AM
1. How does one allow the user to sort by clicking the column header of a
datagrid?
2. How does one put an image (.gif file) in all the cells in a column of a
datagrid?... more >>
Username in Web-App
Posted by Andy at 5/3/2005 11:21:05 AM
How would I get the current username using C# in an .ASPX web-app? I tried
System.Security.Principal.WindowsIdentity.GetCurrent().Name and this returns
'NT AUTHORITY\SYSTEM' I also tried System.Environment.UserName which just
returns 'SYSTEM'
What am I missing, or what should I do to ge... more >>
Piping data when using Process class
Posted by Tenacious at 5/3/2005 11:20:35 AM
I have been trying to run this program called mysqlbinlog.exe from my
main c# application using the Process class(See example below). The way
that mysqlbinlog functions is to read the first file in the command
line and pipe the results to the second file.
This works fine when actually run from... more >>
12 apps safer than 1 app with 12 threads?
Posted by Brett at 5/3/2005 11:02:56 AM
Let's say some one makes the argument that instead of multi threading an
application, they say it's better just to make multiple applications. The
app does the same thing for different modules. The modules are conceptually
the same. They contain mostly data but some processing to get data. ... more >>
Can I change the output of the Class Library DLL file location?
Posted by Alpha at 5/3/2005 10:50:07 AM
Hi, I'm working on different projects that each is a class library which is
run off of a main application. Can I change the output path of just the
compiled DLL file to the path of the main applicatin for testing. I'm
getting very tired of copying that file to the main directory after each
... more >>
datagrid
Posted by Newbie at 5/3/2005 10:10:13 AM
Hi!
I am using a datagrid wherein one of the columns should show an image (.gif
file). Every row should show the same image. When the user clicks the image,
certain data from the row is passed to another webform via Response.Redirect(
). How do I place the image in the column and what type ... more >>
Custom Drawn ComboBox: DrawFocusRectangle doesn't work properly?
Posted by TT (Tom Tempelaere) at 5/3/2005 9:57:07 AM
Hi there,
I made a custom drawn ComboBox. The DrawItem event handler is (explanation
follows)
<code>
private void OnDrawItem (
object sender,
System.Windows.Forms.DrawItemEventArgs e )
{
ComboBox theCombo = (ComboBox) sender;
DataRowView drv = (DataRowView) theCombo.Items[... more >>
Need help locating files
Posted by Jason Winters at 5/3/2005 9:25:53 AM
For some reason both my VB and VC# are missing project templates the one
that I really need to locate at this time is "Class Library project" For
some reason I cannot get them to install of off the CD I keep getting errors
and it stops. Does anyone know of a place where you can download the... more >>
Comparing Strings & String Case
Posted by JSheble at 5/3/2005 9:07:32 AM
I realise .NET has all these great objects, specifically strings, but is it
really necessary to create a string variable (object) just to compare two
string values?
For example, I'm looking at an attribute of an XML string, and I wish to
compare it's value to a literal string, but it has to... more >>
C# web service/website ?
Posted by C. Woody Butler at 5/3/2005 7:05:04 AM
I have a strange problem with a website and a web service.
They're both on the same server, running Windows server 2003. The website is
set up as the default website for the server.
I've got the same code running in several different environments, it just so
happens this is the production... more >>
ByRef/Ref passing in Web Services
Posted by Sahil Malik [MVP] at 5/3/2005 4:27:12 AM
Okay so now I understand (surprised though) - that WebServices can indeed
pass ByRef/ref parameters. All I have to do is mark an integer parameter of
a WebMethod as "ref". Funnily enough, this is also supported per the SOAP
Spec, and from what I understand, .NET's implementation of WebServices... more >>
Starting Service
Posted by bob_jeffcoat NO[at]SPAM hotmail.com at 5/3/2005 4:21:01 AM
Hello,
When I try and start my Dot Net service on a windows 2003 sbs server I
get a "System error 5"/"Access is denied" message.
I can fix it by editing the properties of the service by specifying the
administrator account and password but I don't won't my users to have
to do that.
How c... more >>
Study Strategy for 70-316 (C# Windows Development)
Posted by orekinbck NO[at]SPAM yahoo.com.au at 5/3/2005 1:53:32 AM
Hi There
What are the best value practice exam engines for 70-316?
How does this strategy sound:
* First iteration - Go through Kalani's training guide + MSDN +
http://www.codeclinic.com/70-316skills.htm + Any other online resources
* Second Iteration - Go through the ExamCram book and ques... more >>
load authorized dll
Posted by Eugene at 5/3/2005 1:40:03 AM
Consider a system that has exe and dlls, how can i ensure that only the
authorized .net assembly can work with my system. For example, consider your
sys got an exe, that would use dll A, B, and C; how do you ensure, other
people cannot create a dll D, that has the same interface, from being in... more >>
Select, store procedure question?
Posted by Iwan Petrow at 5/3/2005 12:37:16 AM
Hi,
I have a store procedure like this:
CREATE PROCEDURE AAA
@p1 int
@p2 datetime
@id int OUTPUT
AS
SET @id=(SELECT id FROM table1
WHERE p1=@p1 AND p2=@p2)
But p1, p2, @p1 and @p2 could be NULL and this is a problem because
it can happen something like this: p1=NULL... more >>
creating new objects without assignment to a reference
Posted by muratozgur NO[at]SPAM gmail.com at 5/3/2005 12:29:25 AM
Hello,
I want to know about "creating new objects without assignment to a
reference" like this :
...
new Employee("John","Woo");
....
Is this a good programming practice ? How does garbage collector
handle this issue ?... more >>
C# PtrToStructure NullReferenceException, but VB.NET no problem.
Posted by C Learner at 5/3/2005 12:20:02 AM
Hi,
I have an application which is using a dll written in C++.
When the program go to the function below, it would raise an
NullReferenceException at the line of PtrToStructure.
public bool ServerCallBack(IntPtr log)
{
DB_T acclog = (DB_T)Marshal.PtrToStructure(log, typeof(DB_T));
}
... more >>
virtual and override methods
Posted by John Salerno at 5/3/2005 12:00:00 AM
Hi all. I have a question about virtual and override methods. Please
forgive the elementary nature!
First off, let me quote Programming in the Key of C#: "Any virtual
method overridden with 'override' remains a virtual method for further
descendent classes."
Now here's my question: Let's sa... more >>
How to get " TOP(X)" rows from a DataView?
Posted by jensen bredal at 5/3/2005 12:00:00 AM
I have a dataView and i only want to get the first x rows .
Is there a way of doing this without using Foreach?
Thanks
JB
... more >>
No method in C# but exists in VB?
Posted by Brett at 5/3/2005 12:00:00 AM
Sorry for all the post on conversion from VB.NET to C#. Just can't figure
some of these out. getElementsByTagName method is fine in VB but get this
error in C#:
Object does not contain a signature for getElementsByTagName
Intellisense in both langauges is the same.
[VB.NET]
Private W... more >>
POP3
Posted by perspolis at 5/3/2005 12:00:00 AM
hi all
I need a POP3 source code..I found some sourceon codeproject.com but with
some exceptions.
thx in advance
... more >>
Good book about C# in English
Posted by Lior Bobrov at 5/3/2005 12:00:00 AM
Which book is recommended for C# , for beginners and advanced , in English ?
Thanks in advance ,
Lior .
... more >>
Please help: How to check whether user has changed data in a DataGrid?
Posted by Tee at 5/3/2005 12:00:00 AM
Hi,
Is there any way to check whether user has changed the data in a DataGrid?
Thanks,
Tee
... more >>
get Control by Name
Posted by Sharon at 5/3/2005 12:00:00 AM
Hi all
Is it possible to refer a control by his name programmatically?
Example:
I have text box and a button on a form
txtName
btnClick
And what I want to do is:
myForm.GetControl("txtName").text = "xxx"
myForm.GetControl("btnClick").text = "xxx"
... more >>
AppSettingsReader GetValues
Posted by rawCoder at 5/3/2005 12:00:00 AM
Hi,
Consider following app.config
<configuration>
<appSettings>
<add key="Fields" value="Field1" />
<add key="Fields" value="Field2" />
<add key="Fields" value="Field3" />
</appSettings>
</configuration>
Is there any way to retrieve all three values for one key.
Its ... more >>
Free C# Profiler
Posted by Fao, Sean at 5/3/2005 12:00:00 AM
I'm not really sure if this is the right place to ask this question, so
if this is off-topic, please feel free to redirect me ;-)!
Anyhow, I was searching around for a free C# (or .NET in general)
profiler and I came back with quite a few hits. None really stood out
in particular, so I was... more >>
Binary compatibility?
Posted by Michi Henning at 5/3/2005 12:00:00 AM
Hi,
I'm interested in figuring out exactly what kind of change to an assembly
is binary compatible. I've browsed the doc a fair bit, but I can't find a
comprehensive list of what actually constitutes binary compatibility.
Could someone point me at an authoritative list?
One question in part... more >>
Thread question : Detecting application closing in a thread ?
Posted by Sagaert Johan at 5/3/2005 12:00:00 AM
Hi
If i have a form application that creates a thread, is there a way to detect
from within that thread if i have closed the form ?
Now i use the forms closing event to end the thread i started, but i would
like to do it automatcally so i do not have to worry about any threads that
remain a... more >>
Good Design Practice Question
Posted by Calvin at 5/3/2005 12:00:00 AM
I'm fairly new to programming, that said, I know how to 'program', but my
question is about design.
How big and what sort of objects should be stored in Session.
I'm doing an e-commerce website, and I've created an xsd based around the
shopping cart, customers details and the order's tables.... more >>
String manipulations with SQL
Posted by news.microsoft.com at 5/3/2005 12:00:00 AM
What is the best way to avoid string manipulations with SQL?
I have edit box control where database is opened for attacks through SQL
commands.
Something like this:
selectString = "SELECT FIRSTNAME, LASTNAME FROM xxxTable WHERE
FIRSTNAME='"+txtTextBox1.Text"'";
Furthermore I would like... more >>
[newby question] looking for c# on webpage & c# 3d information
Posted by Rick D. at 5/3/2005 12:00:00 AM
Hi all,
I'm looking for information on running a c# application on a webpage,
just like a java-applet.
And the second thing i'm looking for is information on how to display
3d graphics with c#. And if there are 3d model importers available for
it (like milkshape ms3d or something similar).... more >>
Problem using interfaces
Posted by Mats-Lennart Hansson at 5/3/2005 12:00:00 AM
Hi,
I want to use interfaces, but somehow it doesn't work as I want to. I have
these compoents:
1. IClass
A component that holds an interface for a class.
2. Class : IClass
A component that holds a class that implements the IClass interface.
3. UseClass
A component that wants to use C... more >>
Examples of using WM_COPYDATA or Sockets between C# and MFC
Posted by WAkthar at 5/3/2005 12:00:00 AM
Hi,
I have a server application (MFC) which communicates through the serial
port.
I need to have a graphical user interface, in c#, which needs to communicate
with the server. At present the user interface is a very dull MFC dialog app
which communicates with the server via WM_COPYDATA.
H... more >>
|