all groups > c# > october 2003 > threads for wednesday october 22
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
NetworkCredential and WindowsIdentity
Posted by Prathiraj at 10/22/2003 11:16:16 PM
Hi All,
I'm trying to access a web page from C# code. Since I'm
behind a firewall/proxy, I creat a webproxy and
NetworkCredential to access the web page. It works fine.
In this way, I have to give the username and password for
creating the NetworkCredential object. Is there anyway
that... more >>
How can I keep the session?
Posted by YangGang at 10/22/2003 10:24:05 PM
I do a programming to access a website, Using C# 's
webrequest object,but when I access other webpage,the
session is ended.How can I keep the session.
Thanks a lot!... more >>
The deal with value and reference types
Posted by Javier Campos at 10/22/2003 9:23:52 PM
WARNING: This is an HTML post, for the sake of readability, if your =
client can see HTML posts, do it, it doesn't contain any script or virus =
:-)
I can reformat a non-HTML post if you want me to (and if this doesn't =
see correctly with non-HTML viewers)
Ok, I'm fed up with this so I'll ex... more >>
code re-use, types, and casting question
Posted by ITnerd at 10/22/2003 9:20:16 PM
In the interest of code re-use, I would like to place some code in a utility
class to be used by other classes. The problem is that this code requires
the following snippet:
for(i=0; i < tbl.Rows.Count; i++)
{
myDataRow = tbl.Rows[i];
company.someNestedClass sc = n... more >>
How to use an ASSEMBLY
Posted by michael at 10/22/2003 9:19:40 PM
General:
- Using C#
- Using notepad to program (NOT Visual Studio).
I have a code-behind file name 'example1.cs'. I want to use an Assembly
given to me for a project I'm working on. I have put the assembly named
'assembly1.dll' in the /bin directory.
How do I import/load etc the assemb... more >>
C# to Java translator
Posted by Gawelek at 10/22/2003 8:29:35 PM
I have found many Java to C#, byt no onoe C# to Java :(
Gawel
... more >>
Regex to test Alpha characters
Posted by Tim Conner at 10/22/2003 7:12:00 PM
I wrote the following function to test a string for=20
characters from a to z and the "_" character :
public static bool IsAlpha( char Value )
{
Regex regExp =3D new Regex("^[a-zA-Z_]*$");
if (regExp.IsMatch( Value.ToString() ))
{
return true;
}
... more >>
compile error
Posted by LL at 10/22/2003 6:49:35 PM
Hi,
How to fix this problem:
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Specified cast... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Change Datagrid row
Posted by pcPirate at 10/22/2003 6:22:51 PM
Hi,
I have a Datagrid with 4 Columns, 4 Rows. The first column value is '1',
'2', '3', '1'.
i) Is it possible to change the whole Row forecolour into Blue if the first
column's value is '1' ?
Pls advise and thanks in advance.
pcPirate
... more >>
sp_reset_connection
Posted by Dmitry Karneyev at 10/22/2003 6:15:09 PM
Why does ADO.NET use "exec sp_reset_connection" before executing every
statement?
And what does sp_reset_connection do?
... more >>
Can't run DirectX samples
Posted by Paul E Collins at 10/22/2003 6:00:30 PM
I've installed the DirectX 9.0 SDK, but the samples won't run because the
Microsoft.DirectX namespace cannot be found. It isn't in the References
dialogue, either.
What DLLs do I need to add to make the samples run? The documentation
doesn't seem to mention any of this.
P.
--
www.CL4.o... more >>
Join table?
Posted by LL at 10/22/2003 5:05:30 PM
Hi,
My sql join two table, how to call the fill method? thanks.
string sqlStr = "select * from table1, table2";
SqlDataAdapter myCommand = new SqlDataAdapter(sqlStr, myConnection);DataSet
ds = new DataSet();
myCommand.Fill(ds, ?);
... more >>
Killing all thread when closing applications.
Posted by muscha at 10/22/2003 4:57:52 PM
Hi,
I spawns a number of background threads while creating a windows forms
application. I noticed that when I quit the application or calling
Application.Exit, it hasn't really stop. Is there a quick way to say
"terminate all threads and quit"?
thanks,
/m
... more >>
Webservice problem
Posted by TPECHAT at 10/22/2003 4:54:12 PM
I have webservice with over 400 webmethods. The problem is when I start the
client application. The csc.exe starts and compiles a 4 MB C# file in the
Temp folder with the proxy class. Is there any way to disable this. Thanks.
... more >>
How to create web site in IIS using C#?
Posted by Webdiyer at 10/22/2003 4:49:27 PM
Hi,all:
I want to create a web site in IIS from within my setup project,but I
don't know how can I accomplish this?I can create a virtual directory but my
manager asked me to create web site,not virtual directory!Anyone have any
ideas?Thanks in advance!!
... more >>
GetType returns null on a loaded assembly
Posted by Zoury at 10/22/2003 4:45:53 PM
Good day! :O)
I have the following code :
//***
using System;
using System.Windows.Forms;
<snip>
private void button1_Click(object sender, System.EventArgs e)
{
Type type = Type.GetType("System.Windows.Forms.TextBox");
if (type != null)
{
MessageBox.Show(type.F... more >>
Drag and drop
Posted by Thorpe at 10/22/2003 4:33:35 PM
I am currentl writting an c# application but I need a few pointers.
I want to allow a user to drag an image from the windows desktop to my
application. I know this is possible with c++ but can this be done in c#. I
have looked into AllowDrop and dragevents etc but this only allows the
applicat... more >>
how to create a locked method
Posted by Saper(ek) at 10/22/2003 4:24:45 PM
in java I could write a synchronized method like this
public synchronized MyMethod()
{
blablabla
}
how (and if) can I do this in C#?
--
"Zeglarstwo jest koniecznoscia
zycie nia nie jest"
www.saper.infra.pl/
Saper(ek)
... more >>
OMG VB.net more efficient than C#??
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 10/22/2003 4:23:08 PM
I was viewing some strange behaviour in c# so I tried a
comparison in vb.net
A simple 1 line console application written in both c# and
vb.net (One line meaning one line in the main function).
Console.WriteLine(100L)
It appears vb.net declares a 8 byte long and stores the
value into i... more >>
Very strange error when running debug code
Posted by tbrown92030 NO[at]SPAM kaxy.com at 10/22/2003 4:06:11 PM
I am seeing a very strange problem as follows...
I have a loop where a fair amount of processing is going on and near
the top of the loop I access a class that has only static helper
functions to perform some calculations. After some number of
iterations, randomly, I'll get an uncaught Null... more >>
CrystalReport problem
Posted by Vlatko at 10/22/2003 3:51:53 PM
I have made a simple application in C# that prints a txt file using
CrystalReport. On my PC everything works fine but when I run my app on
another PC it collapses. I get message: "Cannot find KeycodeV2.dll, or
invalid keycode." What is keycode? I created setup program to install my app
on anothe... more >>
Infragistics UltraWinGrid - Color row based on column value?
Posted by newsgroper NO[at]SPAM yahoo.com at 10/22/2003 3:51:16 PM
I am evaluating the infragistice ultrawingrid. Does anyone know how I
can color a row based upon a column value?... more >>
Casting Object into string[ ]?(Repost)
Posted by Nathan at 10/22/2003 3:37:14 PM
Hi:
Here's what I am trying to do, pass a string array between
two pages using Server.Transfer method:
Sending page I do this:
private string[] arrFCInfo=new String[5];
//Property - read only public
public object arrayFC
{
get
{
return arrFCInfo;
}
}
In the receiving page, I want... more >>
Can Regex do this ?
Posted by craigkenisston NO[at]SPAM hotmail.com at 10/22/2003 3:10:42 PM
I have the sudden need to split a text that may have any of the
following tokens :
Words with quotes or double quotes.
Words with no quotes at all.
Numbers with and without decimal points, no commas allowed, but may
contain parenthesis which I would like to keep apart to drop later.
They m... more >>
Sorting Arrays
Posted by Durand at 10/22/2003 2:51:26 PM
Hi all,
I am using a sort method from Array class to order in ascending way. What
can I do to descending way using same sort method?
Thanks
Durand
... more >>
print out datagrid from web pages
Posted by Holly at 10/22/2003 2:40:20 PM
I have a datagrid that displays data in a web page. Is it
possible to create a print() function that print out the
datagrid or somekind of report created base on the
datagrid? I know if it is a window form, it can be done.
But this is on the web page. Thanks
Holly
... more >>
How to build 3D-graphics in VC# .NET?
Posted by Dr. Zharkov at 10/22/2003 2:25:38 PM
Hello. Inform, please, how to find the programs on building the 3D-graphics
of function z=f (x, y) and only for Visual Studio .NET: Visual C# .NET,
Visual Basic .NET or Visual C++ .NET and GDI+ (without use DirectX, OpenGL
and similar packages)?
Beforehand many thanks for your answer. Best regar... more >>
Creating events
Posted by Richard at 10/22/2003 2:24:02 PM
I have 2 forms and one class:
FormA has a TreeView and a Menu.
FormB has a Toolbar and a Textbox.
Class has a property Name and a method Add.
When FormA loads I click on my menu and select New, at this point FormB
loads and I type something in the textbox which calls my class and assigns
... more >>
thread safe events
Posted by M. Raab at 10/22/2003 2:14:50 PM
i have a class that contains a method (not static) that is called on an
event by child threads of the class. i assume it is not threadsafe.
is there an attribute that i can set on the method that would cause the
runtime to handle the method in a thread safe way? or do i need to put in my
own loc... more >>
C# verses VB.Net Which Way to go
Posted by Robert Lario at 10/22/2003 2:02:46 PM
C# verses VB.Net Which Way to go. I am sure this issues has come up before.
Please direct me to any good articles that cover this issue. Ideally some
neutral assessment.
Thanks
Robert
... more >>
extrange CS1003 error
Posted by joão_paulo at 10/22/2003 2:02:36 PM
I've made a class generator using CodeDom, and it is=20
working fine, but whem i try to compile the class=20
generated I got some CS1003 syntax errors.=20
But terrible thing is that there isn't any error at all !!
The workaround is to edit the file and add some white=20
spaces, new lines, or re... more >>
writing activex controls in c#
Posted by adam at 10/22/2003 1:34:44 PM
hi
is it possible to write activeX controls in C# and if so
any suggestions of links to sample code would be
appreciated?
thanks
Adam... more >>
Registering An Assembly with the GAC
Posted by Carlson Quick at 10/22/2003 1:27:37 PM
Hi, I am attempting to register an Assembly with the GAC programmatically
from within a C# test system I am writing. Unfortunatly the test user that
the test system is runs under does not have sufficient rights to register an
assembly. I have tried to work around this by using
WindowsIdentity.... more >>
a few form questions !
Posted by Du Dang at 10/22/2003 1:23:15 PM
1. how do i know my form is on top (when topmost == disabled) ?
scenario: user clicked on the notify icon (if form is on top) -> minimize
the form, (if form is not on top) -> bring it to front, else show the
invisible form
2. how do i determine the size of windows resolution ?
i wanna save th... more >>
Correct OOP Behavior or Compiler Glitch?
Posted by Kenneth Baltrinic at 10/22/2003 1:20:43 PM
This isn't a problem from the standpoint that its easy to work around.
However, I am very currious as to the correctness of this behavior.
I am developing an MDI application. In the application I have defined a
Toolbox class deriving from System.Windows.Forms.Form. I want only one
instance o... more >>
Designer support question
Posted by JKJ at 10/22/2003 12:44:56 PM
I have a custom web control that needs a javascript file
to be included as part of the project. I want to have the
control automatically add the file in a specific folder to
the project when the control is added to the designer.
I've been looking for some kind of designer class, but
can'... more >>
How to convert...
Posted by Michel Racicot at 10/22/2003 12:38:28 PM
How can I convert a :
byte [4]
to a
UInt32
?
thank you
... more >>
Referencing VB form in C#
Posted by Steve at 10/22/2003 12:37:31 PM
I have a .NET windows program that has a VB.NET component and a C#
component. The VB component contains the form and handles all the UI stuff.
The C# component drives the engine that actually does all the work.
The VB component has one form called frmX. On frmX are three text boxes
(txtA... more >>
[howto] get the nameserver name?
Posted by Wiktor Zychla at 10/22/2003 12:30:52 PM
In my code I have to query the local dns server for some data. however, I
have no idea how to get the name of the local DNS server.
could anyone point me the right direction?
thanks in advance,
Wiktor Zychla
... more >>
Waiting untill the Web Form loads,while loading showing something else..
Posted by Coskun Cavusoglu at 10/22/2003 12:27:11 PM
Hi,
What I want to know is when a user clicks on a button I send him to another
page by using the Response.Redirect("") method. But the page that the user
is being sent to has to generate a picture so it takes time.. I want to show
a loading messeage there until the Newpage loads.. Anyone got ... more >>
[howto] Create string array from column in dataset
Posted by schow NO[at]SPAM symcor.com at 10/22/2003 12:13:57 PM
Hi guys,
I was wondering how I would go about creating a string array from a
single column from a dataset. What I was thinking was iterate through
each row in the dataset, finding out the size and create a string
array, and then foreach row in the dataset populate the string array
one item a... more >>
Regex help
Posted by Stuliet at 10/22/2003 12:07:07 PM
Can anyone suggest how to match the following lines with regex
I have three basic patterns of text
1. A 1-8 digit code eg, 12345678 or 1234
2. A range specification eg, 1234:7890
3. A wilcard specification eg, >1234 or <=45678
So I want to test the following strings to see if ... more >>
System.Web.Mail
Posted by Chris at 10/22/2003 11:44:15 AM
Hi,
We have the latest version of Visual Studio installed on two machines.
Both give an error when trying to use System.Web.Mail
"The type or namespace name 'Mail' does not exist in the class or
namespace 'System.Web' (are you missing an assembly reference?)"
According to the mic... more >>
Insert, Crop META-Tags programmtechnically
Posted by Jazper at 10/22/2003 11:38:42 AM
hi
how can i Insert, change and crop META-Tags auf a Webform
programmtechnically?
Regards
Jazper
... more >>
Accessing outlook object model
Posted by Girish NS at 10/22/2003 11:37:19 AM
Hi,
I'm trying to store appointment data to outlook appointments from a c#
application. So I'm using outlook object model thru COM interop. But in the
applicaton some of the methods like GetNameSpace() are missing.
I want to know while creating wrappers for COM out of process servers are
al... more >>
What is the difference between a Method and a Function?
Posted by BillyTheKid at 10/22/2003 11:29:07 AM
I am a little confused on the sematics here. Is a C# "Function" simply a
"Method" that returns a value?
... more >>
Datagrid - Windows Application
Posted by Jean Carlo at 10/22/2003 11:26:32 AM
Hello guys
I`m developing a windows form that contain one Datagrid.=20
In this datagrid I insert a checkBox Column. I need to get=20
all rows where checkbox is checked by user.
How do I get this rows ?
I can=B4t use the DataSource of Datagrid because I don=B4t=20
have a Column source for che... more >>
Help needed - unwanted regular expressions returned in query
Posted by msh NO[at]SPAM plantdata.com at 10/22/2003 11:26:05 AM
I am using a small function to return information from an Access
database.
Whether I use xml formatted text or otherwise, the results are
returned to me in a formatted way. I'm new to C#, so I'm not certain
if I'm missing something or this is just the tough breaks with this
language. What I n... more >>
C# compiler
Posted by Jack at 10/22/2003 11:07:40 AM
Is there a way to compile C# code into a native image?... more >>
quickstart db sample?
Posted by LL at 10/22/2003 11:05:15 AM
Hi,
I'm trying datagrid9.aspx sample:Updating a Row of Data w/ Validation.
But after I set the paging property, when I click the page number, it won't
go to the next page. Any ideas?
Thanks...
... more >>
check if string contain substring
Posted by Ivan Demkovitch at 10/22/2003 10:36:32 AM
Hi!
I would like to check if string contain specific substring.
How to do it?
P.S. I've done something stupid like
String.Replace
If str1<>str2....
... more >>
aximp of SHDocVW.dll problem
Posted by or_lavy NO[at]SPAM hotmail.com at 10/22/2003 10:35:33 AM
Hi there,
As mentioned in message "aximp of shdocvw.dll -> problem with
ShellExecute" posted before, aximp creates two files:
AxSHDocVW.dll
SHDocVW.dll
The second has the same name as the original dll, and that makes
problems with internet explorer.
The offered solution was disass... more >>
Object Pool vs Thread Pool
Posted by Mullin Yu at 10/22/2003 10:17:30 AM
I want to know what're the main differences between them.
In fact, I want to write an application to get the request from DB, and then
based on the request type (print, email, fax), and then send to print or
email or fax objects to send the request out.
In order to increase the performance, ... more >>
Tab Control Bug
Posted by Laszlo Szijarto at 10/22/2003 9:50:52 AM
When I use the Tab Pages Collection editor, invoked from the Properties of a
TabControl, I try to shuffle the order of the pages around, and it does not
work. I had to go into the "Windows Forms Designer generated code" and edit
the order manually.
In addition, there was a project where I mad... more >>
Sorry, this is a test
Posted by sasha at 10/22/2003 9:48:03 AM
Sorry, this is a test
... more >>
Apply File Summary Properties?
Posted by poi at 10/22/2003 9:45:16 AM
Looking for any information on setting file summary properties to
Microsoft Office and Adobe Acrobat files. For example, I would like to
implement a FileSystemWatcher-launched program that stamps any file with
"copyright blahblahblah" in the Comments or Company Name fields.
Thanks.
***... more >>
Bug in Debug.Listeners?
Posted by Fred Mellender at 10/22/2003 9:45:11 AM
When I code:
Debug.Assert(false, "this is a message");
it works fine, and out comes the dialog box.
When I code
Trace.Listeners.Clear();
Debug.Assert(false, "this is a message");
No message is output.
In the debugger I see that clearing the Trace Listeners clears the Debug... more >>
test
Posted by joecool at 10/22/2003 9:43:04 AM
this is a test
--
--
WAI, Joseph H.
:-)
Verification Support Engineer
Canonline Media Corporation
Tel. #: (604) 677.6994
Fax #: (604) 677.7010
www.canonline.net
... more >>
Variable naming standards
Posted by BillyTheKid at 10/22/2003 9:33:36 AM
I've noticed that there are many who like to prefix variable names with m
(module/member), n (number), s (string), g (global), etc., however this
seems to be unnecessary with C# IMO. Does anyone have any thoughts or
references to articles discussing naming standards.
... more >>
Input Mask
Posted by Chris Calhoun at 10/22/2003 9:12:53 AM
Does anyone know how to put an input mask on a textbox?
Without using a thrid party control?
Thanks.
... more >>
DataGrid column resize URGENT!!!
Posted by Chris Calhoun at 10/22/2003 9:02:55 AM
How do I make a data grid's columns not resizeable?
Thanks in Advance.
... more >>
I need a tool to view network traffic
Posted by jayderk at 10/22/2003 8:21:08 AM
Hello all,
I am having a problem with one of my desktop applications and was wondering
if any of you know of a good tool I can use to monitor traffic in and out of
my network card?
this is a urgent problem.
regards,
Jay
... more >>
How to get the name of the network card
Posted by m_Seldin NO[at]SPAM mail.ru at 10/22/2003 8:02:27 AM
How do i get the name of the network card in C#?... more >>
Calling assemblies compiled in different framework versions
Posted by Richard at 10/22/2003 7:58:39 AM
I have a service which is used to call differenct versions
of an application depending on the database version that
is being used.
The service has been compiled in framework 1.1 and it
needs to call the current version of the application (also
compiled in framework 1.1) and also historic ... more >>
Setting Treeview Index
Posted by Kelvin Bryant at 10/22/2003 7:31:06 AM
I have tried the following code to set the index for a
node. It seems to work when I use the root node index of
0. When I try a number greater than 0 I get an out of
range error. I made sure that the tree was expanded, as
well.
treeView1.Focus();
treeView1.SelectedNode = treeView1.Nodes[... more >>
Printing in c#
Posted by Senthil Kumar at 10/22/2003 6:59:40 AM
hi Group,
Iam developing one Component in c#.It will load any kind of image either
from Local machine or URL.Finally I do have options for printing and
preview.
While printing Iam facing the problem as below.And iam unable to figure it
out.Do any one come out with good solution is appreciat... more >>
how i can create install of my project
Posted by Cantekin Guneser at 10/22/2003 3:31:34 AM
i wonder how i can create install of my projects, does install include
everything that .net projects requires.
ex:.net framework 1.1 or
i need to install them by myself?
... more >>
convert to DateTime
Posted by thomas.lindroos NO[at]SPAM prosona.com at 10/22/2003 3:28:43 AM
how to convert this???
string strDate = "19701105";
DateTime myDate = System.Convert.ToDateTime(strDate);
ideas anyone
/thomas lindroos... more >>
Socket Communication behind LAN
Posted by yassar_mushtaq NO[at]SPAM hotmail.com at 10/22/2003 3:08:32 AM
I want my P2P application to works well even when users are behind
proxy or LAN.
i.e Two instance of my application should be able to communicate even
if they are on different LANs but indirrectly connected to internet.
To elaborate it further, suppose there is a computer on my office LAN
r... more >>
Accessing Logon Method in CDO
Posted by Manfred at 10/22/2003 2:31:07 AM
I want to access via CDO outlook.
Therfore i have to logon.
In VB.NEt I make it like:
Dim objSession As MAPI.Session
If objSession Is Nothing Then
objSession = CreateObject("MAPI.Session")
End If
If Not objSession Is Nothing Then
objSession.Logon(profileName:="Outlook... more >>
How to: transfer a file to a PPC storage card with c# example code?
Posted by David at 10/22/2003 2:07:45 AM
I need C# example code to transfer a file to a PPC storage card. Not
sure if this function is part of .net or do I need to call an API or
activersync?
Thanks
... more >>
C# chat
Posted by .net Freak at 10/22/2003 12:43:19 AM
Hi, is there any popular C# chat comunnity out there?
Thanx for help
... more >>
How to serialize a System.Windows.Form.Control
Posted by tona121 NO[at]SPAM hotmail.com at 10/22/2003 12:29:19 AM
Is there anybody who can help me to serialize a control
like buttons, textbox, and each other control?I don't
want to inherit from some of those.I try with
SoapFormatter but it tell it can't serialize the control
because it doesn't have the [Serialized] attribute. After
I try with a XmlSer... more >>
Dinamicallt creation of a struct
Posted by Mevar81 at 10/22/2003 12:26:55 AM
Anyone know if is it possible to create dinamically a
struct?For example I want to set the color of a button
while at runtime, and to set it's ForeColor property I
need to read a Xml file where I store the property value
of the button.The color is a System.drawing.Color
struct.Anyone know ... more >>
|