all groups > c# > march 2004 > threads for friday march 19
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
PictureBox component
Posted by Eric at 3/19/2004 11:55:34 PM
Hi,
I am designing a Picture Viewer application. I have a
problem to find a way for fitting the whole high
resolution picture into the form by using a picture box
component. What I want to do is to use the whole form for
displaying the whole picture so that the whole picture
will poss... more >>
Last control on focus
Posted by glvs NO[at]SPAM hotmail-dot-com.no-spam.invalid at 3/19/2004 11:42:02 PM
Hi,
I want to know which control the focus was on last. I have several
listview controls on my form and when I click on "Update" button,
depending on where the focus was I want to perform different tasks.
I tried Focused property on each listview control but unfortunately by
the time the butt... more >>
Jet and .NET
Posted by Mike Peretz at 3/19/2004 11:10:41 PM
I am a little confused about support of OLEDB for Jet 4. Microsoft removed
it from their MDAC 2.7 package (only god knows why). However, even without
it my machine is able to connect to an Access database using the provider, I
just don't know where I got it from. Is it included with the OS?
Wh... more >>
could i call a c# dll function in a c++ project
Posted by csyemily NO[at]SPAM yahoo.com-dot-hk.no-spam.invalid at 3/19/2004 11:07:46 PM
i want to know that whether i can integrate a c# project to a c++
project. i know that one of the way is to create a c# dll and call
the c# dll function in the c++ project. however, i dont know the
exact way to do it. Do any suggestion ?? thanks. :cry:
Posted Via Usenet.com Premium Usenet N... more >>
SysInfo etc
Posted by Mark Rae at 3/19/2004 9:35:04 PM
Hi,
Is there a native .NET way of interrogating SysInfo details e.g. amount of
physical RAM, OS version etc, or does it still involve Win32 API?
Any assistance gratefully received.
Best regards,
Mark Rae
... more >>
thread unstarted
Posted by Kovan Akrei at 3/19/2004 8:29:52 PM
Hi,
When I check whether one my thread are running I use a bitmask like this:
(myThread.ThreadState & (ThreadState.Stopped | ThreadState.Unstarted)) == 0
(got it from MSDN)
How would I check whether a thread has been started or not without using the
property IsAlive? I'm trying to use a b... more >>
progress bar while file uploading
Posted by MrBug at 3/19/2004 8:27:37 PM
Hi
I have seen few components which show progress bar while file uploading to
web server .
Just want to know what is the logic behind this is.
Mr.Bug
... more >>
reading and writing to Tape Drives with C#
Posted by Abhishek Srivastava at 3/19/2004 6:43:03 PM
Hello All,
I am doing a feasibility study to develop an inhouse repository for
software products. I am looking at C# and possible ASP.NET to develop this.
Is it possible for me to read the contents of a tape drive from C#.
similarly write files to a Tape drive as well?
Thanks for your h... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Error message I don't understand (newbie Q)
Posted by Peter Morris at 3/19/2004 5:49:04 PM
Hi folks, just learning ASP.Net programming in C#, working
my way through some books on the subject.
I'm currently working on the Security chapter. I've entered the
example from the book using Windows authentication and
Forms authentication. When I run the programs I get the following
messag... more >>
Error
Posted by A.M at 3/19/2004 5:36:10 PM
Hi,
Why C# compiler returns "Use of unassigned local variable 'reportParams'"
during compilation of this code?
System.Data.SqlClient.SqlDataReader reportParams;
try
{
reportParams = SqlHelper.ExecuteReader(Global.ConnectionString ,
"up_Report");
}
catch (Exception ex)
{
Log(ex);... more >>
HttpWebRequest does not handle redirect!!
Posted by Jon Davis at 3/19/2004 5:25:38 PM
I have an HttpWebRequest object that is performing an HTTP POST query on an
HTTP server that is returning the proper status code of either 301 or 303
(redirect) and a Location header, but the HttpWebRequest object isn't
following it and is returning the full body of the initial HTTP response
ins... more >>
C# Resource Kit?
Posted by Yaron at 3/19/2004 5:11:07 PM
Anyone know if MSDN plans on releasing a C# Resource Kit, and if so, when? The VB.NET and ASP.NET ones are so excellent, I would love to see one for C#
Thank
Yaron... more >>
Is it possible to Import a .cs file to my aspx page?
Posted by Blue Ball at 3/19/2004 4:22:36 PM
In my aspx page, I want to import a .cs file, but I don't want to compile to
dll. Is it possible?
I know that codebehind can do it in Page level, but it forces me to use
inherits which I don't want to:
@Page Inherits="code.page" src="code.cs"
In this case, my code.cs has to inherits from Sy... more >>
Windows Service
Posted by C#User at 3/19/2004 4:16:28 PM
i wrote a Windows Service program (myService) for testing. OnStart: just
create a new file in my directory.
Everything seems fine. But when i open the Services Panel, try to start the
myService, it pops up the following message:
"The myService service on Local Computer started and then stopp... more >>
Custom Cursors when dragging and dropping
Posted by Dan at 3/19/2004 3:51:04 PM
I am dragging and droppng from a picture box component to a listbox control.
I am calling the DoDragDrop method from the Picture boxes Mouse down event
handler.
private void pictureBox1_MouseDown(object sender,
System.Windows.Forms.MouseEventArgs e)
if ((e.Button & MouseButtons.Left) == Mou... more >>
Reading volume
Posted by 2G at 3/19/2004 3:49:53 PM
Hi,
Is there a way to read the volume from the volumecontrol and detect when it
changes ?
Thanks in advance
... more >>
Make a minimised form flash in task bar..
Posted by SPG at 3/19/2004 3:23:55 PM
Hi,
I need to make a form that is minimised flash in the task bar.
I used to do it with an old winapi call "FlashWindow(hwnd, false)".
Does anyone know how to do this in .NET?
Steve
... more >>
IBindingList-- Why is explicit interface implementation required?
Posted by Dave Veeneman at 3/19/2004 2:57:48 PM
I'm working my way through the IBindingList interface, and I am puzzled by
something: Theexample in the IBindingList Overview (.NET Framework
documentation) uses explicit implementation for each of the IBindingList
elements implemented in the collection class.
For example, the implementation ... more >>
Recursion in C#
Posted by MadWildShark at 3/19/2004 2:51:06 PM
Hello friends
I have a tree structure that I want to cross, looking for a specific node
I have tried to develope a recursive function, but when it has to leave, and return the result, it does not stop the execution, and it follows until the end of the tree
Can you help with code samples of tree s... more >>
asynchronous call back and session variables.....
Posted by Ollie at 3/19/2004 2:08:11 PM
I have an asp.net webservice that is called from an asp.net website, the
processes on the web service may take sometime so I call the webservice
using the asynchronous method calls, i.e. BeginXXXX(), EndXXXX() etc...
I pass a call back into the BeginXXX method so that when the operation has
co... more >>
Strange compiler error with conditional operator
Posted by Mike Ruane-Torr at 3/19/2004 2:02:15 PM
Today's competition is to explain my compiler error. Here's the code:
enum RecType
{
Start,
// etc.
}
byte[] ret = new byte[17];
int pos = 0;
RecType Type;
..
..
..
ret[pos++] = (Type == RecType.Start ? 0x1 : 0x2); // ERROR
The error is:
"Cannot implicitly convert type 'int'... more >>
Null and DBNull.value
Posted by Nathan Kovac at 3/19/2004 2:01:51 PM
I have a field in a table that allows nulls. I used the wizard to =
create a dataset for this table. I now want to add a new row to the =
dataset and default in some of the values, but leave some of them null.
The Neither of the following lines work:
ticketDataSet1.Ticket.AddTicketRow(1, Ses... more >>
Size of object in at runtime memory
Posted by Rune Andersen at 3/19/2004 1:23:14 PM
Hi....
I'm working on a cache controller and needs to know the current size of the
cache object, but how do I get that ?
I've got an ArrayList populated with structs and now I want to know the
current memory usage of the ArrayList at runtime.
I've tried using
System.Runtime.InteropServ... more >>
Serialization Question Using Browser
Posted by Tim.Burda NO[at]SPAM si-intl.com at 3/19/2004 1:18:10 PM
I attempting to serialize an XML document back to a client (Internet
explorer).
I am using the following code to do this from within a .ASPX page
(requested via XMLHttpRequest):
XmlDocument mXMLResponse = <<Populated XML Document>>
BinaryFormatter formatter = new BinaryFormatter();
forma... more >>
.NET framework SDK ver 1.1 with visual studio 2002
Posted by Ram Dash at 3/19/2004 12:48:37 PM
Hi All,
Can I install .NET framework SDK ver 1.1 and somehow use it with Visual
Studio.NET 2002, so that I've access to all the 1.1 run time classes and can
compile against 1.1 assemblies?
If I do install .NET framework SDK ver 1.1. what impact will it have on the
functioning of VS.NET 2002... more >>
C# IP address combo box
Posted by Hugh Creswell at 3/19/2004 12:34:15 PM
Hi there!
I'm fairly new to this, and am trying to create a combo control that has
friendly names in the drop down area, and allows the user to type in (and
validate) an ip address in the edit box area.
I think that I have to create a descendant of the combo box, and trap the
keystrokes, va... more >>
Deployment questions
Posted by genc ymeri at 3/19/2004 12:11:07 PM
Hi,
I have a application which runs fine in any PC which has installed .Net1.1
framework and VS2003 but do run in any PC which has installed only .Net
framework 1.1.
The error I get is this. Any idea please ?
PS:
---------------------------
WFDesigner.exe - Common Language Runtime Debu... more >>
Installing issues...please help
Posted by genc ymeri at 3/19/2004 12:05:56 PM
Hi,
I have a application which runs fine in any PC which has installed .Net1.1
framework and VS2003 but do run in any PC which has installed only .Net
framework 1.1.
The error I get is this. Any idea please ?
PS:
---------------------------
WFDesigner.exe - Common Language Runtime Debu... more >>
RichTextBox.SaveFile
Posted by Andy at 3/19/2004 11:59:57 AM
Im trying to save a text file using the following code:
RichTextBox t = new RichTextBox();
t.Text = doc.FocusedDocument.Control.Text;
SaveFileDialog saveFile1 = new SaveFileDialog();
saveFile1.FileName = doc.FocusedDocument.Text;
saveFile1.DefaultExt = "*.txt";
saveFile1.Filter = "Text File|... more >>
Crystal Reports Viewer
Posted by Dmitry Karneyev at 3/19/2004 11:49:29 AM
Hi!
I've got an application with CR viewer. I use dataset as a database for a
report.
I've got 2 tables. First one has one row and second one has any amount of
rows (including 0).
I use second table in 'details section' and information from first table in
other sections.
If second table hasnt... more >>
how to write a this program
Posted by C#User at 3/19/2004 11:41:16 AM
i want this program every some specific time (15 mins) to do something. I
don't know how to do it. Shall i use threads or other technologies?
Thanks.
... more >>
The Fastest Grid
Posted by Eric Weinschenk at 3/19/2004 11:30:33 AM
Hey people,
I'm conducting a mini survey for myself and my boss.
After using one particular grid component for a win forms thick client app,
we decided it's important to find a faster grid.
What defines fast? Fast is when you can scroll through it very fast, or the
time it takes to draw the... more >>
Static in C#
Posted by Prateek at 3/19/2004 11:08:05 AM
Is there a C# equivalent to static keyword in VB.NET? Or, some way to =
implement the exactly same functionality in C#?... more >>
crystal report data problem
Posted by 2003et at 3/19/2004 10:52:39 AM
In my application, the crystal report engine takes the datas from the
DataSet. In my DataSet, there is 16 row. Butr crystal report fetch row 1,
row 5, row 9, row 13...
What can be the problem?
Thank you in advance
... more >>
how to write this program
Posted by mailtoyaofei NO[at]SPAM yahoo-dot-com.no-spam.invalid at 3/19/2004 10:51:47 AM
hi,
I want to write a program that every some specific time(say, 15
minutes) do something. But i am out of mind how to do it? Should i
use threads or some other technologies?
Thanks.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------... more >>
nulls in datasets
Posted by Nathan Kovac at 3/19/2004 10:51:07 AM
A recent project I am working on is basically an interface to an sql
database. I have not done too much with sql databases from the c# area so I
am having to learn a few things. I am creating a simple example project
which is a simple form which interfaces a database table. It has a dropdown
... more >>
OOP 101 - Inheritance confusion
Posted by TomB at 3/19/2004 10:50:33 AM
I'm sure this is OOP 101 but I'm confused.
I'm writing a simple accounting type application. I created an abstract
class called IAccount, which my other account types are derived from.
Most of the code on the derived classes is repeated. So it occurred to me
that instead of an abstract cla... more >>
Help !!! hashtable
Posted by equip at 3/19/2004 10:46:09 AM
How can i use a hashtable created on form1 to form2
How can i view all the values and keys in the hashtable
Hashtable called sampHash and is already filled
Thanks you... more >>
Intellisense/Typeahead DropdownList
Posted by tammy_gutter NO[at]SPAM yahoo.com at 3/19/2004 10:25:08 AM
Hi,
Can anyone tell me how to implement the following:
I have a dropdownlist containing:
abcde
alpha
amino
When a user clicks on the dropdownlist and types "ami", I want it to
go to amino. Currently, you can only type in a.
Thanks for any help.... more >>
OOP/Design Question
Posted by codymanix at 3/19/2004 10:14:52 AM
I have a class Customer. A customer can have multiple accounts. The
account-data is hold internally in a datatable but this implementation
detail should be hidden from the user of the class customer.
the user of the class customer should be able to use foreach on
customer.Accounts and can do a... more >>
About datagrid
Posted by zhimin at 3/19/2004 10:14:41 AM
Hi
There is a column named IsInUsing which data type is bit in my database(MS
SQL Server 2000). I want to show this column in a datagrid by setting
SqlDataAdapter in GUI design.
But the result of this column shown is true or false, it should shown the
string Yes or No in my idea.
Thanks!
... more >>
Rezise Image using Aspect Ratio
Posted by Brian K. Williams at 3/19/2004 9:55:41 AM
If I have an image 400 width by 500 height.
I can figure out my aspect ratio like this: float
Ratio=((float)nOrigWidth)/((float)nOrigHeight);
How can I use this value if I want to change the width to 200?
Thanks in advance.
Brian K. Williams
... more >>
To read console arguments from windows application in .net
Posted by vijay at 3/19/2004 9:19:58 AM
Hello
I have started recently with developmet in c sharp
I am developing a windows application , but it some times launced from
command line with command line parameterss,,
i wanted to know , if there is any way to do this,
Would System.console,.readline() would help
tried with ths, ... more >>
Large dataset
Posted by Ruslan Shlain at 3/19/2004 8:27:31 AM
I have a fairly large dataset that has to be uploaded in to the SQL server
table. I use data adapters command update, and that seems to work pretty
well ( all records make in to the table and nothing gets left out). However,
this mechanism is pretty slow when it come to 80,000 rows(the largest i ... more >>
asp.net and IIS 500 error
Posted by Mark Jones at 3/19/2004 8:08:34 AM
Hi all, I have a very weird problem with Windows 2000 Advanced server.
When I go to view a page as served by IIS I get a 500 Internal server error.
I though, ok, bad ASP script so I created a straight HTML file consisting of
nothing more than a hello world message.
I still receive the same messa... more >>
Reading an XML file compiled in a project ???
Posted by jkruger NO[at]SPAM creativesolutions.com.nospam at 3/19/2004 7:22:09 AM
I have an XML file of data that never changes. So instead
of shipping this file, I would like to add it to the
project in Visual Studio and embed it in the assembly, and
then read the file in from the assembly. Is this possible?
Jon... more >>
DsGetDcName function
Posted by Mike at 3/19/2004 6:56:09 AM
Does anyone have an example of how to call this API within C#?... more >>
Collections.. Help
Posted by vbextra NO[at]SPAM sbcglobal.net at 3/19/2004 6:36:52 AM
I want to create collection that uses two keys to retrieve the value.
Here is what I am trying to do..
I want to read XML document like this below to memory into collection
object on startup.
<Measures>
<Module Name="Module1">
<Measure Name="Measure1" Format="Currency">
... more >>
log requests
Posted by Aleborg at 3/19/2004 4:31:06 AM
We need to make a component in C# that saves almost the same info as the log files in IIS does and we need to do it for all sites in IIS6, how can it be done
It's like an ISAPI file that were used in IIS5 but we need to do it in C# and for IIS6.... more >>
Network Discovery tool
Posted by jonny at 3/19/2004 4:26:06 AM
hi all
I would like to write a network discovery tool, that will go through a given ip range and see what devices are connected to the network. I would also liek to be able to get the MAC address' of the devices attached..
Any ideas how i can do this in c#
I really dont want to have to do a p... more >>
Where to start
Posted by simsimlhr NO[at]SPAM hotmail-dot-com.no-spam.invalid at 3/19/2004 3:55:11 AM
I am new to c#.
I want to do work in C# for data base and web servicing.So where to
start.
Any url containing articles for beginers.
How much time it takes for normal person to learn.
For data base and web services vb net is strong or c#
Where can we learn the frame work of C#( articles).
... more >>
Array Pointers in C#, calling C++ DLL
Posted by Chucker at 3/19/2004 3:31:09 AM
I got a DLL that reads some RAW Double Data from a File to an Array
The DLL works fine
This is the Header of the double_read function
int dll_dbl_read (const char * fnam,
/* File name to read from *
int * res,
/* returns int[4]*
float * len,
... more >>
Directory structure advice needed
Posted by D. Yates at 3/19/2004 3:22:31 AM
Hi,
I am interested in knowing what directory structure most people are using
for their projects.
Here's what I have and the problem I am encoutering:
I have setup a directory structure like this:
D:\C#Projects
D:\C#Projects\Apps
D:\C#Projects\Libraries
D:\C#Projects\Release
I would... more >>
Invoke vs .... (for thread communication with UI controls)
Posted by _e_ at 3/19/2004 3:00:56 AM
The common approach to handling thread-to-UI sync seems to be Invoke
(as per Chris Sells "PI generator" etc).
Just wondering if there is any problem with having the thread write
data to shared variables and using a timer on the UI thread to check
for changes periodically.
I need to collect... more >>
access datagrid properties
Posted by Jack at 3/19/2004 2:39:49 AM
I have a data access component with a function that returns a dataset.
I want to access the DataTable[0].Rows.Count property of this dataset,
but I get a "Object reference not set to an instance of an object."
error when I try to access this property from a Page_Load.
The data component functi... more >>
[OT] Graphics Card
Posted by C# Learner at 3/19/2004 2:24:12 AM
Sorry for the off-topic post, but this is kind of related to my .NET
flicker problems.
It's quite worse that what I mentioned before. For example, when I show
a form modally to its parent, the modal form's controls flicker when
they're being initially drawn.
I suspect this could be a pr... more >>
Populating a Dropdown Listbox
Posted by Curt Emich at 3/19/2004 1:13:28 AM
Can someone help me understand why the following code won't work? I'm
connected to an Access database with a connection object, but I'm unable to
populate the dropdown list box on the form.
Also, I can't seem to print diagnostics anywhere using "Response.Write" or
anything else.
pr... more >>
|