all groups > c# > september 2003 > threads for friday september 5
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
C# - present image files
Posted by Dafna m at 9/5/2003 11:03:12 PM
Hi,
1. How can I present diffrent image type (jpg, bmp, bpm..)
2. How can I present video file as a picture
Can I fo it by a built in function (in C#)?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
declaring a viarable
Posted by Robert Blackwell at 9/5/2003 10:52:53 PM
If you define a variable when you declare it, does that mean that you can
never change the variable?
int myVar = 5;
Where as maybe
int myVar;
myVar = 5;
and later on somewhere I could then say
myVar =6;
?
Does that make sense.
... more >>
command prompt default directory
Posted by Robert Blackwell at 9/5/2003 10:49:17 PM
Is there a way to change the default directory of the command prompt?
Currently, when I go run>cmd..
it starts in c:\documents and settings\my username
Same with if I use the vs.net cmd prompt.
I'd like to change it to something more specific so when I go to the cmd
prompt, I don't have... more >>
Reflection Question (?)
Posted by Largo SQL Tools at 9/5/2003 9:41:56 PM
I would like some way to determine every place in my solution where a given
method of a given class is called (not defined). Preferably I would like to
know the source file name and line number of each method call. Is this
possible using reflection or some other method?
Thanks very much.
... more >>
Progress Bar
Posted by Steven Blair at 9/5/2003 8:51:05 PM
Hi,
Having a bit of a problem with the Progress Bar and Timer component.
Basically, when I execute a menu option, I need the progress bar to start
working.
I have managed this and start the timer at the beginning of the function
with Timer1.Start();
The problem seems to be stopping the... more >>
High memory usage
Posted by Philip Carnstam at 9/5/2003 8:26:01 PM
How come .Net applications use so much memory? Every application I compile
uses at least 10 MB of memory, even the ones consisting of only a form and
nothing else. If I minimize them though the memory usage drops to a couple
hundred KB. Why?
Is there anything I should to to prevent this? I hav... more >>
References path not working
Posted by Matt at 9/5/2003 7:23:28 PM
Hello,
I work on many asp.net projects, so i made a general dll that is not
strong named. To use this dll in a project, a simply copy the dll in
the bin directory and references it using "browse...".
This works fine, but i want to avoid copying the dll in each bin of my
projects. So i creat... more >>
textBox.Numeric = true;
Posted by Patrick De Ridder at 9/5/2003 6:18:35 PM
MSDN shows the option: textBox1.Numeric = true; as a way to check that
the input in textBox1 is numeric. I cannot get it to work. How should
it be done?
Alternatively: looking at Validation in MSDN I see a check for an
Internet Address, I cannot convert the example to a check for Numeric
Inp... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
May I use C# to access agilent VISA?
Posted by littertiger at 9/5/2003 4:59:28 PM
checkbox in Datagrid? help
Posted by '[] WiRaN at 9/5/2003 4:36:36 PM
hi friends,
I necessary a example of use checkbox in datagrid,
help me?
... more >>
state of a panel, form??
Posted by Doug at 9/5/2003 4:31:25 PM
hello,
i have got a panel with several controls in it, including a button which is
disabled.
I want to enable this button whenever, any of the controls inside the panel
changes.
e.g. someone has typed in the textbox,
the datagrid has been edited,(a user edits or inserts a new cell)... more >>
discrepancy between data in dataset and data reported by Crystal viewer
Posted by JK at 9/5/2003 4:21:08 PM
In my Windows form, I have a discrepancy between what the CrystaReport
viewer displays and what the dataset contains. The Report displays data
from three fields from same table but the reportviewer displays all the data
in the table regardless of the select I run (in this case, the select
retur... more >>
Howto :: Class implementation on several files...
Posted by Malkocoglu at 9/5/2003 3:47:13 PM
In the good old days , i had a class that had 30 functions (let's say)
There was a single include(*.H) file and i could have several
implementation(*.CPP) files
The reason for doing this is to have some functions grouped so it is easier
to read/manage them...
Maybe several developers work on th... more >>
Multithreading concurrency with Interop
Posted by mark NO[at]SPAM corporatedigital.com at 9/5/2003 3:40:43 PM
Hey all.
I've got a legacy COM dll that I'd like to use in my multithreaded C#
app. Problem though is when I create several instances of the interop
object and start them on their own threads they always seem to run
synchronously.
I've boiled down the code to a simple "lab" experiment below.... more >>
Formatting a DataGrid
Posted by Jeff Cook at 9/5/2003 3:34:53 PM
Hi
I have a DataGrid that I am using to display a .xml file (that has a schema
in a .xsd), like this:-
ds.ReadXmlSchema(sDataPath + "Data.xsd");
ds.ReadXml(sDataPath + "Data.xml", XmlReadMode.InferSchema);
grdXXXX.DataSource = ds;
FormatGridColumns(grdXXXX, ds.Tables["XXXX"... more >>
installing .Net com tlb project on fresh PC
Posted by Sutapa at 9/5/2003 3:26:23 PM
Hi,
I have created a tlb file in .net to use in VB6
application. this application works fine in my Pc which
has development environemnt.
Now i want to deploy this VB6 exe to other fresh machine.
I have installed .net required framework and my other .net
projects run fine. but this VB6 ... more >>
Threads in C#
Posted by Luk Vloemans at 9/5/2003 3:17:46 PM
Hey,
Having a few problems using threads in C#. In the msdn documentation,
mutual exclusion is only discussed when dealing with threads that all
execute the same method.
What's the actual meaning of the lock function?
All I want to do is keep other threads from entering their critical
... more >>
application using oracle database
Posted by Jim H at 9/5/2003 2:45:39 PM
We have applications that must connect to oracle databases. Is there a way
to connect using .NET that does not require installation of the Oracle
client on each PC?
I'm pretty sure java apps do not require the Oracle client. I'm hoping .NET
has some way of doing this as well.
If not, does... more >>
In an ISerializable class, how do you serialize / deserialize CollectionBase?
Posted by Mike Pollett at 9/5/2003 2:36:54 PM
Hi, I have used the ISerializable interface before and the code below worked
fine. Until I derived it from CollectionBase. The code will still serialize
and deserialize the properties in this class and properties derived from
this class but will not serialize or deserialize the properties in
Col... more >>
Debug.WriteLine woes
Posted by Miha Markic at 9/5/2003 2:32:56 PM
Hi,
I've found a strange problem regarding Debug.WriteLine and Thread in
suspended state.
Create a thread, start it and make it suspended.
Then try Debug.WriteLine - it will start 100% CPU usage while not blocking
the main thread.
Code is below (create a from with two buttons).
Steps:
Clic... more >>
Using <Enter> or <NewLine> key instead of Tab
Posted by tor at 9/5/2003 2:26:17 PM
Hello
How can I use an other key then TAB to move from
one textBox to another??
Torfinn
... more >>
TabPage Header
Posted by David N at 9/5/2003 2:23:59 PM
Just curious... Is there a way to remove the header for a tabpage?
Thanks.
... more >>
Passing a usercontrol as a form parameter
Posted by Curtis Justus at 9/5/2003 1:41:00 PM
Hi,
I currently have a control that is on a form [FormA] and I want to pass that
exact instance of the control to another form [FormB] (a child form that
appears on a button click). The control has state, etc. that works with
both forms.
In my button click on FormA, I take my control and p... more >>
using MessageBox MessageBoxIcon.Exclamation
Posted by Dennis C. Drumm at 9/5/2003 1:33:21 PM
I have ordered the book .NET Framework Solutions, In Search of the Lost
Win32
API by John Paul Meuller which I think will help answer some of my questions
I have regarding making custom MessageBoxes, but that isn't going to be here
for a few days. So, I thought I would ask you guys how to put on... more >>
Simple Telnet commands using C# and tcpclient
Posted by Greg Martz at 9/5/2003 1:25:40 PM
I'd like to do the following in C# and prefer using tcpclient rather
than raw sockets...
Connect to a unix box
Login
run date +%H%M%S
retrieve the response.
That's it, nothing more. This shouldn't be too complicated, I
thought... I have yet to find any examples of being able to do thi... more >>
can Asp.net use C# as script language??
Posted by starlight at 9/5/2003 1:25:40 PM
I mean those use C# to implement function and button handler?
if can , can anyone show me a simple example or reference homepage?
Because i used to write in "function" , but i wonder how should I write in
C# with a OO concept.
... more >>
How to save re-vised stream back to file ?
Posted by andrewcw at 9/5/2003 1:16:31 PM
Missing the obvious here..thanks..
I need to open the file exclusively for on entry like this:
FileStream stream = null;
stream = File.Open(fiPath, FileMode.Open,
FileAccess.ReadWrite,FileShare.None);
// then I open the file stream
System.IO.StreamReader Tin = new System.IO.StreamReader
(st... more >>
Few syntax questions
Posted by Carl at 9/5/2003 12:50:51 PM
Hi, to be use with SQL server database
1- From window form textbox object
From this assignement,
txtTOTAL.Text="0.00m";
How do you convert back to decimal type ?
How do you assign a default datetime value to it ? How do
you convert back the text enter by user into datetime ?
txtDATEF... more >>
VSS with VS.NET
Posted by Mark at 9/5/2003 12:39:58 PM
We're installing VSS to use with VS.NET for our team. How does this work --
will people check out the entire project, or only one file at a time? If
they only check out, for example, a single page and it's code-behind, how
are they able to test it? If they check out the entire project, then no o... more >>
datagrid column tabbing
Posted by Doug at 9/5/2003 12:25:54 PM
Hello,
I have a datagrid with 3 columns,
however when i tab between the cells, I do not want to make the 3rd column
tabbed.
so it immediately jumps to the 1st column of the next row.
Is there anyway to do this?
Thanks,
Doug
... more >>
incremental build via command line
Posted by Xavier at 9/5/2003 12:10:46 PM
I have one project which depends on several other
projects. I have incremental property set to "true" for
all projects so that if nothing has changed within any of
the other project direcories, it will not try to rebuild
them. Within VS, it works as expected yet via the
command line usin... more >>
Windows Service and Web Service - Requested registry access is not allowed
Posted by bcxml NO[at]SPAM hotmail.com at 9/5/2003 11:36:07 AM
Gretings...
I have written a Windows Service that accesses a Web Service.
Both run fine on my development machine....
After installing both the Windows Service and Web Service on my
staging server, I get the following error...
Error Message: System.Web.Services.Protocols.SoapExcep... more >>
This code nukes DataBindings
Posted by Max Sandman at 9/5/2003 11:23:28 AM
When I had this code commented out, everything ran fine. But as soon as
I uncommented it, it nuked the databindings for every field bound to the
dataset. Does anybody know what's wrong with it?
try
{
if (dataSet11.MyTable[0].stringfield1.Length == 0)
check1.Checked = true;
else
chec... more >>
TcpChannel Connection Timeout Value While Remoting
Posted by Ahmet AKGUN at 9/5/2003 11:10:31 AM
Hi All;
I have one server to which clients are connected to via TcpChannel.
I start server on one host and establish a client connection from another
host via tcpchannel.
On client, using activators, I try to invoke one function on server side
using channel
After first successfull fucnti... more >>
How to assign object to tree node ?
Posted by RickDee at 9/5/2003 11:09:40 AM
Let me explain what I would like to do.
I have created my own object which is able to execute or do something. Now I
created a few instances of that object and put them in the tree view. There
is no problem for me to display them in the tree view, but as far as I know
it only capture them as... more >>
DataTable.Select problem
Posted by Alex Markov at 9/5/2003 10:58:18 AM
When I read table from Excel to DataTable object and one
of the field's names is with "?" (for example "class?")at
the end Select function throws the folowing exception:
"...
An unhandled exception of
type 'System.Data.SyntaxErrorException' occurred in
system.data.dll
Additional info... more >>
abstract static?
Posted by Chris Capel at 9/5/2003 10:52:39 AM
What is the rationale behind the decision not to allow abstract static class
members? It doesn't seem like it's a logically contradictory concept, or
that the implementation would be difficult or near-impossible. It seems like
it would be useful. In fact, there's a place in my code that I could m... more >>
Call function under different security context
Posted by john at 9/5/2003 10:18:02 AM
Is there a way in .Net to call a function or web service
under a different security context as the one that the
user is logged into?
For example, if a user calls web service 1 (WS1), WS1 is
now running under the user's security context. Is there a
way for WS1 to call another web service,... more >>
what good are threads?
Posted by Laszlo Szijarto at 9/5/2003 9:47:50 AM
I was very excited to find out that .NET supported multi-threading. I have
long had issues with Forms freezing up while large datasets (recordsets)
were being collected or with various looping operations.
Yet I spin off separate threads to fill DataSets and do various other
operations, and my... more >>
How do you clear screen or execute an OS level task
Posted by Sam at 9/5/2003 9:33:08 AM
Sorry one of those "C" type transistion questions which I
could find no answer for in existing C# text books.
In C, I used to use the system function call to execute
programs synchronously.
To clear the screen, for console based programs, I used
to include the following statement in my... more >>
Opening a new browser window
Posted by Richard Salit at 9/5/2003 8:33:15 AM
This seems like an easy question but I can't find the
answer. How do I open a new browser window from my web
application? I want to open the window and run a report
in that window.
Thanks,
Richard Salit... more >>
Finding Memory Used?
Posted by Sean at 9/5/2003 6:45:38 AM
I'm trying to find out the amount of memory used by a data
structure (Hashtable) in a program.
If I look at the values for "Mem Usage" and "VM Size"
under the processes tab in the Windows Task manager, the
size increase seems to alot greater than if I just add up
the key and the element (i... more >>
Passing a C# struct to a C-function...
Posted by Arne Styve at 9/5/2003 6:31:25 AM
Hi,
I have an API written in C that came with some graphics
cards we are going to use in a project. I need to write a
small application where this API is to be used, and I
decided to try out C#.
The API is imported by using the [DllImport("somedll.dll"-
method.
Now, the function in the... more >>
How Include all the dll's in the window form executable.
Posted by Dave at 9/5/2003 6:07:16 AM
How to include all the necessary dll's in the window form
executable to run it on any machine? C++ had such feature.
Thanks... more >>
"Deep" XML Serialization of objects
Posted by Jesper Denmark at 9/5/2003 5:18:20 AM
Hi,
Is deep serialization possible using XML. Know any good
tutorials?.
By deep serialization I mean the ability that an object
being serialized automatically serialize its members. E.g
Class A
{
public string x;
}
Class B
{
public string y;
public A a;
}
When seriali... more >>
Winsock active-x requires object reference?
Posted by Richy at 9/5/2003 2:52:20 AM
Hi,
I'm using a winsock active-x component in a C# program.
I can send data using the following:
byte[] buffer = new byte[10];
axWinsock1.SendData( buffer);
But to receive isn't as easy.
The prototype is show below:
axWinsock1.GetData( ref object data, object type, object
MaxLen... more >>
changing post-type when posting using webclient
Posted by lasabo at 9/5/2003 2:32:48 AM
Hi,
I'm trying to log in to a webpage automaticly, the
sourcecode for the page is:
<FORM ACTION="/login_post" METHOD="POST">
<input type="hidden" name="REDIRECT"
value="config.htm"><div align="left">
Password </font><input type="password" name="PWORD"
size="20">
<input type... more >>
C# and networking
Posted by info NO[at]SPAM hanskamp.com at 9/5/2003 1:07:21 AM
I found a useful client/server combination for newbies at
http://www.msdnaa.net/Resources/Display.aspx?ResID=1375
I typed both of the programs and I ran them on one of my 2 computers (I have
a desktop and a laptop PC).
Then I copied the client program to the laptop, connected the laptop to m... more >>
Removing a ListView item using ContextMenu
Posted by VR at 9/5/2003 12:17:24 AM
I have a form with a list view control, a button control
and a main menu with menuDelete item. Any time I am
handling a button click event or menuDelete click event I
call DeleteItem() function which removes the selected item
from the list.
If I right-click on my list, I clone menuDelete... more >>
|