all groups > c# > march 2007 > threads for friday march 16
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
System.IO.Ports.SerialPort
Posted by Jimmy at 3/16/2007 8:24:36 PM
Can class SerialPort handle also USB devices?
Anyone know any samples.
Cheers,
... more >>
terminating all threads on program exit
Posted by Zytan at 3/16/2007 6:39:28 PM
Threads are not auto-terminated when the main form closes (not that
they should be). What's the best way to terminate them when the
program exits? Catch the on close message of the form, and give a
signal to the threads that they must shut down? Seems I need a
destructor for that. Forms don'... more >>
Q: Explorer command
Posted by Martin Arvidsson at 3/16/2007 6:20:00 PM
Hi!
I need my application to interact with the windows explorer.
Ie. when selecting a directory, files etc, i want to rightclick, and select
an action from the dropdown menu.
Any idea where to get information on how to program this in c# and how to
add the right information in the regis... more >>
Converting XSL-FO to PDF
Posted by news.microsoft.com at 3/16/2007 5:28:01 PM
Gi
How can I convert an XSL-FO file to a PDF?
Is there any free component?
Even a command line will do good
Thanks,
Mystique
... more >>
SqlCeDataAdapter not running Insert Command...
Posted by iKiLL at 3/16/2007 4:44:37 PM
Hi all
I am having problems getting my SqlCeDataAdapter to Update the SQL Mobile
Data base.
i am using C# CF2.
I have tried this a number of different ways. Starting with the command
builder but eventually i wrote out the entire command my self, and still
nothing.
The only thing that i c... more >>
directory listing..loop thru files
Posted by Glenn at 3/16/2007 4:09:34 PM
Hi,
My question is how to get a directory list? I'm an old C programmer,
and am having trouble finding exactly how to do this on the VC#
Express "How Do I.." help. I found Directories.GetFiles, but there are
no examples of accessing the files in a loop. If someone could give me
an example to ... more >>
Interop DllImport in Class Library
Posted by nospam at 3/16/2007 3:39:36 PM
Hello -
I am getting a compile error "Expected class, delegate, enum".
I am trying to create a Class Library in C# which wraps around an unmanaged
DLL that manages a MIDI interface.
In my Class Library code, I have tried to put a DllImport to the Win32
function MessageBox. Just to test... more >>
LINQ and binding to dataGrid
Posted by wildThought at 3/16/2007 3:07:15 PM
Playing around with LINQ and:
SqlConnection con = new SqlConnection(@"Data Source=.
\SQLExpress;Initial Catalog=Northwind;Integrated Security=SSPI");
Northwind db = new Northwind(con);
var q =
from c in db.Employees
where c.EmployeeID == 1
select new { c.FirstName, c.LastName, c.HireDate,... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
UTF-8 encoding in AJAX web application.
Posted by Allan Ebdrup at 3/16/2007 3:01:45 PM
I hava an ajax web application where i hvae problems with UTF-8 encoding oc
chineese chars.
My Ajax webapplication runs in a HTML page that is UTF-8 Encoded.
I copy and paste some chineese chars from another HTML page viewed in IE7,
that is also UTF-8 encoded (search for "china" on google.co... more >>
Sharing data between multiple dialog boxes in a winform applicatio
Posted by Eitan at 3/16/2007 2:57:03 PM
Hello,
My application, winform, need to share data between multiple dialog boxes?
What would be the best way to do it?
Thanks,
EitanB
... more >>
Mixed language DLL support outside the IDE?
Posted by David Short at 3/16/2007 2:51:00 PM
I'm missing something fairly easy.
I've a mixed language application running c# and DLL's of C++ and Fortran
code. The application works fine on the machine with the development
environment. Microsoft's C compiler and Intel's Fortran compiler. The target
machine and the development machines... more >>
in_drop-down_list
Posted by Kevin Blount at 3/16/2007 2:41:34 PM
I have a text file that contains country names in local language and
english, where the local language spelling is shown in a drop-down list
(member_country) and the english spelling is used as the list item value
and put into a database..
For example, esp_countries.txt contains:
Mexico ,M... more >>
LINQ in C#
Posted by Egghead at 3/16/2007 2:32:21 PM
Hi here,
Does LINQ only work with "var" in C#?
It only works:
int[] cc = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
var b = from p in cc where (p > 4) select p;
but not this:
int[] cc = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
int[] b = from p in cc where (p > 4) select p;
cheers,
Rober... more >>
Find in Generic.List
Posted by Allan Bredahl at 3/16/2007 2:28:58 PM
Hi All
I'm trying to use a Generic.List declared as follows (Example):
Public Class MyObj
{
Public String Name;
Public Integer Age;
}
Public Class GenericTest
{
private System.Collections.Generic.List<MyObj> TheList;
Public void Search()
{
string SearchForNa... more >>
Tree View
Posted by Jason at 3/16/2007 2:23:49 PM
Can you make the children of the parent node in a tree view into hyplinks?
Thanks
... more >>
Threading question (newbie)
Posted by Craig Buchanan at 3/16/2007 1:44:32 PM
I posted to this group, as I saw postings in the *.languages.vb suggesting
that this was the best place for threading questions.
I am attempting to write a component that watches a directory for file
additions (using FileSystemWatcher), adds the files to a queue, periodically
(using the Tim... more >>
How Windows Form Invisible
Posted by Jawad Rehman at 3/16/2007 1:33:57 PM
Hello EveryBody....
I want to hide Window Form in C#.net.e.g
I have an application in which there is one form only,when the
application runs,no form will display,but application runs.
Just like Vb6, when we write the statement
"Me.hide"
... more >>
DirectoryInfo delete and create
Posted by oren.almog NO[at]SPAM gmail.com at 3/16/2007 12:39:26 PM
Hi
I am making my first steps with C# and I don=B4t have much programming
experience so this might be trivial.
Here is the code:
class Program
{
static void Main(string[] args)
{
DirectoryInfo myDir =3D new DirectoryInfo("c:\\mydir");
if ((m... more >>
Missing the obvious...
Posted by SimeonArgus at 3/16/2007 12:13:06 PM
Okay. I have the following situation. It is a basic case where a
dynamic button needs to remove itself after an action, and handle some
minor database flags.
public partial class ReportFrame : System.Web.UI.Page
{
DBConnection DB;
//protected void Page_Load(object sender, EventArgs... more >>
Programming practices
Posted by JoeW at 3/16/2007 12:03:11 PM
I read a while back that "any object oriented programmer knows not to
store data in the user interface" what exactly does this mean and is
it the same as say querying a SQL database and have the results
returned to a text box or by using a while loop to simply write the
results to a web page as ... more >>
Removing alerts from WebBrowser control
Posted by Sin Jeong-hun at 3/16/2007 10:48:30 AM
Is it possible to modify the HTML or the script of a WebBrowser
control in DocumentCompleted event? I tried to modify it but that
caused DocumentCompleted again so the program fell in an endless loop.
The reason I'm trying to do so is to remove some specific scripts like
"alert()" because it loc... more >>
Threading!!!
Posted by Vai2000 at 3/16/2007 10:28:31 AM
Hi All, I have a Console EXE which calls a Thread...inside its module. I
want to spawn the thread in such a way that if the console.exe is killed, my
thread keeps on running ...until it finishes up
TIA
... more >>
Deleting a Record From a Data Table
Posted by Ctal at 3/16/2007 9:46:46 AM
I have an app that populates several data tables on load. Each of
these are bound to a datagrid. Above each datagrid I have several
text boxes that display the data for the active row. There are
buttons to allow the user to add, update, and delete a row in the
grid. I have an event on cell c... more >>
reflection PropertyInfo. How to select properties of the derived class?
Posted by Steve Richter at 3/16/2007 9:14:13 AM
when enumerating thru the properties of a type, how do I select only
the properties of the derived class? In the example below, the
AddrBookPrompt class is derived from the Form class. When I enumerate
the properties I get all the properties of the base class + the
properties of my derived clas... more >>
More threading newb questions
Posted by Mike P at 3/16/2007 8:48:32 AM
On the same subject of having a progress window running to keep the user
updated on the progress of a running process, once the process is
finished how do you inform the user of the results of the process in the
original form? I am trying to do this and I get the error 'cross-thread
operation n... more >>
Threading 2!
Posted by Mike P at 3/16/2007 8:25:12 AM
I am using the following code, what I need to know is, what do I do if I
want to pass parameters to DoSomeWork? I don't understand how the
callback variable is passed to DoSomeWork.
private void SpawnSomeWork()
{
IProgressCallback callback; // = ???
System.Threading.ThreadPool.Queue... more >>
Accessing SSL secured web sites from C# application.
Posted by Sin Jeong-hun at 3/16/2007 7:37:06 AM
I'm quite familiar with dealing standard HTML login and form posting.
Those could be handled using HttpWebRequest and CookieContainer. But
some web sites are SSL secured. The html pages are so complicated (too
many external JavaScripts, frames and they even blocked right mouse
click) that I used... more >>
Catch-22 in Web Application
Posted by SimeonArgus at 3/16/2007 7:28:04 AM
I have a situation that I can't seem to work around. I have a database
that lists the buttons that my application should generate. These
buttons are displayed if certain conditions are met and all previous
button clicks make sense. Sounds simple, right?
Here's the catch. C# Processes FormLoad ... more >>
How to include header file used by DLL
Posted by Dv at 3/16/2007 7:09:49 AM
I have a API lib (written in C/C++) that can be used by C/C++ project.
Now, I'm adding support to C# project.
I changed the Lib to DLL. This is easy. However, I have no idea how to
deal with the structures and constants that used to be defined in the
header file of the lib.
Where should I d... more >>
Simple Text Extent Question
Posted by dvestal NO[at]SPAM gmail.com at 3/16/2007 6:59:09 AM
Font font = new Font("Courier New", 8);
Graphics g = listBox1.CreateGraphics();
int width1 = g.MeasureString(" ", font).Width; // a space
int width2 = g.MeasureString("S", font).Width;
width1 does not equal width2. Since it's a monospace font, why not?
That's the question boiled down to it... more >>
make changes to LoginView control?
Posted by Josh Nikle at 3/16/2007 6:47:02 AM
Is it possible to change the default "Log In" link of the LoginView
control to say "Sign In" instead? I apologize if this is a
stupid question, but I'm finding my newb status in this area is
making
it hard to find information. Thanks for any help you can provide.
-Josh Nikle
... more >>
Threading guru required!
Posted by Mike P at 3/16/2007 5:11:36 AM
I am trying to write my first program using threading..basically I am
moving messages from an Outlook inbox and want to show the user where
the process is up to without having to wait until it has finished. I am
trying to follow this example :
http://www.codeproject.com/cs/miscctrl/progressdial... more >>
Virtual Event doesn't behave as expected.
Posted by Karsten Schramm at 3/16/2007 4:26:41 AM
Hi,
when I run the following code:
using System;
namespace ConsoleApplication22
{
class Program
{
static void Main(string[] args)
{
BaseClass baseClass = new BaseClass();
BaseClass inheritedBaseClass = new InheritedClass();
... more >>
Dynamic Generation of Graph....
Posted by Jawad Rehman at 3/16/2007 3:58:53 AM
Hello everybody.....
I have an excel file which is resided on server,there is some data on
the cells .Now i want to
generate dynamic graph on the basis of the data present in the excel
file using ASP.NET.
I have solution of this ,that i should use the Com component
interop.microsoft.exc... more >>
How to compare two xml documents?
Posted by Iker Llanos at 3/16/2007 3:45:26 AM
I have to xml documents. I want to compare them and show them in two treeview
controls.
The one on the left is the new version of the document and the one is the
right is the old version of the same document. So if I have a node in the new
one that it is not in the old one it means it's has... more >>
Context Menu Click event - how to Identify the object that was right clicked
Posted by Bry at 3/16/2007 3:37:10 AM
I have a context menu which is shared between a TreeView and ListView
control (both controls show the same information, similar to how
Windows Explorer works, so it makes sense to use the same menu on both
views).
What i'm struggling to do when the menuItem_Click event is fired, is
to detect ... more >>
Is there a way how to sort a DataGridViewComboBoxColumn by its DisplayMember instead of the ValueMember
Posted by Amit at 3/16/2007 3:22:06 AM
Hi All,
Is there a way how to sort a DataGridViewComboBoxColumn by its
DisplayMember instead of the ValueMember
Thanks,
Amit
... more >>
calling fortran from C#
Posted by tomamil NO[at]SPAM gmail.com at 3/16/2007 3:19:11 AM
does anyone has an idea how to do it?
... more >>
Custom Column Headers for ListView
Posted by GruBByMaster at 3/16/2007 2:35:27 AM
Hello
I want to create a custom column header that i will later insert in a
ListView. I just want to change to background color and font color in
the header. Is this possible? I seen some examples in using the
ListView OwnerDraw = ture settings, but that messes up my whole List
display capabi... more >>
Copy table with ODBC
Posted by Tomek at 3/16/2007 2:07:22 AM
Hi,
I'm new in C# programming. I received an order to create application
with ODBC technology. Application seems to be simple, It should copy
table from database, for example SQL server, to another database, for
example MySQL. I found solution with SqlBulkCopy, but I stuck with
ODBC. Do you hav... more >>
System.Diagnostics.DebuggerStepThrough() for properties
Posted by Frédéric_Wauquier at 3/16/2007 12:00:00 AM
Hi,
Has somebody know a equivalent to System.Diagnostics.DebuggerStepThrough()
for a property.
Thanks.
WAUQUIER Frederic
... more >>
Develop application compatable to CE and XP
Posted by chandu at 3/16/2007 12:00:00 AM
Hai ,
i want to develop a project which can run on WINCE 5.0 device and XP normal
system.
which project i have to select or any option to compile on two platforms..
at present i created a project using normal dotnet framework. how to change
the build option to compile with CompactFramew... more >>
getprocessimagefilenamew could not be located in the dynamic link library psapi.dll
Posted by Claire at 3/16/2007 12:00:00 AM
When trying to run a process to convert xml to xsd schema "Process p =
Process.Start("xsd.exe",xmlfilename);" I received the error message in the
subject of the thread.
The code used to work but doesn't any more. I may have installed IE7 since
last using this bit of code but it would have com... more >>
|