all groups > c# > february 2007 > threads for tuesday february 20
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
Property Indexer
Posted by hufaunder NO[at]SPAM yahoo.com at 2/20/2007 9:24:04 PM
I have found some examples on MSDN (http://msdn.microsoft.com/library/
default.asp?url=/library/en-us/csref/html/
vcwlkIndexedPropertiesTutorial.asp), Code Project, etc about property
indexers. In these examples the indexer uses a reference back to the
main class. Why is this done this way? Why ... more >>
Error after calling System.Diagnostics.Process.GetCurrentProcess().StartTime
Posted by Matthew Lock at 2/20/2007 8:55:43 PM
Hello,
I get some strange behaviour after calling a method on a third party
library when I call:
System.Diagnostics.Process.GetCurrentProcess().StartTime
If I run the following code it works as expected:
try
{
MapInfo.Engine.Session.Current.Catalog.OpenTable(@"C:
\MapApplication\Data... more >>
Remoting/Threading
Posted by danielhamd NO[at]SPAM yahoo.com at 2/20/2007 7:17:01 PM
I am somewhat new to the concept of remoting in c#. Here is my
scenario, if anyone could give me some tips I would really appreciate
it:
I have a server program running that updates a database and a binary
file every hour - this process takes approximately 10-15 seconds to
complete. There a... more >>
Barcode scanning
Posted by djbaker NO[at]SPAM gmail.com at 2/20/2007 6:06:28 PM
Greetings,
I would like to integrate a barcode scanner into the current project I
am working on. I have been looking around teh web and with the
exception of embeded devices I cannot find many programming guides.
What I am looking for is a barcode scanner with an api/sdk. I am not
interested ... more >>
convert binary(20) to string
Posted by SM at 2/20/2007 2:47:08 PM
Hi,
I have a column with SQL Server type binary(20) (contain a sql handle, ex :
0x01000800B73B573B98C6B1030000000000000000)
I want to convert this column to string value with this code :
string sql_hndl = MyDataRow["ColWithBinaryType"].tostring;
I'm expecting '0x01000800B73B573B98C6B10... more >>
Only allow one checked checkbox in a collection
Posted by Bishman at 2/20/2007 2:43:25 PM
Hi,
I need to programmatically allow or disallow the selection of multiple
checkboxes on a form . At certain times I only want to allow a single
selection, at other times I may wish to allow multiple. Is there a way of
doing this ?
I dont want to use Radio buttons.....
Thanks,
Jon.... more >>
Convert directly from hex to signed short
Posted by rbtmaxwell NO[at]SPAM gmail.com at 2/20/2007 2:21:14 PM
Hello,
Not sure If I'm posting in the correct group here, so I appologize in
advance if I selected the wrong one.
I am trying to initialize a short with a hex value... sounds trivial
right? Well I have not found a way to do this in c# without the
compiler complaining or throwing a exception... more >>
Thread Saftey Question
Posted by Med at 2/20/2007 1:16:35 PM
Hi,
Could someone please tell me if I undrestand the concept of "Thread Saftey"
correctly in Multi-threaded web application (asp.net 2) using following
examples:
1. Class A is NOT a thread safe class:
public sealed class A
{
private static int _iCustomerId;
//Property Examp... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Taking a Screenshot of a WebBrowser on a Tab
Posted by jwgoerlich NO[at]SPAM gmail.com at 2/20/2007 12:20:18 PM
Hello group,
I have a project with several WebBrowser objects on separate tabs. I
want to take screenshots of these. I am currently using the
PrintWindow function. (Code below.) This works if the tab is open and
the WebBrowser is displayed. For browsers on other tabs, however, the
resulting b... more >>
DB connections inside constructors
Posted by weird0 at 2/20/2007 12:15:48 PM
Can i create Command,Connection objects once inside a class
constructor and use them again and again by changing their values and
destroy them instead of creating objects everytime in a class member
function.......
... more >>
polymorphism/boxing question
Posted by lorenzon NO[at]SPAM gmail.com at 2/20/2007 12:09:07 PM
I've run into a problem in some code involving two class hierarchies
that I can't figure out: I have an event hierachy topped with an
interface, let's say-
IEvent,
EventA : IEvent,
EventB : IEvent
And some handlers-
abstract EventHandler
EventHandler1 : EventHandler
Now in the abstr... more >>
lock statement question
Posted by Kurt at 2/20/2007 11:56:59 AM
Below is a class that can accessed from multiple threads and I want the =
class to be thread safe. I have a private timer member whose interval =
can be changed by different threads. Which is the correct way to define =
the property below.
Thanks
Kurt
Class1
{
private Timer _timer =3... more >>
Deploying a WinForm App
Posted by Ed at 2/20/2007 11:56:57 AM
Hi,
I have a Windows application (C# 2.0) that I have built, and I was
wondering if anyone could help me.
I am looking for ideas on how to go about making it so that when my
application is installed, it can only be used on the computer it was
installed on. I have no references to any non .... more >>
Error: Binary format of the specified custom attribute was invalid.
Posted by Eric Renken at 2/20/2007 11:44:15 AM
I have a Windows .NET 2.0 application that has been working fine for last
year, and now all of a sudden on one customers computer I am getting this
error, "Binary format of the specified custom attribute was invalid."
Here is a stack trace of the error:
at System.Reflection.CustomAttribute... more >>
f
Posted by f at 2/20/2007 11:36:40 AM
f
---
Posted via DotNetSlackers.com... more >>
Concatenated/composite primary key pros cons?
Posted by Ronald S. Cook at 2/20/2007 11:12:51 AM
My client manager likes concatenated/composite primary keys. I don't.
Can anyone forward any arguments pro or con?
Thanks,
Ron
... more >>
IEnumerable<T>.GetEnumerator( ) return value
Posted by Steve Richter at 2/20/2007 11:11:37 AM
very confused on how to implement the IEnumerable and IEnumerator
interfaces on a generic type. I understand I should just use a
foreach loop in the GetEnumerator method and use "yield return",
etc.
would like to know how implement my generic GetEnumerator to yield
return an interface to IEn... more >>
How to use StreamWriter.WriteLine with non-american characters ?
Posted by ptek at 2/20/2007 10:49:32 AM
Hi,
For example, if I do :
using System.IO;
using (StreamWriter sw =3D new StreamWriter("text.txt"))
{
sw.WriteLine("coup=E9");
}
I end up with a file containing "coup=C3=A9" instead of "coup=E9" ...
How can I solve this problem... more >>
Publishing aPP
Posted by Chris at 2/20/2007 10:07:37 AM
I have used the publish wizard to distribute app using click once. A few
questions:
1. Is there a way for me to dictate what folder on the users computer the
application gets installed into?
2. Why do I see a "reference" to the application exe and not the atucal file
exe anywhere on the ... more >>
abbreviated version please
Posted by rodchar at 2/20/2007 8:55:41 AM
hey all,
is there a shorter way to write the following:
System.Data.DataColumn[] keys = new System.Data.DataColumn[1];
// Add the column to the array.
keys[0] = dataTable.Columns[0];
// Set the PrimaryKeys property to the array.
dataTable.PrimaryKey ... more >>
Small C# program takes up too much memory
Posted by elty123 NO[at]SPAM gmail.com at 2/20/2007 8:39:58 AM
I have a small C# program (about 400 lines of code) that is only 28kb
after compiled.
However when it runs (takes a whole 5 seconds) it takes up nearly 20MB
of memory and I don't see why.
Some of the assembly I used:
using System;
using System.Collections.Generic;
using System.Windows.F... more >>
Webbrowser component 'wait to load' help...
Posted by trint at 2/20/2007 8:28:31 AM
Note: My question is after the following code.
I have this call:
Navigate2(@"http://www.mySite.com");
Using this code:
private void Navigate2(String address)
{
if (String.IsNullOrEmpty(address)) return;
if (address.Equals("about:blank")) return;
... more >>
help in c sharp
Posted by asif at 2/20/2007 8:26:32 AM
i am new with c sharp....
can u please tell me what is wrong here....
try
{
//message = _serialPort.ReadLine();
if (_serialPort.ReadLine()== "asif")
{
_serialPort.WriteLine("asif is there:");
... more >>
Add web reference programatically
Posted by bbdobuddy at 2/20/2007 7:35:00 AM
I need to add a web reference programatically on the application's load
event. Can anybody help me out with this
Thanks in advance... more >>
how to use "ServiceController.MachineName Property "
Posted by auldh at 2/20/2007 7:23:02 AM
hello,
i'm try to research the way to open a remote machine's to collect the
services and processes. i have the local data collection running but i can
not figure out what MSDN or the C# help file is stating how to use
"servicecollecter.machinename" to get the remote server's data.
there i... more >>
getting return on select
Posted by rodchar at 2/20/2007 6:02:08 AM
hey all,
i noticed when i run my stored procedure in sql studio i get a result set
from my select statement and then below that i get a return value. how about
when it's called from inside csharp. how do i get the return value then?
thanks,
rodchar... more >>
Get XPath to document node
Posted by Jesper, Denmark at 2/20/2007 5:52:08 AM
Hi,
Is there an easy way to get an XPath expression (in string format) to an
arbitrary node in a XmlDocument.
E.g.:
string s = node.XpathToString().
s = "myRoot/foo[@bar='altova']/myChild/text()"
Regards Jesper.
... more >>
Dynamic Crystal Reports
Posted by Jonix at 2/20/2007 5:49:05 AM
Hi,
somebody help me?
I need to know how can i do to create a report with c# code. The report
could exist previously but should will be empty. My idea is to create some
fields with c# code and include them into a report and posicioning and
resizing them into the report with c# code.
S... more >>
plug-in architecture help.
Posted by archana at 2/20/2007 4:51:18 AM
Hi all,
I want to monitor internet explorers instance and get events when any
IE instance is open.
I want to develope it in dot net.
how will i do this?
Any help will be truely appreciated.
thanks in advnace.
... more >>
Which installer to use
Posted by plmanikandan NO[at]SPAM gmail.com at 2/20/2007 2:46:00 AM
Hi,
I need a installer for c#.net application
I'm using visual studio 2005,.net2.0 and sql server 2000
My application is windows application.
I have two installers in mind
1.Wise installer
2.Install shield installer
I don't know which one will be best.
Most probably both have same facility.
... more >>
DataGrid?
Posted by rcoco at 2/20/2007 1:48:13 AM
hi,
I'm having problem with seeing my datagrid? Yet I set Property visible
to true and I'm caling the DataBind() what could be the Problem. I
mayed be forgetting something.. Could you please help?
Thanks?
... more >>
Can't view Crystal Report
Posted by Terren at 2/20/2007 12:37:42 AM
Hi
I am trying to view a Crystal report (8.5) using the Crystalreports
viewer for C#.net.
I have a form and the view control on it. I am using the following
code to try load the report as the database location might change from
PC to PC. The report is using a Microsoft Access Database. Ther... more >>
Copying a Record from one DataTable to Another.
Posted by Wayne Gibson at 2/20/2007 12:00:00 AM
Hi All,
Was wondering if anybody could help. I'm currently trying to copy a record
from datatable to another. I have two problems:
1) Transferring the record from one datatable to another.
2) Transferring the record from the new datatable back to the database.
Any ideas?
Thanks
Gib... more >>
Clear FireFox Browser History
Posted by vighnesh at 2/20/2007 12:00:00 AM
Hi Folks
Greetings to you all. I have been dealing a project, in which one of the
requirement is to clear
FireFox browser history programatically. Can anybody suggest me, how this
can be implemented in either VB/C#.NET?
Thanking You in Advance
Regards
Vighneswar
... more >>
using SDK 2.0
Posted by TonyJ at 2/20/2007 12:00:00 AM
Hello!!
If I want to use SDK 2.0 do I have to download .NET 2.0 first.
Or is it possible to use SDK 2.0 for .NET 1.1.
I now use the default for VS2003.
//Tony
... more >>
Transparent UserControl
Posted by serdar.c at 2/20/2007 12:00:00 AM
i have written a costum user control for my program works like an empty
windows form,
for styling and using reasons. and then i create inherited controls from
that my main form design..
everything workd great till this point.. and then my client wanted the forms
appear from full transparency... more >>
|