all groups > c# > august 2003 > threads for tuesday august 26
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
Visual C#
Posted by Hs. at 8/26/2003 11:45:48 PM
Hi All..
I am having small Visual C# code i enter 2 Number and
Asking the user to find there sum..
if he/she enter the correct Answer then an "OK*" word
will be written in the same form and a new Number will be
Intered
, but if not a "Wong*" will be wrotten..
*** the word are writt... more >>
CSharp and VB.NET object, event browser differences in UI
Posted by Alex Sheppard-Godwin at 8/26/2003 10:03:24 PM
In VS when your working on a VB code module for a web form you can see a
list of object in the left hand drop down list above the code window and
possible events in the right hand drop down list.
In C# you only see the class name, so getting a code template for an event
is more difficult.
Is ... more >>
putting text info from DataGrid ButtonColumn into a cookie
Posted by Mark Jones at 8/26/2003 10:03:21 PM
Hi All,
I'm currently having difficulty putting the text from a selected link in a
ButtonColumn from a DataGrid into a cookie. The idea is that a user selects
a group link from this column and is taken to the group page, where the
group link they have just selected is used to populate the page... more >>
hello, last eval method in c#???
Posted by Microsoft at 8/26/2003 6:59:57 PM
hello,
I am with problems to convert one string into object,
I want a function type the Eval of before. can help me?
... more >>
Drag-n-Drop
Posted by VR at 8/26/2003 6:35:22 PM
I am trying to use a custom cursor during drag-drop
operation between 2 ListViews. So, I have a code that at
the time GiveFeedback() is called creates a new cursor
based on the icon and text of the dragged item:
private void listView2_GiveFeedback
(
object sender,
System.Windows.F... more >>
drawstring method doesn't work with all printers
Posted by robert NO[at]SPAM oparnica.com at 8/26/2003 6:19:48 PM
I have been doing some simple tests, based on the code given in the
MSDN example, with additions to select any of the printers available
on my machine.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDrawingPrintingPrintDocumentClassTopic.asp
Everything... more >>
Best way to convert byte array (from TCP socket) to C# Object?
Posted by zvi NO[at]SPAM zvis.com at 8/26/2003 5:33:52 PM
Hi All,
Basically my situation is this, I have a server implemented in C++,
unmanaged code, using proprietery protocol over TCP/IP to communicate
with the cilent(c++ also).
Now, I am implementing the another client in C#. Server side can not
be
changed :(
So, I am using tcp/ip sockets. In the... more >>
Delegates and Event
Posted by NotYetaNurd at 8/26/2003 5:25:46 PM
Hi all,
I am really confused about delegates and events can you ppl give me the
difference between these...
Regards,
....
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
debug program
Posted by VM at 8/26/2003 5:20:40 PM
How can I debug an application during execution? I'm trying to find a way to
look at the contents of a variable through the Debug window (like in VB6).
Thanks.
... more >>
ImageList problem?
Posted by qushui_chen at 8/26/2003 5:16:11 PM
How can i let ImageList control contain Image in use show the Image really
size.
I see the ImageList have set ex:Size(255,255);
... more >>
from within an assembly, How to get its name and path?
Posted by José Joye at 8/26/2003 5:04:03 PM
Hello,
What is the easiest (and cleanest) way to get from within an assembly
information such as assembly path and name.
eg:
current assembly is:
C:\temp\blabla.dll
I just want to get this "C:\temp\blabla.dll" string back.
Thanks,
José
... more >>
Delegates and Worker Threads, Episode II
Posted by joey.powell NO[at]SPAM goldcoinc.com at 8/26/2003 4:47:49 PM
Re: Original post = Windows forms - how do I get them to render/update
properly? from August 22.
Okay I am making some progress with being able to use delegates to run
my shelled processes on worker threads. Yes I have gotten it to work,
kind-of - that is I have gotten the shelled processes of... more >>
running an SQL statement directly from C#
Posted by VM at 8/26/2003 4:44:45 PM
How can I run an SQL statement (eg. insert) from within C#?
Thanks.
... more >>
Binding to a c# class
Posted by Jellybean at 8/26/2003 4:37:48 PM
Hello,
I believe it is possible to bind controls on forms to object instances,
rather than to datasets.
I need to be able to do this from Datagrid controls, and text box controls.
Regards,
darkspector
... more >>
Object reference is required
Posted by DC at 8/26/2003 4:18:55 PM
I have created the following abstract class:
public abstract class BaseC
{
protected int _ID;
protected string _name;
protected abstract DataTable GetData(int ID);
// intended to hit data access layer
protected static string GetValue(int ID)
{
DataTable DT = new DataTable();
DT = Get... more >>
Managed c++
Posted by George Ter-Saakov at 8/26/2003 4:13:17 PM
I've created project Class Library for .NET in managed C++.
Now i would like to use ATL but when i include atlbase.h compiler gives me
an error
"unresolved token atlTraceException"
I can nod find which library should i add to the project so that function
name will be linked to the project... more >>
question on namespaces
Posted by Aniket Sule at 8/26/2003 3:32:11 PM
Hi,
I am trying to use a class from one namespace in another via the using
directive. The 2 namespaces have some part of the name in common (A.B.x,
A.B.y). However in the second namespace, I am unable to access the class
from the first without qualifying it, which is what i want to avoid. Any
i... more >>
Thread exception
Posted by Dan Cimpoiesu at 8/26/2003 3:19:11 PM
How can I make to route the exceptions from a thread created by my
Application, different that the Applications thread to the application.
I want that when a exception occures in that thread, the application to be
aware of it and to display that default dialog for exceptions.
Regards
Dan Cimp... more >>
tab control and tab changed
Posted by Lance Johnson at 8/26/2003 2:50:32 PM
I would like for when a tab page changes, that my controls on the previous
tab page would receive a visiblechanged event or some other event so they
are aware of that. We have db locks in some of our controls when they're
visible and so if a tab page is changed, I would like for the control to
... more >>
Add project to Autostart
Posted by timtos at 8/26/2003 2:00:50 PM
How can I tell a setup project to put a file to the startup folder of a user only when he selected this option.
To give the user the possibility to select this option I´ve inserted a two radio button dialog to my setup project.
The button property is called AUTOSTART.
I´ve set the Condition of ... more >>
Intellisense disappeared!
Posted by GC at 8/26/2003 1:37:51 PM
I have a web app with an aspx page in namespace
Abc.WebModules.Vendors.Web. I also have business classes
that are in Abc.WebModules.Vendors.Business. I have
always been able to, in the aspx class, do something like:
Business.Vendors vendor = new Business.Vendors("123");
then, typing vend... more >>
URGENT: How to use C++ APIs in C# application?
Posted by Mustafa Rabie at 8/26/2003 1:16:54 PM
Hi
I am writing and application using C# and i want to use some APIs from an
SDK. I want to know how can i incorperate the libs, .h etc to the C# file
and use the apis.
Thanks
Mustafa
... more >>
kerberos
Posted by zerdust at 8/26/2003 12:57:53 PM
I want to create kerberos security for web-forum. Does anybody know what I
need and What I have to do?
... more >>
[C#&ASP.NET] javascript
Posted by Darko³ at 8/26/2003 12:40:43 PM
In my web aplication I recover a list of members from a DataGrid. A colum of
the DataGrid is a TemplateColumn that call a javascript function that ask to
the client a confirm (a simple pop up) and then call the DeleteUser method
for the member cancellation. The javascript function seems to be cor... more >>
How to catch scalar error?
Posted by martin at 8/26/2003 12:22:31 PM
When I execute Scalar and it finds no data,it
cannot be trapped. Function with scalar returns nothing
instead of value in catch statement.
... more >>
Help with threads/delegates
Posted by SamIAm at 8/26/2003 12:15:47 PM
Hi There
I have a method called MyMethod in Class MyClass. Whenever MyMethod is
called I want to fire off a new thread to call another method called
MyEventMethod. I want to fire this method off on a new thread as I don't
want to wait for it to finish processing before returning to my calling ... more >>
assign string to enum member
Posted by Cody Manix at 8/26/2003 12:12:44 PM
is there a way to explicitly assign a name to an enum member?
what about internationalisation? one must be able to change the text.
i'd like to implemtent it this way:
enum Color =
{
Red="Rot",
Green="Grün",
Blue="Blau"
};
--
cody
Freeware Tools, Games and Humour
http://www.deutr... more >>
String comparison / modification (Bug????)
Posted by Dim at 8/26/2003 12:10:29 PM
I found that C# has some buggy ways to process string across methods.
I have a class with on global string var and a method where i add / remove
from this string
Consider it a buffer... with some values and separators
class
{
private string globalvar = "";
private void manipulate ... more >>
DataGrid Paging
Posted by Mike O at 8/26/2003 12:03:56 PM
I'm trying to use the automatic paging for the data grid.
When I click previous or next I get no errors, but the
first page is always displayed.
Below is the code. Any help would be appreciated.
HTML:
<asp:datagrid id="dgOwnerList" runat="server"
AllowPaging="True" PageSize="3"></asp:... more >>
Configuration files
Posted by craig at 8/26/2003 11:55:57 AM
Does anyone know how to add an application configuration file to a C#
project from within Visual Studio 2003?
Thanks!
... more >>
What adapter to use for DataSet query
Posted by Andrew Mueller at 8/26/2003 11:08:30 AM
Hello,
Since I cannot query a DataSet directly, and I would like to maintain
it's data, how would I use an adapter (SqlDataAdapter or DataAdapter) to
query this DataSet.
Example: Could I?
SqlDataAdapter adapter = new SqlDataAdapter();
adapter.Fill(myDataSet);
adapter.SelectComma... more >>
Equivalent of Redim
Posted by san at 8/26/2003 11:04:43 AM
Hello
Wht is equivalent of Redim(VB) in C#.
Thanks in Advance
... more >>
Intermittent Hashtable() error: Load factor too high
Posted by gary NO[at]SPAM webguild.com at 8/26/2003 10:34:29 AM
Once a day or so, I receive an error on a fairly active website that
calls this StrMixed.cs method constructor. 99% of the time there is no
exception:
System.Web.HttpUnhandledException: Exception of type
System.Web.HttpUnhandledException was thrown. --->
System.InvalidOperationException: Hash... more >>
FileSystemWatcher is Stable
Posted by Troy Murphy at 8/26/2003 10:14:34 AM
How do I prevent the FileSystemWatcher event to keep firing while the file
is being created? When copying a file to the watched folder, the event
fires a dozen or more times! Also, the documentation states that if more
than one file is copied to the folder at the same time, a cache will queue
... more >>
Create an Application pool in IIS
Posted by Anders Aleborg at 8/26/2003 10:04:11 AM
How can I create a new Application pool in IIS with C#?
Is it possible at all?
... more >>
why does this execute the else clause
Posted by noname at 8/26/2003 9:57:07 AM
char c ='\0';
string cstr = "";
string cstr2;
cstr2 =cstr + c;
//Debugger watch on cstr2.Length shows 0
if( cstr2.Length == 0)
{
MessageBox.Show ("in if",
cstr2,MessageBoxButtons.OKCancel,
MessageBoxIcon.Asterisk);
}
else
{
MessageBox.Show ("in else",
cstr2,MessageBoxButtons.OKCance... more >>
Q: CDO or Outlook?
Posted by Joseph Kormann at 8/26/2003 9:52:47 AM
I'm building an application to retrieve emails. Which is better to use: CDO
or the Outlook library?
Thanks.
... more >>
Converting right alighed Bytes from integers
Posted by Govind at 8/26/2003 9:29:15 AM
Hi All,
I want to Convert 32 bit integers to byte in right alighed format .
For 32 = the usual way is BitConverter.GetBytes(int32)==> xx xx 00 00 , but
i want right aligned like 00 00 xx xx.Is there any way.
Regards,
Govind.
... more >>
UdpClient.Receive never receives anything????
Posted by Morten Overgaard at 8/26/2003 8:56:33 AM
Hi
I'm listening on the SysLog port (514) through UDP. The problem is that I am
not receiving anything nut I know that i get messages on the port. When I
use KIWI to listen on the same port via UDP tons of messages arrive.. What
am I'm doing wrong
My code looks like the following...
priv... more >>
C# math functions much slower than C++ equivalents??!!
Posted by ingmar.evers NO[at]SPAM nibcapital.com at 8/26/2003 8:41:15 AM
Simple comparison tests we have performed show that System.Math
functions in C# are much slower than corresponding functions in C++.
Extreme examples are System.Math.Exp() and System.Math.Tan(), which
both seem to average 50 times slower than their C++ counterparts.
(Tests are done using optimiz... more >>
execution of events
Posted by Jesper at 8/26/2003 6:35:08 AM
Hi,
Background.
In an engineering application I consider using events to
control the flow in the program under the following
philosophy: When a value X change it fires a "i'm
changed" event. A value Y will is a function of X and
will therefore subscribe to X-changed event. Y will
recal... more >>
Single Dimensional arrays
Posted by Sim at 8/26/2003 6:30:44 AM
Hi,
I come from a C background and I heard that in C# single dimensional
arrays are stored in a tree structure internally? Is that true? I know
that's true for jagged arrays but I'm not sure about single dimensional
arrays. Could someone clear this out for me because it's important I
know... more >>
c# com call
Posted by rasa at 8/26/2003 6:19:17 AM
I am able to instantiate and make calls to a com module
that use only primitive data types, but I simply don't
know what the c# equivalent is for a function expecting
short*. Any help would be appreciated.... more >>
converting code from VB.Net to C#
Posted by Mike P at 8/26/2003 5:03:27 AM
How can I convert this code from VB.NET to C#?
Sub dgPopularFAQs_ItemDataBound(sender as Object, e as
DataGridItemEventArgs)
If e.Item.ItemType <> ListItemType.Header AND _
e.Item.ItemType <> ListItemType.Footer then
Dim deleteButton as LinkButton = e.Item.Cells(0).Controls(0... more >>
PerformanceCounter: Only 0% or 100% when get % Processor Time
Posted by Chris at 8/26/2003 4:47:09 AM
I'm trying to do something really easy: just get the % CPU load. However, I
just get mostly 0's sprinkled with an occasional 100. I poked around on
the web for info, but all the stuff I found (I think) does what I have
below. Am I blanking out on something here?
Getting the available RAM w... more >>
Transaction Problem
Posted by Ramesh at 8/26/2003 4:10:55 AM
hi
I am trying to insert random values to the tables.
I will get no.of records value from user, based on that
loop will start to insert records. For this insertion i am
using stored procedure. I am using Transaction for each
insert statement. But when i try to insert it is
displaying "u... more >>
Unique references to MDI children
Posted by BVO at 8/26/2003 3:40:32 AM
I need to keep track of my MDI child forms to activate
any one of them whenever I need to.
There are two possibilities as far as I can see:
- each forms index in the MDIChildren collection
- each forms Handle property.
The first one doesnt offer my a unique reference cause
the indexes... more >>
date conversion
Posted by Reb at 8/26/2003 3:09:11 AM
Hi,
How do i convert this "Sun Jun 29 00:00:00 UTC 0800 2003"
to the normal date format (mm/dd/yyyy).
Thanks
Reb... more >>
Problems debugging multiple projects in IDE when projects are GAC DLLs
Posted by jblake NO[at]SPAM closerworlds.com at 8/26/2003 2:35:15 AM
I can hardly believe I'm the first one to report this, but having gone
through the newsgroup, it appears that way.
I would like to open a solution in the VS.NET IDE that consists of
multiple DLLs and a test application (an .EXE). The .EXE is my startup
application. All the DLLs are shared comp... more >>
Horizontal ScrollBar for Listbox - Webcontrol
Posted by prathima at 8/26/2003 1:39:18 AM
I have a problem in the ListBox - Webcontrol(ASP.NET).
If the length of the string exceeds the width of the
ListBox, I am unable to view the full string, since the
horizontal scroll bar does not exist. How do we include a
horizontal scroll bar for a list box in a web control?
Thanks in advan... more >>
Readonly Property
Posted by Alessandro Rossi at 8/26/2003 12:54:10 AM
Hi,
I will want to find if a control is a type of control that
has the "ReadOnly" property.
Who can help me?
Thank you so much
Alessandro Rossi... more >>
Editing DataSet
Posted by Tony at 8/26/2003 12:50:17 AM
Hello,
I want to edit a dataset returned from a webservice, in the dataset, there
is three columns - DisplayOrder, Location, Time...
What i would like to do is replace the DisplayOrder column with a new column
(called Type), and i would like the column Type to be the first column (with
an index... more >>
"System Volume Information" directory
Posted by Krazitchek at 8/26/2003 12:50:11 AM
Hi, i check all directories on a disk but an error occurs
when i try to enter in the "System Volume Information"
directory.
Is there a way to "jump" this directory without to check
the name of the current directory to verify it's
not "System Volume Information" ?
Or, how to catch this ... more >>
|