all groups > c# > september 2007 > threads for tuesday september 11
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
Regular Expression Issue
Posted by Nightcrawler at 9/11/2007 9:14:14 PM
I have a file that contains multiple rows of this kind of data (I have
only included two rows)..
#TIME:12:55
C:\Documents and Settings\james\My Documents\My Music\Folder\Axwell -
I Found U (Remode).mp3
#TIME:12:56
C:\Documents and Settings\james\My Documents\My Music\Folder\Blaze
feat Mr.V ... more >>
How to color listbox items at runtime?
Posted by Me at 9/11/2007 9:03:53 PM
Hi all,
I've tried this in various ways a while back unsucessfully, but am having
another stab at it now so I thought I'd go ahead and post the question
while I'm looking into it.
I'm writing a csharp win app and want to color code the items in my
listbox dynamically depending upon the... more >>
LINQ COlumnAtrributes
Posted by wildThought at 9/11/2007 8:55:28 PM
Does anyone know how to inspect the column attributes such as name and
DBType at run time assuming one is starting with a SQLMetal generated
table?
... more >>
Return Arrays from a C# COM object
Posted by fallenidol at 9/11/2007 7:33:34 PM
Does anyone have and links or a brief summary of how to Return Arrays from a
C# COM object?
... more >>
Windows Service Dies on Exception
Posted by at 9/11/2007 6:47:18 PM
Hello:
I am working on a service. For the past month we have been simply
restarting the service daily (which defeats the point).
I have been putting some extra time into it today and have come to the
conclusion that a pop-up window is trying to open whenever an error
occurs.
However, the... more >>
how to convert bytes array?
Posted by SushiSean at 9/11/2007 5:58:01 PM
Hello, I have a question.
byte[] network = new byte[100];
And I know what in this byte array in position from 4 to 8 it is long value,
and from 10 to 12 is it ushort type.
I need do something like this
long val1 = (long)network[4-8];
ushort val2 = (ushort )network[10-12];
So I need get... more >>
Issue of Choice
Posted by at 9/11/2007 5:23:07 PM
I am not sure if this is the correct forum for this, but maybe you
guys can help.
I am stuck with my employer questioning me about DotNetNuke ( new
buzz ) to write resellable business related software. I am a fan of
using strainght ASP.NET C# and AJAX because I have more control of
source, ... more >>
DataGridView, GridView and DataList
Posted by Randy at 9/11/2007 4:20:58 PM
In VS 2005, in the Windows Controls, you have the DataGridView (which has
scrollbars).
In the WebControls, is the GridView or the DataList synonymous with the
DataGridView?
Can you have scrollbars for the GridView or DataList?
Thanks
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Access to form control in an event handler
Posted by Mike Thompson at 9/11/2007 3:45:28 PM
I have an event handler defined within a class. It has the following
signature:
static void XYZ_EventHandler (object sender, XYZEventArgs e)
From within this event handler, I want to access the contents of a textbox
on the form that is defined within the default Form1 class. Ordinarily, ... more >>
Scraper vs Sniffer
Posted by Burt at 9/11/2007 3:18:03 PM
Problem: Users of my GUI App A have to manually key in data from the GUI of
LAN legacy App B.
Question: Should I create an App to capture this App B data off the GUI (as
a screen scraper) OR
off the "wire" (as a sniffer) OR some other solution ? Which is "easier" ?
There is no API or docum... more >>
C# and WebBrowser component question
Posted by Fawzib Rojas at 9/11/2007 2:01:23 PM
I have an app with a WebBrowser component and I'm setting the the
ObjectForScripting component so the object can be used from javascript.
The object has a Scripting.Dictionary property. My problem is that in
javascript I have to use "external.dictionary.Item('x')" to get the
items instead o... more >>
Is there a Workflow Foundation list?
Posted by Derrick at 9/11/2007 1:57:58 PM
I didn't see on in my outlook viewer.
Thanks in advance!
Derrick
... more >>
Using SMTP Client
Posted by Lilith at 9/11/2007 1:21:33 PM
Would I be correct in assuming that the SMTP Client that's part of
..NET 2.0 is incapable of handling MX lookups?
TIA,
Lilith... more >>
How to construct a string with bunch of hex numbers?
Posted by dh at 9/11/2007 1:14:02 PM
If there's bunch of hex numbers: 0xA6, 0xD9, 0x00, 0xAA, 0x00, and 0x62, how
to construct a string ("string" in C#) with those hex numbers?
Thanks!... more >>
DLL loading Question
Posted by DaveP at 9/11/2007 12:49:29 PM
How can i dynamically load a Dll and unload said Dll
using c#
i have a Situation where i have many dlls that are client based and only
need to be loaded and code executed based on client ID.
for instance
i have a Service Running the gets Record sets for output file formating
based on clien... more >>
Button click - form update?
Posted by Justin Rich at 9/11/2007 12:39:27 PM
So another simple question from me :)
as im working away ive made a button that does a series of wonderful
things.. and as it goes along it suppose to update a label to let the user
know what stage its at... but.. the rendering isnt done until after the code
is completed... how do i tell it... more >>
Primary Key Count
Posted by Jay at 9/11/2007 12:12:01 PM
I'm trying to export some data from one database and upload it to another and
I want to keep the routine generic. My problems is that a couple of the
tables have two fields in the primary key. How do I determine how many
fields in the key? It seems like Table.PrimaryKey.Length has the infor... more >>
default construct values for hashtables
Posted by hiddenhippo at 9/11/2007 12:06:15 PM
Hi,
I have a class which contains all my constant values such as;
public static readonly string[] strStringOps = {"Equals","Not
Equals","Contains"};
The above nicely assigns the values into the string array. However
I'm looking for a way of achieving the same results whilst using a
has... more >>
Passing a Form as an argument
Posted by Dom at 9/11/2007 11:47:33 AM
In VB I was able (I think, it's been a long time after all) to pass a
Form as an argument to a procedure, and then within that procedure, to
access the controls. For example,
public void MyProc (frmMain f)
if (f.OptionButton.value = 1) ...
It seems I can't do this in CSharp. What do y... more >>
Dns.GetHostAddresses()
Posted by Justin Rich at 9/11/2007 11:39:42 AM
so im pulling a list of computer names from the AD.. and then for each name
im doing a DNS lookup to get the IP... the problem is that apparently not
all of the names in the AD are in DNS... which is expected, and fine.. the
problem is that if the host isnt found the method pukes... and im not... more >>
access parent class?
Posted by Justin Rich at 9/11/2007 9:24:50 AM
i have a class Workstations which inherits collectionbase.
basically Workstations is a collection of Workstation's
my workstations collection has a property called ValidatedCount
the workstation class has a method called Validate()
what i would like to do is use the Workstations class to h... more >>
Copy(able) text
Posted by Code Monkey at 9/11/2007 8:08:34 AM
If place a file on your desktop, right click and select 'Properties',
you get a dialog box with things such as type of file, location, size
etc.
This information is selectable with a cursor and can be copied to the
clipboard.
Is this type of thing possible in a windows form type application... more >>
returning datareader with output parameter
Posted by Mike P at 9/11/2007 7:38:56 AM
How do you return a datareader from a stored procedure, but also return
an output parameter?
Here is my code, which is just returning a data reader at the moment :
_conn.Open();
SqlCommand _comm = new SqlCommand();
_comm.Connection = _conn;
... more >>
KeyEventArgs e
Posted by Claudia Fong at 9/11/2007 7:34:27 AM
I have the code below:
private void OnKeyDownHandler(object sender, KeyEventArgs e)
{
if (e.Key == Key.Return)
{
TextBox2.Text = "You Entered: " + textBox1.Text;
}
}
but when I build the website it gaves me an error of
The type or namespa... more >>
meaning
Posted by vinnie at 9/11/2007 7:21:42 AM
Does this mean Convert?
double Amout = 123;
decimal value = (decimal)Amount;
What will be value after that? 123?
Thanks
... more >>
difference
Posted by vinnie at 9/11/2007 7:07:25 AM
If i write:
double alfa = 10;
Console.WriteLine("The number is {0}", alfa");
it shows on the console: The number is 10.
Now, what the meaning if i write:
Console.WriteLine("The number is {0:xx}", alfa") ?
I know it's incorrect, i just can't figure out what does the colon and
the pa... more >>
Deleting Locked Files
Posted by randy1200 at 9/11/2007 6:56:03 AM
I'm working on an application that opens, edits, and closes Microsoft Word
2002 documents. During the debugging process, there are many instances were
the application does not terminate property and close the word file. Is there
any way to delete these word files without having to reboot the P... more >>
Reflection simple problem
Posted by Nightfall at 9/11/2007 6:52:34 AM
Dear friends,
consider the following scenario, in Visual Studio 2005 and C#
- I create a ASP.NET web service ("server") with a class MyClass and a
WebMethod SomeMethod()
- I create a client application, using "Add web reference..." and
specifying some web reference name "MyName"
Normally I... more >>
OpenFileDlg multiselect upper limit? URGENT, Please!
Posted by Jesper, Denmark at 9/11/2007 5:16:01 AM
Hi,
I'm making a post prosessing tool,. I have a directory with 832 files with
somewhat long file names. When selecting all the files using OpenfileDlg with
multiselect activated, the dialog returns with message that it could not find
all files (selected in the box). I suspect some kind of ... more >>
Web Service
Posted by Helen Trim at 9/11/2007 3:32:02 AM
I am learning about Web Services, so I am following the instructions in HOW
TO: Write a Simple Web Service by Using Visual C# .NET on the MSDN site:
http://support.microsoft.com/kb/308359/
I have entered the code but when I build it, I get an error about a file
that Visual Studio added calle... more >>
"friend" level access
Posted by Zach at 9/11/2007 3:21:45 AM
Sorry for the basic question, is there a simple way to achieve the
equivalent of C++ 'friend' level access in C#? I have two classes.
One is an some arbitrary data type I've defined, and another is an
object whose job is to manage objects of this data type. I would like
this manager type to be... more >>
Windows server and cache problems?
Posted by Supremelink at 9/11/2007 3:19:45 AM
Hi all,
I have a (in my opinion) strange problem. I created an application
that are extracting exchange rates from a web page and then inserts
those in a ms sql database.
When I=B4m running this application on my local machine, everything
works fine. All rates are updated. But when I run it... more >>
dbf question
Posted by John Prado at 9/11/2007 1:30:10 AM
I'm trying to get binary data using the VFP OleDbDriver from a dbf table
(foxpro 9), an image to be honest.
The big problem is the type of the field where this data is stored.
It's a long varchar field (do not ask me why).
When I try to use GetBytes to read the binary data I get a
Inval... more >>
OleDbType - enumeration
Posted by AA2e72E at 9/11/2007 1:24:00 AM
How can I fill an array for each type in OleDbType where column1 is the
literal and column 2 is its numeric value as string?
BigInt 20
Binary 128
etc.
Thanks.... more >>
Text based GUI
Posted by Supremelink at 9/11/2007 12:29:52 AM
Hi all!
I=B4m supposed to develop a text based application with .net 2005 and
C#.
Users shall connect to my app via Citrix, using windows CE 5.0.
Any thoughts about how to do this? Should I develop it as a Console
appliation?
I must be able to control the font size on the text I=B4m writ... more >>
All Possible Combinations of Multiple Lists
Posted by DarkSoul at 9/11/2007 12:00:00 AM
I have multiple ArrayLists, could be 2 or 3 or 10 lists, with multiple
values in them. Now what I need to do is to get a combination of all
of them.
For example, if I have 3 lists with the following values:
List 1: 3, 5, 7
List 2: 3, 5, 6
List 3: 2, 9
I would get these combinations
... more >>
Application_BeginRequest - save cookie
Posted by hiddenhippo at 9/11/2007 12:00:00 AM
hi,
i'm attempting to set a cookie which determines the last page that I
visited within my aspx 1.1 application. It seemed to me that the most
logical place would be within global.asax, and in particular within;
for example
protected void Application_BeginRequest(Object sender, EventArgs e... more >>
using using
Posted by Martijn Mulder at 9/11/2007 12:00:00 AM
When I want to invoke Dispose() automatically on an object, I can use
using(object)
{
//do something with object
}
and after the closing brace the object is Disposed(). But what get
disposed when I use code like this
override protected void OnPaint(PaintEventArgs e)
{
using(e.Gra... more >>
|