all groups > c# > february 2004 > threads for tuesday february 10
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
IIS ports
Posted by Dave Brown at 2/10/2004 11:58:13 PM
Hi all,
Does anybody have any experience of running .Net windows forms controls from
a html page on any other IIS port than 80 ?
If so can anyone tell me why i cant get even the simplest control to display
correctly.
When IIS is on port 80 then everything is fine.
rgds
Dave.
... more >>
Concurrency violation - concurrency_error_watch.xls (0/1)
Posted by nick at 2/10/2004 11:52:58 PM
I'm having trouble updating from a datagrid. It's says "Concurrency
violation: the UpdateCommand affected 0 records", though I can't see
how it's related to "concurrency". I can insert and delete with no
problem. Here's the code that's causing the problem:
public void UpdateDataSource(Dancers.... more >>
Datagrid Checkbox
Posted by nick at 2/10/2004 11:32:20 PM
How do I make the bool column "unchecked" by default instead of
"greyed out" (indeterminate)? Here's the code for the bool column:
BoolColFinished = new DataGridBoolColumn();
BoolColFinished.MappingName = "finished";
BoolColFinished.HeaderText = "done";
BoolColFinished.FalseValue = false;
Bo... more >>
file system events (FileSystemWatcher)
Posted by Allen Anderson at 2/10/2004 11:17:53 PM
I'm trying to figure out a way to catch when a file has been written
to a directory. I currently have it where I can catch when the file
begins writing, but this isn't helpful as I need to know when its
done. Does anyone know the right combination of flags to use to catch
when the file has bee... more >>
MEMORY PROBLEM
Posted by BHASKAR at 2/10/2004 11:11:08 PM
Hi
This is Baskar here
I have explained our problem below, please read this and help us to get it done
We are developing a statistical project.
Development environment specification is given belo
Hardware :
· Pentium III with 256 MB Ram, 20 GB H.D
Software :
· Microsoft W... more >>
A C# OOP problem
Posted by Alison at 2/10/2004 11:06:06 PM
Hi, there,
I was doing experiment of C# OOP concepts and found a situation I can't figure it out.
I have a base class Employee and a derived class Manager. I also have a method away from the two classes, test, which takes one parameter:an instance of Employee. I instantiated an object with Emp... more >>
12.34f vs (float) 12.34
Posted by Jon Shemitz at 2/10/2004 10:48:58 PM
Is there a difference between a constant like "12.34f" and "(float)
12.34"?
In principle, at least, the latter is a double constant being cast to
a float; while the two both generate actual constants, does the latter
ACTUALLY do a conversion at compile time? That is, are there constants
where... more >>
What does the modifier have methid from interface?
Posted by Vladimir Bezugliy at 2/10/2004 10:44:34 PM
I have next interface:
interface I
{
void F();
}
And next class implements this interface:
class MyClass : I
{
void F(){};
}
What does the modifier have the method MyClass::F() by
default?... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
C# Syntax Only Book Recommendations ... ???
Posted by FDude at 2/10/2004 10:44:13 PM
Hello All.
I have been doing a lot of .NET coding in VB.NET. I am very familiar with
that language and have 2 books that already detail the .NET framework from a
VB perspective.
I want a C# book but do not want it to cover the .NET framework again. Is
there a good book that covers mostly ... more >>
OOP with C#
Posted by Sejoon Park at 2/10/2004 10:19:44 PM
Hello to all the oop guru out there...
I've been doing SOME programming in VB 6, and C# and Java..
I know well enough of C# and Java to get the job done.
I was able to bounce back and forth depending on situations.
But I am having some difficulties with grasping OOP(Object Oriented
Programm... more >>
Initiating GUI control creation from a non-GUI thread
Posted by Martin Maat [EBL] at 2/10/2004 10:15:28 PM
Hi,
I have a GUI application that responds to events coming from an externaql
application. In the implementing code for the event I need to create a GUI
control and "parent" the control into the GUI. Doing this directly fails, it
is not allowed to parent a control that was not created on the m... more >>
Integer constants
Posted by Jon Shemitz at 2/10/2004 9:17:43 PM
I was experimenting with implicit typing of integer constants, and
found to my surprise that in MS C# 1.1 (VS.2003) you can write code
like
double Large = 18446744073709551615;
This is quite a bit bigger than ulong.MaxValue - in fact, it's
ulong.MaxValue * 2 + 1. I'm curious - could someo... more >>
Convert non existant path to Dos 8.3
Posted by James Geurts at 2/10/2004 8:31:07 PM
Hi all,
I'm trying to convert a string representing a path to Dos 8.3 notation. The code that I have works fine if the path exists, but it will not work if the path does not exist. I am looking for a way to convert a string representing a long file path (whether or not it exists) to short (dos ... more >>
Return parameter of a SQL Store procedure
Posted by Hugo Lefevre at 2/10/2004 8:10:50 PM
Dear,
I have a problem : I have a database which contains my data of hardware. The
Id is a varchar and I want at my filling form that my user know which is the
last one. So I made a store procedure in SQL Server with a input parameter
(to select the right hardware e.g. PC for a computer, CD fo... more >>
Drawing in title bar
Posted by Valerie Hough at 2/10/2004 7:48:16 PM
Can anyone say definitively whether it is possible to draw in the title bar
of
a System.Windows.Form object and, if so, how?
Thanks in advance,
Chris Hough
... more >>
Floating toolbar sample
Posted by Valerie Hough at 2/10/2004 7:46:35 PM
Can someone point me to a sample of a floating toolbar for a C#
System.Windows.Form.
Thanks in advance
Chris Hough
... more >>
Accentuated char
Posted by Pascal Cloup at 2/10/2004 7:33:06 PM
Hello,
The methods Read() of the class StreamReader don't read the accentuated
characters. When an accentuated character is present in a file, Read() skip
it and read the following character. Missing something?
Thanks for help
P. Cloup
... more >>
Saving User Application Data
Posted by Ed P. at 2/10/2004 7:11:06 PM
I am trying to save a location to a database using the registry...I've been successful in this, but is there another way I can save this. I have searched on the net and have found that saving the info to an xml file is a good idea. My question is whether or not I can save this in a config file in C... more >>
How to show Chinese
Posted by Beginner at 2/10/2004 7:01:07 PM
i am a VB.NET beginner. i want to know how to show chinese character on VB.NET
thanks... more >>
[REPOST] Dispable Http Caching
Posted by Abhishek Srivastava at 2/10/2004 6:58:09 PM
Hello All,
Apologies to everyone, I posted this before but received no response. I
feel someone must have come accross this problem before, and I need a
solution desparately.
I have written a C# program which downloads a file from a webserver on a
daily basis. (http://www.myserver.com/my... more >>
String to byte *
Posted by Tobias Svensson at 2/10/2004 6:14:00 PM
Hi,
How can I convert a String to a byte * pointer? I am using a third-party
component that has functions that take byte * parameters.
regards Tobias
... more >>
Show an image on a web form from MSSQL database
Posted by Dmitri Shvetsov at 2/10/2004 5:14:11 PM
Hi,
What's the easiest method to do that? I need to extract an image from Image
type column and then display it. Should I store the image as an image file
on a disk and then assign the image URL to this file? Or there is a easier
way to do that? Does somebody have a source code for that?
Th... more >>
Comparing 2 xml nodes
Posted by erin.sebastian NO[at]SPAM cowaninsurancegroup.com at 2/10/2004 4:44:22 PM
Hi All,
I am just wondering if there is a way to compare 2 XML nodes to see if
the data between them is the same? The structure of the XML nodes are
exactly the same I just want to know if the data between the two is
different and I want to do this without using XSLT or anything of that
nature,... more >>
Open a webform
Posted by Ivan Sammut at 2/10/2004 4:19:48 PM
Hi,
I have 2 webform Webform1 & WebForm2
In Webform1 I have a button that when I click I want to first set a variable
in WebForm2 & then open the Page.
This is the code I have now which sets the variable but I cannot figure out
how to make the page load
Webform2 frm = new WebForm2();
... more >>
Can a DataView be used without binding it to a DataSource
Posted by Top Gun at 2/10/2004 3:33:12 PM
Can a DataView be used directly without binding it to another control, such
as a DataGrid. I would like to use RowFilter on a DataSet table and extract
values from specific columns in rows returned by the filter.
Is this possible?
... more >>
Cannot add reference to my shared assembly
Posted by Kimmo Laine at 2/10/2004 2:52:39 PM
Hi,
i have this dummy server which i would like to be a shared assembly:
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyKeyFile(@"..\..\key.key")]
namespace MySrv
{
public class MyServer
{
private long m_lNumber;
public MyServe... more >>
Arrays in MOBILE DEVICE APPLICATION PROJECT
Posted by Sylvia Arun at 2/10/2004 2:30:23 PM
Very strange, when I create a project as MOBILE APPLICATION FOR SMALL
DEVICES and run this simple code, it fails to compile.
int[] arr = new int[5];
for (int i = 0; i < arr.Length; i++)
arr[i] = i * i;
Is this a bug in .NET COMPACT framework.
Please advise ASAP
New to asp and .ne... more >>
How to call one constructor from another?
Posted by Sheila Jones at 2/10/2004 2:11:51 PM
Hello,
Can somebody tell me how to do the following, please?
I have written a 'GridReference' class to encapsulate map locations. It has
a constructor that takes a couple of doubles, representing latitude and
longitude, i.e.
public GridReference(double latitude, double longitude) {
...
... more >>
Using Interfaces: First Time
Posted by Dave H at 2/10/2004 2:06:17 PM
I have a generic class similar to below that is responsible for returning
classes as Interfaces, where IBook and ICard are known interfaces.
public sealed class StoreManager {
private StoreManager() { }
public IBook GetBook() {
return (IBook) new Book();
}
public ICard GetC... more >>
How can I get Http Status Code?
Posted by Jon Maz at 2/10/2004 2:04:26 PM
Hi All,
Here's the code:
HttpWebRequest HttpWReq =
(HttpWebRequest)WebRequest.Create("http://www.asdfasdfasdfafsd.com");
HttpWebResponse HttpWResp = (HttpWebResponse)HttpWReq.GetResponse();
Response.Write(HttpWResp.StatusCode);
Here's what I would like it to retur... more >>
No delegate "base class" ?!?!?!
Posted by Stephen Johns at 2/10/2004 1:50:19 PM
I want to have a Hashtable whose keys are strings and whose values are
delegates.
Well, ok, I have that:
dels = new Hastable();
dels.Add( "key", new Foo1Delegate(MyFoo1) );
dels.Add( "key", new Foo2Delegate(MyFoo2) );
dels.Add( "key", new Foo3Delegate(MyFoo3) );
This works.
BUT! I ... more >>
How can I enum the instance of forms?
Posted by Serenaiad at 2/10/2004 1:24:31 PM
I Create many new formChat,and how Can I Enum each instance of FormChat,And
get the title of each form?
... more >>
interface - why does implementation have to be public?
Posted by Mark at 2/10/2004 1:17:07 PM
Below I've created an interface ... why do all implementations of the
methods have to be public? What if I want them to be private or protected?
public interface IOisWebPageStandard
{
void SomeMethod1();
void SomeMethod2();
void SomeMethod3();
}
Thanks!
Mark
... more >>
Finding System folders
Posted by John Smith at 2/10/2004 12:34:17 PM
How do you determine what the Application Data folder would be in C#?
I'm looking for the method that under normal circumstances should return
"c:\Documents and Settings\<user>\Application Data\"
... more >>
Getting response when web file does not exist.
Posted by Peter Rilling at 2/10/2004 12:26:37 PM
I am trying to use an HttpWebRequest object to get resource from a website.
Now, some of the files that I try to get may not exist. I would like to
check for that condition. When I call GetResponse on files that do not
exist, I get an exception. What I would like is not to have the exception
... more >>
What is the minimum-size UDP packet?
Posted by David Sworder at 2/10/2004 11:36:14 AM
Hi,
I'm writing an application in which a client (C#/WinForms) and server
(C#/service) interact with one another. The client establishes a "session"
with the server but for scalability reasons there is not a one to one map
between a session and a physical TCP connection. A client may disco... more >>
Specified cast is not valid
Posted by Ruslan Shlain at 2/10/2004 11:35:58 AM
A little problem I am having and its driving me nuts.
I have a datatable and I am adding a column to it on the fly. Then based on
some other fields i add or not add a value to that column for each row.
When I do update statement on DataAdapter I get "Specified cast is not
valid". The DB column ... more >>
treeview urgent!!!!
Posted by '[] WiRaN at 2/10/2004 11:18:59 AM
Mine treeview contains some levels, necessary to look a NODE, and it it can
be in such a way in the first level how much in the four level, somebody can
help me to make a function?
... more >>
Launching Event
Posted by Hector Martinez at 2/10/2004 11:11:06 AM
I need to launch an MouseDown event for a control. How can I do that
Thanx in advantage...... more >>
Anyone -- output file macros don't insert?
Posted by Bret Pehrson at 2/10/2004 10:37:36 AM
Anyone else have this problem?
(cpp project)
Properties, linker, general, output file, edit
Show macros, select any and click click insert -- no action.
Anyone else see this?
--
Bret Pehrson
mailto:bret@infowest.com
NOSPAM - Include this key in all e-mail correspondence <<38952rglkw... more >>
iterating and filtering files using C#
Posted by Dan Kjaergaard at 2/10/2004 10:28:36 AM
Hi
I created a program using C#, which iterates files and displays these in a
listview. However I would like to filter the files, so files won't be
displayed if the current user hasn't "read access"
any clever way to do that in the .NET Framework using C#?
thanks
/Dan
... more >>
?At a loss? ExecuteNonQuery executing my Insert Statement 3 times in debug mode
Posted by Mike at 2/10/2004 10:28:24 AM
I know this sounds strange but I am at a loss. I am calling a simple
funtion that opens a connection to a SQL Server 2000 database and executes
an Insert Statement.
private void AddMinimunWageStipen(string payrollid,double amount)
{
System.Data.SqlClient.SqlConnection cn = null;
System.... more >>
Referencing a Windows Application Form
Posted by Bisley at 2/10/2004 10:01:34 AM
I wish to reference call a method contained in my Windows Applications
"main" form, from another class in the same namespace.
Can anyone tell em how to do this please?
TIA
Bisley
... more >>
Systemmenu - add menuitems
Posted by Hubert Hermanutz at 2/10/2004 9:55:10 AM
Hello,
I tried to add menuitems to the systemmenu of my application, but I don't
know how I can do this with C#.
Can anythink help me?
With C++ the systemmenu was available about the method
"m_pMainWnd->GetSystemMenu()". And how is it with C#?
Thanks in advance,
Hubert
... more >>
JIT debugger is not avaialble
Posted by Susanne Christe at 2/10/2004 9:19:59 AM
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Registeresd JIT debugger is not avaialble:
After executing an application I get the Error:
Registered JIT debugger is not available..An attempt to launch a jit
debugger with the following command re... more >>
How to check that registry key exists
Posted by Ed P. at 2/10/2004 8:41:06 AM
hello, I want to check to see if a certain registry key exists on the registry. What's the easiest way to do this. Here is what I am currently doing.
private string registryKey = @"HKEY_LOCAL_MACHINE\Software\Techtracker"
if(registryKey.Equals(Registry.Localmachine.CreateKey("Software").CreateK... more >>
HttpModule Question (getting really weird results)
Posted by Nick at 2/10/2004 8:26:59 AM
My HttpModule is only executing on the first run of the application? What
would cause this to happen? This is a module that I am using to Authenticate
requests instead of a Global.asax. This is really baffling to me. I also
tried Global.asax and got the same results, anybody else experience this... more >>
Animation with C#
Posted by Du Dang at 2/10/2004 8:05:21 AM
I'm trying to create an elevator sim, but I'm a newbie and I don't where to
start. Could someone point me to the right direct?
This program is just like one of those 2D games in the early 90's, boxes
moving up and down with some music in the background ... Should I stick with
C# system.drawing... more >>
Find Row in Table and Update Db
Posted by JJ at 2/10/2004 7:54:29 AM
Hi,
Ok using Typed Datasets and using a table in that
dataset that I am working on.
What do I use in order to find a particular row and be
able to update db with row changes? Do I use a dataview
thats tied to datatable and have it find it that way or is
their something else in or... more >>
Form1.TreeView1.Invoke(...) and Form1.Invoke(...)
Posted by Tom at 2/10/2004 7:31:06 AM
Hi Everybod
I want to update some controls in a form from another threads. I did it by passing the form to that thread and calling a delegate with Form1.Invoke, I want to have just one delegeate for all of my controls in the Form and dont define one delegate for each control. Some thing like to ha... more >>
DOS window in a c# .Net app.
Posted by dave_m NO[at]SPAM aspekt.com at 2/10/2004 7:07:39 AM
Hey there. Does anyone know of a way (hack or not) to embed a DOS
window in a c# windows form (like embedding a user control for
example). The DOS window must give full command line access and be
able to run console applications that interact with a user.
Any help appreciated. Dave.... more >>
Copy/Cut/Paste
Posted by erin.sebastian NO[at]SPAM cowaninsurancegroup.com at 2/10/2004 6:34:26 AM
Hi All,
I would like to put a method for copy, cut and paste into my
application and this seems to be easy enough except that it's not
working the way i would like it to, I thought someone might be able to
give me a bit of insight and for that I say Thank You in advance!
this is what I have s... more >>
defining math function at run time
Posted by philippe mordellet at 2/10/2004 5:46:10 AM
hello everybody
is it possible to ask the user to write a math function (ie : y = ax + b) in a textbox, and use this function to plot the curve in a window (how do Mathematica guys manage this, since its possible in their program ???
thanks for your kind help
philippe mordellet -))... more >>
OwnerDrawn List Box
Posted by ilya at 2/10/2004 5:46:06 AM
Hi
I am making a new listbox which will give me the ability to put in a title on one line, a number on the side for each item, and a description that would textwrap if the string length is bigger then the width of the listbox. I am having the problem when it comes to measuring the itemheight. I ha... more >>
ANN: New C# Video Available
Posted by Wade.Beasley at 2/10/2004 5:33:01 AM
Please check out our newest C# Training Video on C# OOP Inheritance and
Polymorphism. Please rate it and leave us comments.
http://www.vtmag.com
Thanks,
Wade Beasley
Visual Training Magazine
www.vtmag.com
... more >>
datagrid
Posted by djozy at 2/10/2004 4:26:05 AM
Pleas
In ASP.NET applicatio
1.How can I add dropdownlist into datagrid when I press edit button? Is there any way to put dropdownlist in datagridcolumn instead textbox
2. I put paging to my datagrid but I don't know what code and where I need to write that when I press, lets say 2nd page, datas s... more >>
Multithreading Socket Problem
Posted by rekcut11 NO[at]SPAM excite.com at 2/10/2004 4:17:55 AM
Hi,
I am trying to implement a ping client that is multithreading. The
approach I have used is to create a ping class which I instantiate
from the main thread and which contains a method "SendPingAsync" that
calls the Send method using an asynchronous delegate, so as to queue
the send method ... more >>
Getting Css to "hit" the text
Posted by Nat at 2/10/2004 2:20:09 AM
Hi, I've got this code (which have beeb giving me lots of trouble...).
It's a .NET webapplikation project, written in C# - and now with some
Javescript written in to it:
--------------------
protected override void Render(HtmlTextWriter w)
{
if (helpString!=null)
{
w.Write("<span class='to... more >>
feature question
Posted by Kamen Yotov at 2/10/2004 2:12:32 AM
hi all,
i first posted this on
http://msdn.microsoft.com/vcsharp/team/language/ask/default.aspx
(ask a c# language designer) a couple of days ago, but no response so far...
therefore, i am pasting it here as well... enjoy!
(you can skip to the source at the end of the message if you like...)
... more >>
read MS-DOS text file
Posted by Abel at 2/10/2004 2:01:06 AM
Hi to all
I'm trying to read an old MS-DOS text file, using a StreamReader, but I can't retrieve the original text, I have used all the possible encoding UTF-7,UTF-8, Unicode and ASCII. How I can do it
Thanks
Abel... more >>
|