all groups > c# > july 2004 > threads for wednesday july 28
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
A HREF and AXwebbrowser
Posted by nicolas at 7/28/2004 11:42:29 PM
Hello,
Somebody knows how i can simulate a click on a <A HAREF> tag ?
THX
Nico
... more >>
Assembly files
Posted by Monte Chan at 7/28/2004 11:41:17 PM
Hi all,
I am a newbie in C#. I am trying to learn C# by reading "How to Program C#"
by Deitel and Deitel. One of the examples in the books shows that I can
compile the codes into a .dll file and then do a "using MyClassName;" to use
the class. My question is, do I need to register the .dll ... more >>
Property VS Variable ??
Posted by Bobby at 7/28/2004 11:16:00 PM
Hi all...
What is the different between using property and variable?
Their all functionality is same (for store a value). I get this issue when I
want find the best way to passing a parameter between form (Windows
application).
And, what is the best way to passing value to other form?
Th... more >>
printing on the right side of paper
Posted by G.Esmeijer at 7/28/2004 10:33:32 PM
Friends,
I'm (a bit) dissapointed about the printing possibilities in c#. It could
also be lack of knowedge.
I would like to align a text on the right side of the paper when printing.
For example
tekst = DateTime.Today.Date.ToString("dd-MM-yyyy");
// asign content to the variable tekst
... more >>
Nullabe type c#
Posted by Lakshmi Narayanan.R at 7/28/2004 8:46:03 PM
Hi Experts,
Can we test the sample for nullable type c# with .Netframework 1.1. Is this is going to with VS.NET2005?. What is required to work with Nullable type now.
Sorry for this very simple Qtn.
Regards
Laks.R... more >>
windows service - installutil.exe
Posted by scarred wind at 7/28/2004 7:59:44 PM
when i run my program, an error message prompt me that i should add the
installutil.exe. How do i checked for the installutil.exe? How can i add
it to my Timer program?
----------------------------------------------
when you fear to fail, you fear something that
has not yet happened.
*** S... more >>
Button to interupt a foreach loop?
Posted by Dave Spencer at 7/28/2004 6:56:15 PM
Hi all,
New to this group and to C# in general (experienced in MFC). Anyway I have
a ListView and a foreach loop that is doing something to each item in the
list and updating the list on the screen. I have a button on the screen
that I'll call STOP that is supposed to stop the processing of... more >>
File Drag & Drop From WinForm to Other Apps ??
Posted by Ed Sutton at 7/28/2004 5:32:28 PM
I am looking for a WinForms drag and drop example that shows how to
implement dragging from a WinForm treeView and dropping on another
application. I have drag & drop working from within the treeView.
Example Use Cases:
1 - Dragging and dropping a file on an Outlook email message to add a... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
move large project to 2005 Beta
Posted by Mark Oliver at 7/28/2004 5:12:43 PM
Hi,
I have a large project I wrote in 2003 version 7.1.3088. The project
has 128 .cs files with over 1000 References. When I moved a small utility
over I had to manually remove then reinstall each Reference for each file.
Is there any automated help for coverting 2003 References to 2005... more >>
Add row to datagrid without underlying table?
Posted by Jim at 7/28/2004 5:01:19 PM
is it possible to add a row to a Windows datagrid witthout having a
datatable? I need to add a row to the datagrid control.
Thanks.
... more >>
Career advice (from professionals please)
Posted by Mark Broadbent at 7/28/2004 4:47:52 PM
I am probably be going to offered a job next week as a software developer
in vb.net. However I have concerns as to whether this is a good move
considering I have spent the last 12 months in C#. Jobs in .net are a bit
thin on the ground near me. The job itself seems quite good.
My biggest conce... more >>
Speed Test c# vs. c++
Posted by Jazper Manto at 7/28/2004 4:38:09 PM
hi
i'm looking for a speed test of c# vs. c++.
the test should be representative for mass data production.
it should also include IO operations.
can anybody give me a good link from the internet?
thanx jazper.
... more >>
datasource
Posted by freddy at 7/28/2004 4:35:27 PM
In my Datasource can I use an underscore?... more >>
Math.Round down???
Posted by dlampe NO[at]SPAM amfam.com at 7/28/2004 4:30:51 PM
I would like to round to the whole number. For example 12.98 I would
like this to round to 12. The current statement I have is:
TopSquareRoot = Math.Round(TopSquareRoot);
TopSquareRoot is a Double.
How do I do this?
Thanks in advance - Dan... more >>
DataTable ?
Posted by John S at 7/28/2004 4:26:33 PM
How do I iterate through a DataTable and retrieve the values from each row?
... more >>
Ownership and dispose
Posted by dominicsmith501 NO[at]SPAM hotmail.com at 7/28/2004 4:19:31 PM
This is going to sound like a newbie question, but I have done a fair
bit of C++. I'm just new to C# and .NET. I am trying to work out how
ownership and calls to dispose are commonly used (and what assumptions
people tend to make).
Here is an example, suppose I am writing my own MyListControl.... more >>
MDI Children don't get Focus
Posted by Maqsood Ahmed at 7/28/2004 4:18:54 PM
Hello,
We are converting our product from Dot net Framework v1.0 to Dot net
Framework
v1.1 and experiencing some problems regarding it.
In our MDI Application, any Child window doesn't activate on mouse click in
Client Area, whenever we open/close any Child form that hosts ActiveX
control
(su... more >>
Timer and refreshing the UI
Posted by Daniel P. at 7/28/2004 4:18:18 PM
I'm trying to set a timer that gets called every 3 seconds so I can update a
field in the UI with the time elapsed since the process started.
What am I doing wrong that timerDF_Tick does not get called?
private System.Windows.Forms.Timer timerDF;
this.timerDF = new System.Windows.Forms.T... more >>
Thread unloads fine in "DOS" not Windows
Posted by M D at 7/28/2004 3:42:51 PM
If you want more details you will have to reference the VS.Net example
ConsoleChat for Networking How-to:
--
http://go.microsoft.com/fwlink/?linkid=3480&path=/quickstart/howto/sampl
es/net/TCPUDP/Chat.src
In trying to put it into a Windows form (c#.net, VS 2002) this is my
main:
... more >>
Combo Box 2 values
Posted by John S at 7/28/2004 3:32:02 PM
I need to Show one value in the combo box, but when it is clicked, I need to
save it's corresponding value.
Example:
Show: United States
Retrieve when clicked: USA
... more >>
ThredPool. Too many threads opened
Posted by SMike at 7/28/2004 3:18:18 PM
I use ThreadPool to manage multiple http requests. After a heavy load NT
ProcessViewer shows 64 threads opened. How is that possible?
As I know it could be no more then 25 threads opened per processor. Is there
a way to check if some threads are locked? How can I close them?
Thanks in advanc... more >>
c# and MS Visio
Posted by Piotrek Stachowicz at 7/28/2004 3:14:20 PM
Hi,
A bit off topic, but still... I am writing a project in c# (MS .NET).
There is this nice featrure called 'Reverse Engineer' which allows me to
import all data about my c# classes to the visio project. Then I draw my
diagrams etc. Some time later I add something to my c# project and it se... more >>
Getting .NET version at run time?
Posted by Michi Henning at 7/28/2004 3:11:00 PM
Hi,
how can I find out what version of the .NET run time a
binary is running with at *run time*?
In other words, the goal is to produce a binary that,
when run with .NET 1.0, writes "1.0" to the console,
and "1.1" (or whatever other versions we may have in
the future) otherwise.
I tried... more >>
Design advice needed: loading a DLL and calling the methods in it
Posted by Nick Malik at 7/28/2004 2:44:06 PM
My turn to ask a question
I am working on a plug-in for Sharepoint that will allow a developer to add
workflow rules. One of the rules will inform the adapter that it should
load a DLL that the developer writes, find a method that matches a
particular interface, and call it.
I know, in gen... more >>
Populate DropDownList
Posted by Viktor Popov at 7/28/2004 2:41:40 PM
Hi ,
I'm trying to populate DropDownList from data base but it doesn't work.
Could someone help me!
My code is:
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
SqlConnection conn = new SqlConnection("Data Source=BLEK;Initial
... more >>
Load EXE and run from memory - is it possible in C# ?
Posted by Just D. at 7/28/2004 2:29:19 PM
Hi All,
I have a question. I need to load some EXE file into memory and then find a
way how to run it from the memory without saving to disk. I know that it was
possible in C++ to execute any code already loaded into memory. What about
C#? Does anybody know how to do that?
The main purpose ... more >>
Marshaling an char[] array - Part 2
Posted by MarioSchymura at 7/28/2004 2:03:47 PM
Hi Everybody.
I've got to use the following function of a C++ DLL:
CT_data (
unsigned short Ctn,
unsigned char *Dad,
unsigned char *Sad,
unsigned short Lc,
unsigned char *Cmd,
unsigned short *Lr,
unsigned char *Rsp
);
I've declared the following
[Dll... more >>
OwnerDraw TabPage Icons
Posted by Sean at 7/28/2004 1:55:02 PM
Hi all,
I have few OwnerDraw TabPage icons. The problem that
I am having now is that when another window go over the
icons, they don't redraw properly (meaning you either
cannot see the icon at all or the icon is drawn only half).
Does anyone know how to fix this?
Any suggestion/help wil... more >>
Method based attributes used as delegates
Posted by msnews.microsoft.com at 7/28/2004 12:47:24 PM
I am no expert on attributes, but I have used them, but I am stumped by this
one ...
basically is it possible to get the attributes from a method used as a
delegate?
For example, I have a method called
[TileSizeAttribute(40, 70)]
private void listView1_DrawItem(object sender, DrawListV... more >>
Date problems (UK)
Posted by KavvY at 7/28/2004 12:26:55 PM
How can I get asp.net to display UK dates in a UK format consistently?
If I execute a local development version of my page which accesses a SQL
table the date gets displayed in UK format.
If I transfer the page to the server and access it from my computer the date
gets displayed in a US form... more >>
Admin privilege how?
Posted by SnakeS at 7/28/2004 12:19:09 PM
I do an application that for use it's need administrator privilige. I would
do that if it run which another user (for example power users) my soft take
user and password of administrator. how do I?
Sorry for my bad english :°°°
... more >>
keep it scrolled
Posted by M D at 7/28/2004 11:43:25 AM
System.Windows.Forms.Textbox
Imagine a multiple line text box that never gets focus. For instance
the conversation box of a chat screen.
How can you keep it scrolled to the bottom as lines are added.
Textbox.ScrollToCaret() requires the control be in focus and I would
rather not be swappin... more >>
String conversion
Posted by Mark Rae at 7/28/2004 11:36:50 AM
Hi,
Is there any in-built converter which will convert a string like
markrae
into
markrae
Child's play to write a function to do it, but I just wondered if it already
exists within the .NET Framework.
Any assistance gratefully received.
Mark Rae... more >>
Getting WMI properties from Win32_PerfFormattedData_PerfProc_Process class when searching by IDProcess
Posted by Christopher Attard at 7/28/2004 11:27:06 AM
Hi,=20
I'm trying to run this function which attempts to get 2 WMI =
properties from the specific WMI class for a process with a specified =
IDProcess. It's giving an "Invalid Object Path" exception. The function =
works when I search by process name (in this case WMI path should be: =
... more >>
Help with Windows Media SDK 9
Posted by satya NO[at]SPAM uky.edu at 7/28/2004 11:14:31 AM
Hi,
I want to convert an .mpeg to a .wmv file.
//Creating an Encoder object
WMEncoder Encoder = new WMEncoder();
//Create a Source Collection Group
IWMEncSourceGroupCollection SrcGrpColl =
Encoder.SourceGroupCollection;
//Adding a source to the SrcGrpColl
IWMEncSource... more >>
making Array of objects of a class
Posted by Muhammad Aftab Alam at 7/28/2004 11:04:55 AM
Hello All
The question might be somewhat stupid but I have tried for an hour and could
not get through it.
I am creating a console based application just to begin with C#
following is the code
namespace Student1
{
class ABC
{
private
string strname;
pub... more >>
datagrid datatable problem.
Posted by clyyy2002 at 7/28/2004 10:26:53 AM
At added two column and more column hereafter,I immediately click del
button,the program is no problem.
but if i first click the DataGrid columnHeader and then click the del
button, i find when column is
finally ,a error is happen
underside is my program.
using System;
u... more >>
Attempting to restore a portal when..
Posted by Jason Dunbar at 7/28/2004 10:13:26 AM
Having gone through to 'Site Settings' and then to ' SharePoint Portal
Server Central Administration' and to create a new portal site..
Once on the create new portal site screen, I choose to restore from a
database as opposed to creating a new portal.
I've copied databases from an existing p... more >>
Regex.Match Memory Leak
Posted by Jeff McPhail at 7/28/2004 10:03:07 AM
I am using Regex.Match in a large application and the memory is growing out of control. I have tried several ways to try and release the memory and none of them work. Here are some similar examples of what I have tried...
string testString = "lkf slkdjflksd sdfjlksdjff fsdjlsdfj flk;sjkf";
while... more >>
Crystal report
Posted by Vivek at 7/28/2004 10:01:27 AM
Hi All,
I am using .Net studio C sharp windows application (WinForm). Crystal
reports r running fine..
I want to diplay report with conditions...
Want to pass parameters to CR..
e.g. Start Date and End Date???
Thanx In Advance
Vivek Kumbhojkar
---
Outgoing mail is certified Virus Free... more >>
Singleton Destructor
Posted by Dan at 7/28/2004 8:27:08 AM
All,
I am developing an Object that wraps an old C library. Baeed upon how the object will be used I decided the best bet would be to make the object a singleton.
Additionally, because the object is working with unmanaged resources it should implement a dispose method to ensure that those reso... more >>
How to upgrade Framework in Visual C# 2002 Standard
Posted by Lorenzo Jimenez at 7/28/2004 8:27:04 AM
Hi,
I recently get excited to return to C# and installed my copy of Visual C# 2002 Standard in XP Pro SP1. I did not install the web stuff that need IIS. I installed the Visual Studio .NET Data Loss Fix.
Ok. Now I am confused to where to turn.
Can I install Framework 1.1? Can I use it with 2... more >>
Search for strings
Posted by Sorin Sandu at 7/28/2004 8:22:12 AM
I want to find if a string var is equal with a number of strings.
Something like var1 IN (or ==) "string1", "string2", "string3", ....
Which is the best method?
... more >>
Comparision between Datatable's Select method and stored procedure
Posted by madupu NO[at]SPAM hotmail.com at 7/28/2004 8:11:02 AM
Hi,
Has any one ever compared the performance of calling a DataTable's
Select method with a stored procedure doing the same thing?
My point is:
dataRows = DataTable.Select(filter) is better or
Passing paramters to stored procedure?
The datatable holds about 500-700 rows at any given tim... more >>
Define: Shallow copy v. Deep copy
Posted by Christoph Boget at 7/28/2004 7:49:16 AM
I've looked through the online documentation and I
couldn't find a real explanation as to exacly what is
involved with either of the above or exacly what they
mean.
If someone could point me to the proper documentation
that discusses this topic, I'd be ever so appreciative!
thnx,
Christoph
... more >>
error instantiating Font
Posted by yoder NO[at]SPAM perigee.net at 7/28/2004 7:38:16 AM
I'm trying to set a treeview node font style to Bold:
TreeNode newNode = new TreeNode("Nodename");
Font oldFont = TreeView.Nodes[0].NodeFont; // <---Error occurs here
newNode.NodeFont = new Font(oldFont, System.Drawing.FontStyle.Bold);
oldFont.Dispose();
But it does... more >>
Hide base mambers in an inherited class
Posted by owingruters NO[at]SPAM hotmail-dot-com.no-spam.invalid at 7/28/2004 6:03:09 AM
Hi all,
I'm trying to hide a member from a base class, like so :
public class class1
{
public class1()
{
}
public int i;
}
public class class2 : class1
{
public class2()
{
}
private new int i;
}
This article :
http://msdn.microsoft.com/library/default.a... more >>
[.net service] Read attach file in a email with .net
Posted by ohb NO[at]SPAM email.com at 7/28/2004 5:54:36 AM
Hello,
is someone have a example of c# source
of a service which is reading a attach file
of an email.?
Thank you.
OHB.... more >>
HTML in User Comments
Posted by Ryan Riddell at 7/28/2004 5:35:02 AM
I have a repeater where I output user comments (255 char limit).
I want to give the user the ability to add <i>italic</i> and <b>bold</b> font using standard HTML tags.
I changed the repeater to have a label with id=RepeaterCommentText. I then registered the ItemDataBound event to be handled... more >>
Transparent UserControl Flickers when Form get resized
Posted by Jaikumar at 7/28/2004 3:23:02 AM
Hi,
1) I have created one windows application, In the main form ( form1) i have added one usercontrol (usercontrol1), In that user control i am drawing one image.
2) In the UserControl1 i am showing one transparent form (form3) when ever user preseed left mouse button.
3) The form3 has one tra... more >>
playing with register
Posted by rey17 at 7/28/2004 1:27:07 AM
i've found a way to set up SSID from other forums, but the problem is i have to change the register value at Pocket PC to use it..
so, my question : is there any way to join these register in c# code ..?
i'm kind beginner too at c# programming so please guide me..
thanks... more >>
TCPClient on Proxy
Posted by Abubakar at 7/28/2004 1:14:02 AM
hi,
I work on a computer that is part of a network and uses proxy to connect to net. I cant connect to servers outside my proxy with simple ConnectTo code. I need to know how to make my requests go through proxy. eg,
_socket = new TcpClient("http://msdn.microsoft.com", port);
does not work.
Tha... more >>
Check Decimal Places in C#
Posted by Philip at 7/28/2004 12:44:02 AM
Hi all,
I have a textbox to let user to input digits. After they input, I want to count how many decimal places they input. How can I do?
Regards,
... more >>
window service application
Posted by scarred wind at 7/28/2004 12:37:56 AM
I'm currently doing a window service application in C#.
I'm using a simple timer to run everytime i boot up the PC. the timer is
running well, but the problem is, i can't register it in my Services
from the Administrative Tools >> Services.
how do I convert my Windows Application into a Window... more >>
how to wait for axBroswer DownloadComplete in a loop?
Posted by paul NO[at]SPAM swindell.com at 7/28/2004 12:27:08 AM
I've a wrapper class around axBrowser which logs into a site,
navigates to a data page and harvests info from it.
It works fine for a single data page (passing it a key for the data),
but my next task is to put it in a loop so that I can retrieve
multiple pages of data.
My problem is that h... more >>
Length of string in array
Posted by Michael C at 7/28/2004 12:11:31 AM
I have an array of strings
string[] strArray = new string[10];
strArray[5] = "ABC";
How can I determine the number of characters in the array item?
if (strArray[5].length = = 3)
{
}
This is acually returning 10 which is the array length
I want the array item string.length
Than... more >>
|