all groups > c# > october 2005 > threads for wednesday october 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 31
Threading help.
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 10/5/2005 11:07:16 PM
Hi all,
i am having c# application.
I have bunch of URL's which i want to validate.
that means i want to check whether those url's are valid or not.
When i start processing url's one by on synchronysly its taking lots of
time.
So what i want is to split above task.
I want to use threading in ... more >>
datagrid on webpage
Posted by Mike at 10/5/2005 10:12:02 PM
Hi,
I'he a datagrid in asp.net in a C# project and binded the following dataset
to it:
grdAssignments.DataSource = myDataSet.Tables[0];
but whey I run it the grid is not visible!!!?
--
Regads,
Rochdi... more >>
tapi
Posted by Dr.Sameh Ali at 10/5/2005 10:09:01 PM
I am trying to build IVR system using c# . i know that .net wrapper for tapi
does not work well. but it seems that many made it work.
So my question:
Is there any hope to find a working code that may show how to start in tapi
and utilizing Text to speach engines to respond to call?
Any hints ... more >>
Exception Management Question
Posted by jakk at 10/5/2005 9:49:36 PM
Hello All,
I have a question about how to handle exceptions. Iam working on an
ASP.NET application which has a presentation layer, Business Layer and
DataAccess Layer. Iam confused about where to handle exceptions. Say
forexample I have a requirement where certain value has to be between
30-7... more >>
Help regarding Web request
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 10/5/2005 9:41:07 PM
Hi all.
I am having application which is checking whether URL is valid or not.
I am using webrequest for this.
But it is taking lots of time as at a time of getting response may be
that url is downloaded.
So is there any other way to get response in terms of url only instead
of downloading who... more >>
Using any Data Provider
Posted by Dino Buljubasic at 10/5/2005 9:13:21 PM
Hi,
How do I write a db driven app that will work independently of data
provider. No matter whether backend is Oracle, SQL Server, mySQL or
Access, it should work smoothlesly
tx... more >>
cannot implicitly convert type obect to....
Posted by jmrieman at 10/5/2005 7:59:03 PM
I am trying to push a array or struct onto a queue then dequeue... when
dequeue'ing, it is returned at type"object"... i can see the "value" is
acutally the struct/array type however, once i get this return object I
cannot access any of the definitions/values withing the struct... heres an
e... more >>
Line control??
Posted by Danny Tuppeny at 10/5/2005 6:46:25 PM
Hi all,
Lots of MS's apps have horizontal lines in dialogs, that look very much like
thr GroupControl, but they're just single lines. Any way I can have lines
like this in my apps without having a GroupControl with three sides off the
form? ;o)
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Cast a byte array to a structure
Posted by Rich S. at 10/5/2005 5:41:02 PM
Hello,
I need to interact with the Win32 API "BackupRead," and it returns a byte
array as one of its parameters.
I need to be able to cast the first part of the byte array into a special
structure that describes the data contained in the rest of the byte array.
How can I do this? For ... more >>
Downloading images from a web server
Posted by Dino Buljubasic at 10/5/2005 5:18:42 PM
How can I download an image from a web server provided I have the url
of image (i.e. http://mypictures.com/pics/picture01.jpg) ?
Thank you... more >>
Expression in a DataForm
Posted by Steve Teeples at 10/5/2005 4:37:01 PM
I've never done database code in C#. :(
I've connected a dataform to a database and can reference all the items in
the table. I want to filter the elements though based upon the value of a
field. The field is call CategoryType of type unsignedByte. The value I
wish to filter on it '19'.... more >>
Problem accessing WMI class win32_NetworkAdapterConfiguration
Posted by Paul Steele at 10/5/2005 3:27:56 PM
I have some code that uses the WMI class win32_NetworkAdapterConfiguration
to access each adapter in a system. On 99% of the systems the code seems to
work. On a very few the code fails when trying to access the WMI object.
Here's the code:
ManagementClass objMC = new
ManagementClass(... more >>
accessing a field of another class within same namespace
Posted by Carlos at 10/5/2005 2:46:47 PM
Hi all,
I am trying to access a public field of another form class within
the same namespace. The field is public, what is the best way
to access it from a different class? I defined as
private MyNameSpace.Form1 cForm1;
and I am trying to use it later as
TextBox.Text = cForm1.TextBox.Te... more >>
Process performance counter is disabled
Posted by Max at 10/5/2005 2:13:00 PM
I'm trying to get the process id of some application and I get an error for this line:
Process [] myApplications= Process.GetProcessesByName("MyApplication");
The error says:
System.InvalidOperationException: Process performance counter is disabled, so the requested operation cannot be perf... more >>
Event log
Posted by Vai2000 at 10/5/2005 1:56:50 PM
Hi All, I have saved my Application Event Log from the MMC Console to a file
on my C: Drive...
Does any one know how to load that file in a WMI Object programmatically?
This is available to me:
'Set objWMIService = GetObject("winmgmts:" _
' & "{impersonationLevel=impersonate,(Security)}!\\... more >>
Webservice questions.
Posted by farseer at 10/5/2005 1:15:08 PM
Hi, I have a few webservice questions i'd like to bounce of you...
1. Can a webservice contain a paramterized contructor ( can't the
contructor take parameters )?
2. If two users make an initial call to a webservice, will diferent
instances of the webservice object be instantiated on the s... more >>
Console app to exit itself?
Posted by Ronnie Smith at 10/5/2005 1:03:04 PM
Hi,
I have a console app written in C# to kill a certain process. I don't want
the console to come to the foreground when run and I want it to exit itself
without waiting for the 'Press any key to continue' prompt at the end.
How can I run it so that it is hidden and once it has completed ... more >>
Get Messages from another application
Posted by Capsule at 10/5/2005 12:53:58 PM
Hi everyone!
I'm trying to get the windows messages sent to and from another
application.
I'm able to get the handle to this object, and I pass it into the
following function:
public class MyHookClass : NativeWindow {
public MyHookClass(IntPtr hWnd) {
... more >>
Best obfuscator
Posted by venky at 10/5/2005 12:27:36 PM
We are looking to obfuscate our code and other assembles. I just want
to which obfuscator to use and does anyone knows any site or article
which compares different obfuscator including pricing information.
I need a obfuscator which be integrated without my build process. i
don't need any manua... more >>
Rectangle odd behavior
Posted by at 10/5/2005 12:25:28 PM
I am having a hard time understanding the logic behind the Rectangle object.
My problem has to do with the way the rectangle treats the "Width" property.
For example, take the following rectangle object.
Rectangle myRec = new Rectangle(0, 0, 2, 2);
If you draw this rectangle on the screen ... more >>
Office application does not quit
Posted by Max at 10/5/2005 12:15:50 PM
I have the following code on a form that launches Microsoft Outlook and creates a new email message for the user:
[CODE]
Outlook.Application oApp = new Outlook.Application();
Outlook.MailItem oMail = (Outlook.MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);
oMail.HTMLBody = "SOME H... more >>
Getting path/directory of aspx file from within user control
Posted by Stephen at 10/5/2005 12:15:02 PM
I need some help with this.
I have two files
page.aspx: A page that a user calls
uc.ascx: A user control that page.aspx uses. The ascx file has HTML used
for a site background which would display one of two images. If page.aspx is
in the root directory, the displayed image has no text. ... more >>
Nulls an string
Posted by tshad at 10/5/2005 10:24:41 AM
How do you handle nulls and strings from Sql to a string value?
On a web page if the type is a VarChar going to a textbox, you can:
textbox.text = user["stringValue"];
But if an int value that could be null you need to test for DBNull.Value
first and just ignore it if it is a Null. This ... more >>
KEYUP ,KEYDOWN EVENT
Posted by ZS at 10/5/2005 10:08:03 AM
Hi,
On a form , I'm trying to trap when a shift key is pressed.
Can someone explain how the KeyUp,KeyDown and Key Press event works for Forms.
Thanks
-ZS... more >>
Problem Sending VB6 Byte Array to C#...help?
Posted by intrepid_dw NO[at]SPAM hotmail.com at 10/5/2005 10:01:11 AM
Hello, all.
I've created a C# dll that contains, among other things, two functions
dealing with byte arrays. The first is a function that returns a byte
array, and the other is intended to receive a byte array as one of its
parameters. The project is marked for COM interop, and that all
proce... more >>
Keeping forms open after the main form is closed
Posted by stumorgan NO[at]SPAM gmail.com at 10/5/2005 9:43:16 AM
There is probably an extremely simple answer to this question and I'm
just being foolish.
I have a main form (let's say FormMain) which opens other forms (let's
say Form1, Form2). How do I keep those created forms, Form1 and Form2,
from closing when I close FormMain? Right now what I'm doing... more >>
Dates from Sql
Posted by tshad at 10/5/2005 9:17:33 AM
I have a dataset with a date in it. The type is smalldatetime on Sql Server
and I am just doing a "SELECT * from x" to get it.
All my other fields are fine, but this one gives me an error of:
Specified cast is not valid.
The data that is coming back is:
2005-05-09 17:52:59.923
My C... more >>
format for double type
Posted by Carlos at 10/5/2005 8:50:24 AM
Hi all,
just wanted to know how can I just quickly round to nearest
100th, and use the first two decimal places of a double value in a textbox,
instead of all the decimals.
Thanks in advance,
Carlos
... more >>
Pretty stupid question
Posted by Justin Lazanowski at 10/5/2005 8:44:52 AM
I have been handed a program that someone else wrote to preform simple
maintenance on. I had a request to fix a minor bug, so I checked the program
out of Source Safe and attempted to just build it.
When I do, I get a build error
Could not find type 'MyProject.MyControl'. Please make... more >>
Just Test
Posted by ata at 10/5/2005 8:39:33 AM
Please do not respond !
It 's only test for learning aims
... more >>
MissingManifestResourceException
Posted by sklett at 10/5/2005 8:32:18 AM
I'm getting the exception:
<exception text>
An unhandled exception of type
'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll
Additional information: Could not find any resources appropriate for the
specified culture (or the neutral culture) in the given assembly. ... more >>
simple Visual Studio 2003 UI question
Posted by Tarren at 10/5/2005 8:32:10 AM
How can I collapse all of my methods in the viewed class at once, instead of
clicking the '+' next to each one?
Is there some magical 'double click here' and they will all collapse at
once? :)
Thanks all!
... more >>
C# OO problem
Posted by sklett at 10/5/2005 7:56:08 AM
I have created a series of classes for my business layer, data retrieval is
working fine and things seem good.
However I have quickly discovered a design flaw in my system in that my
objects aren't aware of siblings and parents.
In other words, if I have a Customer object and Customer object... more >>
MVC Patterns and Assemblies
Posted by Michael at 10/5/2005 7:04:02 AM
Hi,
I have created a WinForm application and used the MVC pattern to enabled the
client-side to be developed in ASP.NET in the future.
I have a question about the location of the various files and how many
assemblies are required to minimize the impact of changes and deployment.
Curren... more >>
Is there any difference between these two code?
Posted by Nick at 10/5/2005 6:27:18 AM
hi, all
I am just wondering if there is some difference between these two code:
I:
using(SqlDbConnection con = new .....)
{
SqlDbCommand cmd = new SqlDbCommand(strQuery, con);
cmd.ExecuteNonQuery();
}
Once the program exit the using }, the con should be disposed.
II:
SqlDbConnectio... more >>
How do I delay Windows shutdown with a Console Project in .NET?
Posted by carbon_dragon NO[at]SPAM yahoo.com at 10/5/2005 6:01:50 AM
Ok, so here is the problem. I'm working on a headless server program
implemented as a .NET C# Console project. There is a UPS mounted to
this server (though not a windows compliant UPS). I can only talk to
the UPS over a special device driver.
Through this device driver I can detect that the U... more >>
Windows Installer
Posted by Akbar khan is a Senior Database develope at 10/5/2005 5:19:02 AM
Hi Every One
I wanna to access the [TARGETDIR] in my Installer. I don't want to save the
Target Dir in to Registry. Becuase I have to use it once.
Thanks... more >>
Enums I thought they were safe to use
Posted by Rasmus at 10/5/2005 5:11:03 AM
I've been using enum as input parameter to methods in the belief that this
was a safe method of restricting the input parameters, but the example below
proves me wrong.
Is there a way to prevent this?
class Program {
enum ValidColor {
Red = 1,
Blue = 2
}
static void Prin... more >>
Form Display order
Posted by Raed Sawalha at 10/5/2005 4:13:03 AM
I've created windows application with its default form and add my function to
the form then added other form , i need to show the second form before the
default one, i can not get this work?... more >>
XML deserialization
Posted by gavkel at 10/5/2005 4:12:21 AM
Hi all
Im building an object model so I can deserialize my incoming XML and
Ive got a wee problem
My incoming XML looks like this
....
<Surnames>
<Surname>Kelly</Surname>
<AlternativeSurnames>
<AlternativeSurname>Hill</AlternativeSurname>
<AlternativeSurnam... more >>
ADO.NET and SQL
Posted by Sharat Koya at 10/5/2005 3:01:04 AM
I have object that connects to a database and fetches data for 10 tables in
the database.
Because the database schema can change I have opted for a collection of SQL
Databadpaters that fill a dataset client side. The procedure cycles through
each table and executes "select * from [i]" th... more >>
DataGrid Events - How to mark all row when user uses the keyboard
Posted by Gidi at 10/5/2005 2:22:02 AM
Hello,
I have a dataGrid that contains customers details, i made an event that when
the DataGrid is loaded the first row is marked or when some row is clicked
this row is marked, how can i do that when the user uses the Up and Down
arrows, it will mark the row that the user is on now. i tri... more >>
Installer Question?
Posted by Raed Sawalha at 10/5/2005 1:11:13 AM
I have two Question :
1) I created an installer project for my application and added it in User
Program Menu=> i wondering how can I add UnInstall Action when install in
User Program Menu.
2) when install the application i have three copies of exe file
one in desktop second in application ... more >>
Structs and delegates
Posted by Michi Henning at 10/5/2005 12:00:00 AM
Below is a bit of code that creates a delegate.
The delegate invokes a member function of a struct.
The code compiles, but has surprising behavior:
using System;
namespace ConsoleApplication1
{
public struct SimpleStruct
{
public int i;
public void assignTo... more >>
C# 3.0
Posted by SpotNet at 10/5/2005 12:00:00 AM
Hello Newsgroup,
I've seen (not too) much talk (chat sessions) and a few links about C# 3.0.
I'm a right in assuming that C# 3.0 is a long way off and next month when VS
2005 comes out, it will have C# 2.0 contained? Does anyone know if C# 3.0
release is something like VS 2002 being relea... more >>
can PDA apps be made in VS2005 C#
Posted by tindog at 10/5/2005 12:00:00 AM
I have tried to make apps in VS2005 C# for PDA, runs on emulator but fails
to deploy to pocket PC 2003 saying I need to update activesync...but have
latest ver.
Barry
... more >>
Windows Forms question
Posted by MounilK at 10/5/2005 12:00:00 AM
Hi all,
I am not sure if this is the right NG to post this question. If
that's the case please point me to the correct NG.
I have a class library(myLib.dll) which has a class(myClass) which has a
method(myClassMethod) that creates a form with a button on it. The
application tha... more >>
Can we Write a device Driver using CSharp
Posted by Ritu at 10/5/2005 12:00:00 AM
Hi All,
Can any body please tell me how i can write a device driver using CSharp.
Thanks,
Ritu
... more >>
MenuItems.Clear() Problem
Posted by Davie at 10/5/2005 12:00:00 AM
I'm developing an application on the smartphone. To reduce the size of =
the application i'm using panels where appropriate instead of forms. As =
a result of the design, I need to have different context menus on one =
form. I had tried to declare two MainMenu items and then simply switch =
t... more >>
Newbie: Thread question
Posted by Craig Lister at 10/5/2005 12:00:00 AM
I am trying to write an app that accepts many connection from a client
(TCP).
So, threads are required (I assume).
I have created a thread, but when a connection is established, I'd like to
write this to a RichEdit. So the code inside the thread code needs to access
this RichEdit control... more >>
image datatype in C#
Posted by Jason Huang at 10/5/2005 12:00:00 AM
Hi,
I have a PassWord column in SQL Server 2000 which is image datatype.
How do I transfer or decode/encode text to image datatype so that my SQL
Server recongnize it?
Any help will be appreciated.
Jason
... more >>
XML load
Posted by simon at 10/5/2005 12:00:00 AM
I created a reference in my project to SQLXMLBULKLOADLib.
Then I create an instance:
SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class bulkLoadObj = new
SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class();
bulkLoadObj.Execute("c:/data.xsd", "c:/data.xml");
and i get the following error message:
'SQLXMLBU... more >>
Get Auto id when inserting record into ms Access
Posted by James Alba at 10/5/2005 12:00:00 AM
Hey all,
I am accessing an ms access database using .NET and C#. Like so,
/* Create the database connection. */
connection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" + Name);
connection.Open();
And all is good.
My "ticket" table has the setup: auto number (P... more >>
Find Window
Posted by James Alba at 10/5/2005 12:00:00 AM
A quick question.
In C++ I always do the following to stop a user from loading two or more
instances of my application:
HWND hWndByTitle = FindWindow(NULL, "Hello World");
if (hWndByTitle != NULL)
{
/* MessageBox(NULL, "The Application is Already Open.", "Warning", MB_OK |
MB_ICONWARNING)... more >>
How to disable the horizontal scroll bar in listview
Posted by WAkthar at 10/5/2005 12:00:00 AM
Hi,
Can anyone tell me how to disable the horizontal scrollbar and make it
invisible in a listview?
Thanks in advance!!
... more >>
[Repost] MergeMenu and CloneMenu not working in VS 2005 beta 1
Posted by Neo at 10/5/2005 12:00:00 AM
Sorry for reposting, subject line was incorrect...
These are not working in Visual Studio .NET 2005 beta 1 (no such methods)
mainMenu1.MergeMenu(contextMenu1);
and
myContextMenu.MenuItems.Add(fileMenuItem.CloneMenu());
Are these being changed from Visual Studio 2003 to VS2005 ??... more >>
HELp! placeholder text for all empty elements
Posted by chinimimita at 10/5/2005 12:00:00 AM
Hi guyz,
How can I manipulate programmatically to show placeholder text for all
empty elements?
Thanks in advance.
... more >>
Suggestions for modeling
Posted by Mike at 10/5/2005 12:00:00 AM
I'm starting up on big project that will take much of my time in next year
or two. Until now I was mostly self-employed on small projects so I didn't
spent so much time modeling system before implementation. Sure, I wrote use
cases now and then, draw UML in Visio but it wasn't matter of life a... more >>
streamwriter - append?
Posted by piotrek at 10/5/2005 12:00:00 AM
Hi.
I would like to ask if there is a method to force streamwriter.writeline()
to write line at the end of existing file, or should i have write the method
for my own.
PK
... more >>
About User Controls
Posted by Raj at 10/5/2005 12:00:00 AM
Hi,
I have created a Windows 'user control' in C#.NET. This user control defines
several public 'properties' that the outer world can use to tweak the
behavior of the user control. However, whenver I drag the user control to a
Form, I noticed that the 'Windows Form Designer generated code' c... more >>
About User Controls
Posted by Raj at 10/5/2005 12:00:00 AM
Hi,
I have created a Windows 'user control' in C#.NET. This user control defines
several public 'properties' that the outer world can use to tweak the
behavior of the user control. However, whenver I drag the user control to a
Form, I noticed that the 'Windows Form Designer generated code' con... more >>
|