all groups > c# > february 2005 > threads for thursday february 3
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
RichTextBox line heights
Posted by Beringer at 2/3/2005 11:10:20 PM
Does anybody know a way to get the heights of the various lines of text in a
RichTextBox?
I'm not sure if "height" is the proper term. But what I'm getting at is
that if you set the
font size of some selected text on a line the entire line "height" expands
to the new font
size.
I want... more >>
ReleaseComObject or =null
Posted by mamin at 2/3/2005 9:13:21 PM
What is the difference between writtinig
System.Runtime.InteropServices.Marshal.ReleaseComObject(ob)
and writting ob=null ?. What will happen with my object in memory after
those operations?
... more >>
Convert UInt16 to Byte Array
Posted by rawCoder at 2/3/2005 8:48:07 PM
Hi,
Ok this shud b simple but i cant seem to find it.
I want to convert a System.UInt16 data to 2 Byte array and System.UInt32
data to 4 Byte array ( BigEndian)
something like
Public Sub GetBytes(ByVal n as System.UInt16, ByRef b As Byte())
'Converts the System.UInt16 to a 2 Byte array
... more >>
how to have the IP of a TcpClient
Posted by herbert at 2/3/2005 4:36:05 PM
hi everybody,
My TcpListener give me a TcpClient, and i would like to have the IP
address of this TcpClient.
I can have a NetworkStream with TcpClient.GetStream(), but I can't read
NetworkStream.Socket that is protected...
I've tried to create a class thats inherits from NetworkStream, b... more >>
NMock problem??
Posted by Naveen Mukkelli at 2/3/2005 4:29:03 PM
Hi,
Can we use NMock to simulate concrete classes?.
In my case, I have to a class with no interfaces and virtual methods.
I've got 2 classes A, B, dependent on each other. That means, one
Class A creates many objects of Class B.
For example..
public class DependenceClass
... more >>
Thread A calls a delegate on Thread B but Thread A executes it!?!?
Posted by Paul Tomlinson at 2/3/2005 4:00:44 PM
OK, I have a multi-threaded application.
I have a master thread which calls a delegate which I want the child thread
to execute but that is not happening, instead the master thread is running
the code in the delegate function. I know this as I can see the thread
id's.
This is what I *want... more >>
Clicking a button on a executable file
Posted by dakkar NO[at]SPAM sylveria.gen-dot-tr.no-spam.invalid at 2/3/2005 3:52:39 PM
Assume there is a buton on a executable file(client.exe) and i know
the coordinates of that button is that possible to clicking to it
with c# if it is how?
*---------------------------------*
Posted at: http://www.GroupSrv.com
*---------------------------------*
Posted Via Usenet.com Premiu... more >>
log errors
Posted by Aaron at 2/3/2005 3:46:58 PM
I have a web app written in c#. is there an universal way to all log errors
(sql, asp.net, server errors...)?
Thanks
Aaron
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
HASH (SHA1) of a big file
Posted by Chang at 2/3/2005 3:14:27 PM
How to get SHA1 or MD5 of a big file (+5MB - 20GB) as I can't read 20GB into
memory.
--
Chang.
... more >>
Memory Managment/Objects lifecycle managment
Posted by LP at 2/3/2005 3:08:16 PM
Hello .NET experts
A group of develpers here are having some arguements about different ways to
write program with minimal memory footprint.
One method in buisness class creates an instance of another class and calls
its method that does database related work. This buisness class methods is
b... more >>
Calling Thread.Suspend and it's affect on the target thread...
Posted by Paul Tomlinson at 2/3/2005 2:59:01 PM
Quick question.
If i call Thread.suspend() on a thread does the thread which is being
suspended get any notification that it has been/is being suspended?
I am thinking i want the thread-to-be-suspended to log the fact that it is
being suspended.
Any ideas?
... more >>
Internet Explorer IDownloadManager COM interface
Posted by petar petrov via DotNetMonster.com at 2/3/2005 2:54:11 PM
Hi to all,
I need to implement the above interface in C#.NET managed application.
Since I am a noob with COM i looked at MSDN article of how to invoke COM from inside managed code. However the article require COM object (.dll) i fail to find for internet Explorer.
Plese can someone explain in d... more >>
ASP datagrid style question while using paging
Posted by Randy at 2/3/2005 2:45:05 PM
Hello,
I've got an ASP app. I have a simple datagrid. If I don't use column
templates I can easily set up the datagrid to use paging by creating a
PageIndexChanged event and putting this code in it...
DataGrid1.CurrentPageIndex = e.NewPageIndex;
DataGrid1.DataBind();
This works fine. B... more >>
Cross process singleton
Posted by Patrick Tsang at 2/3/2005 2:33:50 PM
I have a question here don't know how to solve it...I
already spend quite a bit of time doing research for it,
but cannot find a good answer for it...
I want to create a .NET assembly which have delegate
event. I need it to be singleton so no matter how many
applications create instance ... more >>
Why not "new SqlDataReader()" ?
Posted by Ricola ! at 2/3/2005 2:24:49 PM
Why do I say:
SqlDataReader dr;
instead of
SqlDataReader dr = new SqlDataReader();
--
Texeme Textcasting Technology
http://texeme.com
Indie Pop Rocks @ SomaFM
http://somafm.com/
... more >>
c# and vb 6 dll
Posted by mp at 2/3/2005 1:56:23 PM
can I call a vb 6 dll from my c# application?
Thanks
... more >>
Writing files through windows share fails
Posted by Lenard Gunda at 2/3/2005 1:51:41 PM
Hello!
I have created a program, that receives files, and then stores them locally
for later access. This program is run on a Windows 2000 Server computer as a
system service. Some of the files also need to be copied over to another
computer, that is running Windows 2000 Professional versio... more >>
Add UserContol to Toolbox without creating Windows Control Library
Posted by Evan Stone at 2/3/2005 1:39:28 PM
Hello All,
I've got two C# UserControls in a standard Windows Application project,
but I'd like to be able to add them to my Toolbox so I can start placing
them on forms.
Unfortunately, it's not really clear how to do this, since all the
examples I've found in the documentation seem to s... more >>
hiding key columns in datagrid.
Posted by Peter Rilling at 2/3/2005 1:12:05 PM
Okay, I know that the DataKeyField property of a DataGrid is supposed to
allow me to define a field which will not be displayed. The values in that
column end up in the DataKeys collection. My problem is that the column is
still being rendered. I even tried the sample in the MSDN library for t... more >>
GUI Architecture
Posted by Franck Diastein at 2/3/2005 1:01:43 PM
Hi,
I'm making a little app with a treeview in a custom control name UCMenu...
I load my menu with
UCMenu _menu = new UCMenu();
so _menu is an instance of UCMenu...
My problem is that I need to update nodes in treeview inside _menu, but
I can't directly 'touch' it... So I thinked in... more >>
jet code fails with password, why ?
Posted by andrewcw at 2/3/2005 12:51:04 PM
The following function fails if the Jet database has a password. This is the
error:
{"Cannot start your application. The workgroup information file is missing
or opened exclusively by another user." }
However the same Jet database opens easily with VB 6. Thereis no MDW (
workgroup file - ... more >>
Binding int to textBox
Posted by PawelR at 2/3/2005 12:40:05 PM
Hello Group,
I have question:
How binding to textBox field from dataSet where field (column) type is int,
or money?
If in dataBase column is varchar or char this is simple.
Thx
PawelR
... more >>
dynamic tooltips
Posted by msymms NO[at]SPAM gmail.com at 2/3/2005 12:15:32 PM
I have a small timer application that will minimize to the systray.
Currently, the tooltip displayed for the NotifyIcon will show the time.
Static. What I would like is, while the tooltip is visible, for the
time (text) to keep updating. I beleive there is a way to do it in
C++, but I am not ... more >>
Server Application Unavailable
Posted by MA at 2/3/2005 11:47:27 AM
Hi all!
I have a ASP.NET application written in C#.
I connect this app with a 4th Dimension database via ODBC.
My problem is that when i try to fill a dataset and the query dont return
any data, I get an "Server Application Unavailable"-error.
Is there a way to catch this error? I´ve t... more >>
money
Posted by Hrvoje Voda at 2/3/2005 11:44:18 AM
In sql table I have a variable with value money.
What kind of textbox or someother type of box should I use to enter money
values?
When I put integerTextBox I can't converted it to money value.
Hrvoje
... more >>
Binding date to textBox
Posted by PawelR at 2/3/2005 11:42:39 AM
Hello group
I have problem with binding data to textBox.
If in dataBease - dataSet I'va varchar or char I use:
textBox1.DataBindings.Add(new Binding("Text",myDS ,"MyTable.MyColumn"));
If I want binding int or decimal for example I have blank textBox. My
question is
How property name use ins... more >>
Visual Studio - Projects now contain "bin" and "obj"
Posted by Derrick at 2/3/2005 11:10:10 AM
and I can't delete them. If I close the project, go delete the folders
manually, the items reappear in my project.
Any ideas what this is from? I do not see project settings on the "auto add
all files" type of theme that might have been set??
I was doing some project and directory renaming.... more >>
dot net vs. powerbuilder?
Posted by VMI at 2/3/2005 11:07:13 AM
In a few days I'll be working with a client that uses powerbuilder to
develop applications. I know how to use PB, but I prefer dot net. What can
I say to convince the client that dotnet is a better development tool than
PB? As far as I know, these will be windows applications.
In terms of s... more >>
After execution
Posted by dakkar NO[at]SPAM sylveria.gen-dot-tr.no-spam.invalid at 2/3/2005 10:50:09 AM
I wrote a line like this for executing the program that i want
System.Diagnostics.Process.Start(uopath +
@"\client.exe");
and i want to call a function after this program succesfully executed
so i write the line like this
[code:1:71767090a2]
System.Diagnostics.Process.Start(uopat... more >>
Open file in exclusive mode
Posted by Frank Rizzo at 2/3/2005 10:46:23 AM
I am trying to open a file in exclusive mode for writing. Is the code
below correct?
FileStream oStream = File.Open(FileName, FileMode.Open,
FileAccess.Write, FileShare.None);
The purpose is two-fold:
1. I want no one to be able to open a file while I am operating on it.
2. If the fil... more >>
Duplicating "delete this"
Posted by Jason at 2/3/2005 10:29:32 AM
In C++, I can create an object on the heap and have it kill itself when
it's done (i.e. delete this)
In .NET, I have a class which triggers a worker thread. When the worker
thread is finished, I would like to have the object go away. Is there a
..NET/C#-proper way of doing this?
Thanks... more >>
OOP problem
Posted by rapataa at 2/3/2005 10:27:39 AM
hi all,
I'm trying to get the following to work:
I have an objectmodel containing users and groups. A user is part of the
users collection and a group contains users.
-------
public class User {///// contains user methods & property functions}
public class Users : System.Collections.Coll... more >>
Reverse Engineering....
Posted by Paul Aspinall at 2/3/2005 10:07:48 AM
I have been developing apps in C#...
Until recently, I was not concerned about the compilation to IL step, which
many people had been concerned about. However, having spent a few hours
using ILDASM and Refelector, I am very concerned about the ease at which my
code can be reverse engineered... more >>
Performance issues with BinaryReader/BinaryWriter
Posted by Paul Steele at 2/3/2005 10:05:36 AM
I am writing a client/server application that communicates over tcp. The
code I use to initiate the connection is as follows:
NetworkStream networkStream = new NetworkStream(ClientSocket);
toClient = new BinaryWriter(networkStream);
fromClient = new BinaryReader(networkStream);
There is si... more >>
where is the JRO Jet and Replication Object ??
Posted by andrewcw at 2/3/2005 9:59:03 AM
Per http://support.microsoft.com/kb/q230501/
Microsoft Jet and Replication Objects I add a reference.:
Add Microsoft Jet and Replication Objects X.X library, where (X.X is greater
than or equal to 2.1).
I also understand its part of the MDAC load. Is it under the COM tab ? What
directory... more >>
ostream << operator doesnt print first stream
Posted by mayFlower at 2/3/2005 9:25:07 AM
Overloaded ostream << operator doesnt print first stream C++ .Net Framework.
For example :
ostream os;
os <<"Hello"<<"World"<<ends;
It will print something like:
0x127aa123World.
Is this something changed on .NET framework ??
Somehow .NET is considering the first stream as void pointer . Why... more >>
Moving a control on the page during runtime.
Posted by Punisher at 2/3/2005 9:13:02 AM
I have a datagrid that I want to move another part of the page. I'm able to
do this but the datagrid looses it's values after the move.
General_DataGrid_CurrentItems is the datagrid name.
I want to move it to a tablecell called tdControls.
this.Controls.Remove(General_DataGrid_CurrentItems)... more >>
Application.Run
Posted by Brian Keating EI9FXB at 2/3/2005 9:13:01 AM
Hello there,
I've created a worker thread that will handle events.
To give this worker thead a run loop i've called
Application.Run();
What call should i make to cause this thread to leave its run loop?
thanks
Brian... more >>
Drawing Graphics and undo this
Posted by Markus at 2/3/2005 8:47:05 AM
Hi,
if got the following Problem. I want to draw an Rectangle on an loaded Image
when the Right Mouse Button is Pressed and the Rectangle should Resize, when
the MouseMove Event is fired. So my Problem is, that i cant find a Method,
where i can undo the Paint of the Rectangle and do a new P... more >>
MSDN
Posted by Howard at 2/3/2005 8:39:07 AM
I'm sure this is a very easy question:
I installed Visual Studio .NET a week ago. I didn't install MSDN
Subscriptions Disc 1 at the time. I installed it now. When I click on Help in
..NET, the message says Help is not installed. How do I fix this?
Thanks,
--
Howard... more >>
Outlook Open Folder Calendar
Posted by Steve B. at 2/3/2005 8:31:09 AM
Now that I found the Outlook public folder containing an existing
calendar, how do I open it ?
************************
Application olApp = new ApplicationClass();
NameSpace olNS = olApp.GetNamespace("MAPI");
MAPIFolder oFolder
= olNS.GetDefaultFolder(.OlDefaultFolders.olPublicFoldersAllPu... more >>
Combobox fun - "Specified argument was out of the range..."
Posted by Michael Conroy at 2/3/2005 8:31:04 AM
Hi... Synposis...
Throws exception:
"Specified argument was out of the range of valid values."
Read on for the juicy tidbits.
MySimpleClassCol mscc=new MySimpleClassCol();
private void InitCombo()
{
// Doing this so bind op doesn't fire event
m_combo.S... more >>
Newbie: Classes and what they can do?
Posted by JM at 2/3/2005 8:27:02 AM
Hi
I saw an example on the newsgroup where using System.NEt was used to obtain
an IP and hostname.
Where does one go to get information on what the various classes can do and
how a person can use them.
Sorry if this seems basic, I'm just starting out and curious obviously.... more >>
Worker Thread
Posted by Brian Keating EI9FXB at 2/3/2005 7:49:05 AM
Hello there,
Just a few questions re: worker theads.
I have a worker thread that i wish to perform certain task.
This worker thread must also handle events.
Now my real questions.....
What sort of ipc will i use between threads? (i used PostThreadMessage on
win32)
What sort of run loop... more >>
unregistering type library
Posted by GeRmIc at 2/3/2005 6:37:07 AM
Hi,
I have written a C# library to interop with a C DLL. Everythings worked
fine, till I made some small changes (just the name of one variable!!) inside
a structure in the C# Library. Now my C DLL keep throwing an error saying
that xxx is not a member of 'That_Structure' see the decleration ... more >>
Sharing Classes across projects
Posted by Tinius at 2/3/2005 6:31:04 AM
I have created a class which I wish to reuse amongst several projects.
But each time I Add the class to a new project, it creates a copy of that
class in the folder of the new project.
This means that when I make changes to that class, I have to apply the same
changes to all the projects.
I... more >>
Crystal Report
Posted by Islam Elkhayat at 2/3/2005 5:09:50 AM
I need to bind my query from the dataGrid to crystal Report... so the report
displayed data depand on the datagrid....
I also hv alot of problem in the crystal report.. may i know a good online
source to read about crystal report??
... more >>
Sql select problem ( data fill)
Posted by Ricardo Luceac at 2/3/2005 5:08:18 AM
HI...
I have 2 tables, one for the countries and another for the states, and I
make a fk in the states tables that connect it to the countries table.
But now I want to make a dropdownlist with the countries, and when the
user select the country a listbox will be filled with the states. But
... more >>
How can I make this PrintDocument visible to it's calls?
Posted by trint at 2/3/2005 4:48:09 AM
PrintDocument pd = new PrintDocument();
Can I put it in "Class1.cs"?
If so, how can it become visible within the scope of the function of
it's call?
Class1.pd.PrintPage += new PrintPageEventHandler(this.pd_PrintPage);
Doesn't work.
Thanks,
Trint
... more >>
Handling Unexpected Exceptions in C# windows application
Posted by anylcumar NO[at]SPAM gmail.com at 2/3/2005 4:20:52 AM
Hello,
I am developing an application similar to MSN Messenger using C#.Net.
I am using the Frameworks' System.Net.Sockets class for creating
sockets and then communicating.Everything seems to work fine when
there is internet connection, but once the application is started and
then if there i... more >>
Response a binary from Sql server
Posted by Josema at 2/3/2005 3:51:01 AM
Hi to all,
I have stored in a database some binary files (pdfs, and gif images), i
would like to know how could i show it, in internet explorer when a person
enters for instance in a textbox the id of the file that want to view....
This is my Sql table...
ID int
File binary
Any in... more >>
System Colors
Posted by kishor at 2/3/2005 2:45:03 AM
How do I access the system colors in asp.net web page. Can I have some guide
lines/ some sample code for this.
Regards,
Kishor
... more >>
Installer for a C# application
Posted by Adhiraj at 2/3/2005 2:39:02 AM
Hi,
I am new to C#. I hav written a sample application in c#. I want to create
an installer for it. Does .net framework provides any utility for doing this?
Thanks in advance,
Adhiraj... more >>
Paging on a Datagrid
Posted by Stephen at 2/3/2005 1:35:04 AM
I've got the below datagrid set-up below and Im trying to get the paging
wired up. The correct numbers are coming back based on the amount on pages
there should be however the on-click event of each page number isn't working.
Does anyone know which event I use and what code I need to add to ac... more >>
Anyone knows what's c-omega
Posted by daiyue at 2/3/2005 12:03:50 AM
Hi,
I just want to know will c-omega be included to c# in future,who can
tell me?
Thank you
dai
... more >>
|