all groups > c# > april 2004 > threads for thursday april 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
Word in VisualStudio mit C# benutzen?
Posted by Reinhard Vornholt at 4/22/2004 11:35:55 PM
Hallo,
ich möchte gerne meiner Windows anwendung ein Control spendieren in dem der
User WordLike Texte eingeben kann. (RTF reicht nicht). Gibt es ein control
welches dies kann? Ich kann ja auch z.B. einen WebBrowser Control benutzen,
aber gibt es auch sowas wie ein Word Control?
Danke
RV.
... more >>
About C#
Posted by msnews.microsoft.com at 4/22/2004 11:05:21 PM
Hello.
Where can I get free or shareware components for C# (Visual Studia)?
... more >>
Trap all errors
Posted by Andrew Banks at 4/22/2004 10:41:43 PM
Is it possible to trap all errors within a web app and do the following
Send the user to another page "Error.aspx"
Send an email to myself with the filename and as much information about the
error as possible.
I take it this would be done in the Global.asax file but not too sure where
to st... more >>
Calling WebService using ServerXMLHTTP
Posted by sujata shanbhag via .NET 247 at 4/22/2004 9:56:14 PM
Hi,
I am using MSXML4=2E0 to call =2ENET Webservice from VB client=2E My=
Webservice returs XML string=2E But if I use ResponseBody to read=
the response sent by WebService, the '>' is converted to ">"=
and '<' is converted to "<"=2E Is there a way to get the XML=
data as it is using ... more >>
Transalate CRC 16 - C#
Posted by silven at 4/22/2004 8:30:26 PM
Can someone get this code working in C# I can't seem to get it to work
here is the originall C++... I converted this code to VBscript at one
point... I don`t know who the original author is... However, I am just
starting to teach myself c# and I am trying to go over an old project I
once did... more >>
JulianDate
Posted by Sueffel at 4/22/2004 8:29:16 PM
I can't find anything decent on how to convert a regular DateTime, or a
string, to Julian Date. Help?
Thanks,
Sueffel
... more >>
Equivalent of JavaScripts escape() and unescape()
Posted by Pavils Jurjans at 4/22/2004 8:09:26 PM
Hello,
I am looking fow C# equivalent of JavaScripts escape() and unescape()
functions. I need to use C# function at the server side and then be able to
use the opposite at the client side.
JavaScripts escape() function converts all non-alphanumerical chars to %xx,
and all unicode chars to ... more >>
Get data out of pointer location
Posted by saya NO[at]SPAM hotmail.com at 4/22/2004 8:08:11 PM
Hi,
I'm stuck at the following (new to C#):
I've data retrieved from an unmanaged DLL, residing at a location
pointed to by a IntPtr variable.
I need the data residing at that location in a string var. How to do
this?
Thanks!
Saya.... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Manifest definition "InterOp.Excel" does not match assembly reference.
Posted by cnathaide NO[at]SPAM yahoo.com at 4/22/2004 8:06:33 PM
Peter,
Thanks for responding to my post.
I have gone ahead and made the fixes, but it will early next week
before I go back to the client site and test the changes.
I will keep you posted.
Thanks again,
Regards
Chris... more >>
MSDN Universal question
Posted by DMan at 4/22/2004 7:32:25 PM
I have an MSDN universal subscription. Is there any way I can add a second
passport login for a recently aquired business partner I took on? I really
don't want to give them my login information!
Thanks
... more >>
progressbar not displaying
Posted by michaeld NO[at]SPAM pretzel.com.au at 4/22/2004 7:27:33 PM
Hi,
I have a progress bar that is instantiated on form_load.
Created this simple button to test the progress bar but nothing moves or shows.
visible is true.... And I cannot see anything wrong...
See code below:
private void button1_Click(object sender, System.EventArgs e)
{
pgPro... more >>
writing to a remote event log.....
Posted by Ollie at 4/22/2004 7:05:29 PM
okay sorry for cross posting but want to see if any one can explain the
solution to this problem for me:
I have a .Net ASP.Net app written in C# that use COM+ components to do some
business processing......
When I have the ASP.Net website and the COM+ components installed on the
same machin... more >>
loading a jpeg
Posted by nsgi_2004 at 4/22/2004 6:55:04 PM
Hello,
I've noticed System.Drawing.Bitmap. I'm wondering if there is an equivalent
class that works with jpegs, or at least loads jpegs and converts them to
bitmaps.
Thanks in advance.
... more >>
Datatable and Grid
Posted by NewBie at 4/22/2004 6:41:02 PM
i have created a datatable and bind it to my datagrid1 to
how can i delete rows by content
for exampl
i have 3 column test1 test2 test3 with a number of rows, lets say 5
in one of these cells of column TEST2 there is a value of "BET" in it
How can i find it and delete that row
Thanks... more >>
Tool or code to display referenced assemblies??
Posted by Bob Rock at 4/22/2004 6:00:41 PM
Hello,
is there a tool around that given an assembly shows the referenced
assemblies???
Any code snippet to do this programmatically???
Regards,
Bob Rock
... more >>
HScrollBar
Posted by Alberto at 4/22/2004 5:34:32 PM
I have in the minimun property of a hscrollbar the value -50 and in the
maximun 50. The Maximun value that the bar gives me is 41. Why?
Thank you.
... more >>
GDI+ repaint
Posted by MAY at 4/22/2004 5:27:10 PM
hi,
i need to drag the form outside the screen to see the line that i drew.
how can i repaint the form when i draw something on it.
THANKS!
MAY
... more >>
purpose of 'finally' ?
Posted by Chris at 4/22/2004 5:07:23 PM
Hi,
regarding exception-handling :
why put code in a 'finally' block, and not just after a 'catch'-block -->
Example using 'finally ' :
try
{
OpenFile();
}
catch (Exception exc)
{ ... }
finally
{
// Code put here to make sure that file will be c... more >>
garbage collection of open resources
Posted by Mark Broadbent at 4/22/2004 5:04:36 PM
Everything I have read suggests that if I open files or database connections
or the like, that I should explicitly close those said resources before
making the object subject to GC. This is obviously good programming
technique.
However what happens if this practice is not followed. e.g.
that ... more >>
Response Object Problem
Posted by Steve Bishop at 4/22/2004 4:22:53 PM
I have a form with a search box that uses an OnTextChanged to query a DB
and populate a datagrid. Alternatively, I have a search button to fire
the same code. When I click on the edit link on my grid, it fires a
Response.Redirect to another form page.
The problem is when I return to my origina... more >>
ConfigurationSettings
Posted by Derrick at 4/22/2004 3:58:00 PM
Is it possible to add custom props to an app config file thru
ConfigurationSettings.AppSettings? I try what looks like the add or set
methods on AppSettings and keep getting "Collection is read only".
Thanks again!
Derrick
... more >>
"Index was outside the bounds of the array" error out of nowhere
Posted by et NO[at]SPAM tourclub.ca at 4/22/2004 3:50:52 PM
Hello all,
I've been trying to figure this out for a few days now, and still have
no clue what's going on...
I have a few related tables in MS Access (Clients, Cars, Sales), and a
datagrid, binded to dataview.
Here's a catch - whenever I select a client, and then find a car which
belongs to th... more >>
Creating Forms in a Callback
Posted by Dennis Burns at 4/22/2004 3:17:58 PM
I've posted this question before, and since then I've tried a variety of
work-arounds, with no success. So, here goes again...
I'd like to create forms and open them from within a callback function
in managed code. To be more specific, when I connect my USB device, I'd
like the driver, impleme... more >>
Selecting class at runtime
Posted by Daniel Bolege at 4/22/2004 3:00:47 PM
Hello,
I've a problem that drives me crazy. There must be a simple solution, but I
just can't see it. The following code is just a simple example that
demonstrates my problem:
I have an abstract class named "Human" containing members that all derived
classes will need. "Human" does not know... more >>
Socket.Receive
Posted by Jason at 4/22/2004 2:48:26 PM
Hi all
I have a little FTP proggie. It works, on windows xp, but it doesnt work
properly on windows 2000. The first problem i have, is when retrieving a
list of files.
int bytes = cSocket.Receive(buffer, buffer.Length, 0);
this.message += ASCII.GetString(buffer, 0, bytes);
bytes is retur... more >>
Dumb Escape Sequence Question - String to XML w/Attr
Posted by mravichandran NO[at]SPAM Hotmail.com at 4/22/2004 2:30:19 PM
Dear Readers,
I am trying to construct an XML on the fly based on certain inputs.
I have construct the whole request as string and then send it across.
I need to have the following:
<ARCXML version="1.1">
<REQUEST>
..
</REQUEST>
</ARCXML>
how to get the "1.1" as a part of my ... more >>
Session timeout
Posted by Denis Gorbachev at 4/22/2004 2:18:26 PM
Hi,
In my ASP.NET application I try to set the session's timeout to 24 hours
(1440 mins). I do it on login page. But after 20 mins the application
creates new session again! I changed IIS session settings too, but it did
not help =(
Can anybody help me to set a great value of the session's ... more >>
Did GC eat my mutex? Why did Mutex need to be static?
Posted by Ed Sutton at 4/22/2004 2:18:23 PM
I use a mutex to disallow starting a second application instance. This
did not work in a release build until I made it static member of my
MainForm class.
In a debug build, first instance got ownership, second did not and
terminated. In a release build, the second instance *also* got
... more >>
re. How to prevent referencing the COM object after each compile
Posted by Phil Bradbury at 4/22/2004 2:08:14 PM
I'm writing a COM object in C#, and testing in Excel. However, every time
the COM object is compiled the reference needs updating in Excel.
Does anyone know how to stop this??
Thank you
... more >>
Multiple Screens
Posted by Troy Fillerup at 4/22/2004 2:05:22 PM
Hello,
I am writing a program in c# that will be running on a system with multiple
screens. I would like to run my program on one screen and then force all
other apps onthe system to come up on the other screeen. Is there any way
that I can detect when another program is launched so I can mo... more >>
Remoting : data exchange problem
Posted by vijay at 4/22/2004 1:51:17 PM
Hello
I have a Windows forms application AppNET, that has a remotable object
A VC++ application APVC is invoking a remote method on the .net remotable
object in APPNET
Ex Remote method SetInfo(string strName)
This name has to be displayed in a form that is displayed
Problem is, I am not... more >>
Making a business objects collection grid-bindable
Posted by Marc Scheuner [MVP ADSI] at 4/22/2004 1:36:53 PM
Folks,
Has anyone done this before? (I'm sure some of you guys have)
I'd like to make sure our business objects and collections thereof are
created in such a way that we can connect them to a datagrid just as
easily as a DataSet/DataTable.
What interfaces does the business object have to... more >>
using goto in nested loops
Posted by cody at 4/22/2004 1:24:01 PM
for (int serie=1; serie < TurnierGruppe.AktuelleSerie.Serie; serie++)
{
//outer: here is works
foreach (Tischbesetzung tb in
TurnierGruppe.Serien[serie].Tischebesetzungen)
{
for (int i=0; i<tb.SpielerAnzahl; i++)
{
if (tb.Spieler[i].Spieler==this)
{
gespielteSe... more >>
Modifying a type at runtime
Posted by Richard Dutton at 4/22/2004 1:15:13 PM
I would like to be able to modify a type at runtime so that I can add an IL
prologue and epilogue to its methods (either to implement some kind of
aspect-oriented programming framework, or a simple profiling tool). I know
that a simlpe way to achieve the same behaviour, at least for a type's
vir... more >>
Escape regex to normal string
Posted by FrzzMan at 4/22/2004 12:34:13 PM
Hello,
Is there any function that automatically escape all regex operator in a
string? So that the string that contain regex operator will be
identified as a *string*, not a *regex pattern*.
If there's no function like that, if you have time and it is not so
complex, can you help me code... more >>
String / Character Conversion Question
Posted by anon at 4/22/2004 11:37:47 AM
How can following two statement be the same?
(1) using System.l1001
(2) using System.Globalization;
That is, how does the compilier know these two representations, at the using
declaration level, are the same?
Thanks.
... more >>
DrawImage draws faded image
Posted by Frecklefoot at 4/22/2004 11:36:30 AM
I'm using DrawImage() to copy one image onto another, larger one. I'm using
a DrawImage() overload to stretch the source image onto the destination.
The problem is that when it draws the stretched version, it fades off on the
right--it becomes transparent. While an interesting effect, it is not... more >>
How to "Beep"
Posted by YeeCN at 4/22/2004 11:07:02 AM
Hi,
Can anybody tell me how to play a "beep" sound or any other sound at all in
C#?
I thought it would be easy but I have been searching up and down....
Thanks a lot.
Best regards,
Yee
... more >>
Grid PLEASE HELP
Posted by Newbie at 4/22/2004 11:06:03 AM
Could someone help me with a solutions to my problem
My situation is as followes. my program receives data which includes firstname, lastname, age, and date. i dont know how many people will be added and delted . What i would like to know is how can i display and delete this data on a grid or b... more >>
http uploading additional info has to be sent..
Posted by Jason Gleason at 4/22/2004 10:53:52 AM
I'm trying to set up an http upload program that has almost identical code
to the following page:
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemnetwebclientclassuploadfiletopic.asp?frame=true
The one difference is my "uploader" is a windows form app that basically
does the ... more >>
nextresult
Posted by frazer at 4/22/2004 10:45:24 AM
i want to execute 2 stored procs and get teh result using nextresult.
this gives me an error
sqlCommand.CommandText ="spProc1; spProc2";
is that possible to execute 2 stored procs or can we just execute 2 or more
sql statements
and use nextresult on it?
thnx
... more >>
manual datagrid tutorials?
Posted by Angel at 4/22/2004 10:42:00 AM
Are there any tutorials on datagrids? I need to do lots of processes with my
datagrid (find data and display rows, find/replace, column sort, etc...) and
I haven't found a source for doing all of that. Since these are manual
datagrids (don't have a datasource) and they're already filled with data... more >>
array
Posted by frazer at 4/22/2004 9:51:00 AM
hi i am trying to use string arrays to store values from the db
string users="";
while (sqlDataReader.Read())
{
users = users+ sqlDataReader.GetString(1) + ",";
}
string [] users1 = users.Split(',');
rather than first use a string to store the roles and then put them in a
string a... more >>
PDF VIEWER OCX
Posted by Ariel Gimenez at 4/22/2004 9:48:50 AM
Hi, i need to be able to display pdfs in a winforms app using c# somebody
can reccomend to me some activex to do this task?
thanks in advance
... more >>
Listview (slow when adding items)
Posted by cybertof at 4/22/2004 9:05:47 AM
Hello,
Is there a solution to the following problem :
When filling a listview (30 columns) with around 5000 items, it can take
easily 10 sec for the listview to be filled.
I have used BeginUpdate and SuspendLayout but no speed...
Here is a flavor of the code :
MyListView.BeginUpdate(... more >>
OOP design question
Posted by John Wood at 4/22/2004 8:57:09 AM
I have a class (B) that derives from another class (A) - it provides a
specialization of that base class.
It turns out that the base class (A) needs to be replaceable. That is, I
need to be able to plug in new implementations (retaining the same
interface).
I cannot change the source code o... more >>
try/finally with data access code
Posted by RepStat at 4/22/2004 8:51:06 AM
If I have code such a
SqConnection cndb = new SqlConnection(connstr)
SqlDataReader dr = null
tr
cndb.Open()
SqlCommand cmd = new SqlCommand("exec mysp", cndb)
dr = cmd.ExecuteReader()
catch (System.Exception e1) {Debug.WriteLine(e1.Message);
finall
if(dr != null) dr.Close()
... more >>
Exceptions and performance hit
Posted by RepStat at 4/22/2004 8:51:04 AM
I've read that it is best not to use exceptions willy-nilly for stupid purposes as they can be a major performance hit if they are thrown. But is it a performance hit to use a try..catch..finally block, just in case there might be an exception? i.e. is it ok performance-wise to pepper pieces of code... more >>
Marshaling Multi-Dimensional Arrays
Posted by Thomas Kent at 4/22/2004 8:21:06 AM
I have a dll that is expecting a 3x3 array which I'm am using DllImport to access. In addition, this array is located in a struct that is getting passed. I'm having problems that I think are located somewhere in how I'm marshaling it. Any input would be appreciated.
(examples are shortened for ... more >>
Where to go for Help
Posted by george r smith at 4/22/2004 8:13:20 AM
Where do we go for help and suggestions on eConnect.
thanks
... more >>
Applications Server from Microsoft
Posted by Mario Reiley at 4/22/2004 8:01:04 AM
Hi, Group, Which would be of the equivalent J2EE of Applications Servers
like (JBOSS,BEA,JONAS) from Microsoft.
please let me know.
Best Regard
MArio
... more >>
Invalid URI
Posted by Chris McIlvoy at 4/22/2004 7:26:02 AM
Here is my line of code
Page.Response.Redirect("http://about:blank")
Here is the error I am gettin
Invalid URI: The hostname could not be parsed.
Could someone please explain? ... more >>
Managing the order of multiple Events link to a single Event Handler
Posted by Sylvain at 4/22/2004 7:21:08 AM
Hi All
I need to add a new event at the beginning of an event handler
e.g.: I've got a textbox which is assigned an event at design time to the TextChanged eventhandler, but I need to add a new event to it from an other class during run time, and this new event has to be called BEFORE the event a... more >>
different forms
Posted by Michael at 4/22/2004 6:08:05 AM
Hi, I am writting a C# application, not webform
My application has baseform and 4 other forms,
my problem is how to pass the value or data of the textbox from 1st form to
the label or listbox on the last form
all of the forms are inherted from the base form.
I know I can create a global variabl... more >>
passing pointer reference to structure with array
Posted by homer_simpson NO[at]SPAM gmx.de at 4/22/2004 4:55:06 AM
Hi!
I have a problem which is quite tricky.
I need to pass a struct from .NET to a native Win32 DLL.
But i just need to pass the pointer to a reference of that struct.
With my first struct this worked pretty well, accepting to write
unsafe code ;-)
But my next struct has an array inside and I ... more >>
Retrieve POP3 Mail Headers
Posted by Barney Nicholls at 4/22/2004 4:40:11 AM
Is it possible to retrieve the headers only from a pop3
mail server.
I can currently retrive the message id and size but would
like more information ideally the following:
Subject
From
To
Before downloading the mail from the server
Thanks in advance
Barney... more >>
[?] How can I use a C# assembly on a web client?
Posted by spina NO[at]SPAM tecnolink.it at 4/22/2004 3:10:53 AM
I need to make the client (Internet Explorer) rua a class that I have
defined in an assembly which obviously is placed on the server in the
"bin" folder under the web root.
How can I use that object from client side script?... more >>
Formless Windows Application
Posted by aamiriiui NO[at]SPAM hotmail.com at 4/22/2004 3:10:50 AM
I have created a windows application in C#,It has a window's form but
nothing to show on that form , now i need to make my that applicaion
formless so that it can run in the background. Waiting for reply.
Thanks... more >>
|