all groups > c# > april 2008 > threads for tuesday april 8
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
How to trigger a button in code
Posted by Boki at 4/8/2008 11:23:58 PM
Hi All,
private void ResendTimer_Tick(object sender, EventArgs e)
{
button_Send.Click();
}
I want to trigger a button click event in code.
I think you know this can't pass, need your advice.
Thanks.
Boki.... more >>
static methods
Posted by Tem at 4/8/2008 10:46:33 PM
Are static methods good for performance when no instance specific
reference/property is called? or is it better to just leave them as
non-static methods?
Tem
... more >>
XmlSerializer.Serialize, XmlWriter.Create and XmlDocument working together?
Posted by Andy B at 4/8/2008 8:28:31 PM
I have the following empty object:
XmlDocument ContractXmlDocument = new XmlDocument();
I was reading that you could use XmlSerializer.Serialize to serialize an
object (Contract) in this case to an XmlDocument object (above). How exactly
do you do this? I have the code for putting the obje... more >>
limit list capacity
Posted by Tem at 4/8/2008 7:27:44 PM
Is there a way to set a hard limit on the capacity of a List<>?... more >>
Copy Paste Function
Posted by BD at 4/8/2008 3:20:33 PM
I would like to use the keyboard shortcut 'ctrl + v' to paste from the
clipboard. I can't seem to figure out how to capture the keyboard
input to accomplish this. Any help is greatly appreciated.
Thanks,
BD... more >>
ListView MouseUp Event
Posted by Tom Bean at 4/8/2008 2:21:49 PM
I am trying to display a ContextMenuStrip when a user right-clicks on an
item in a ListView and have encountered a something that seems strange to
me.
When the ListView is initially populated, no items are selected. When the
first item is selected by clicking either the left or right butto... more >>
Upload from a desktop app.
Posted by AMP at 4/8/2008 12:40:53 PM
Hello, Does anyone know of any books, websites that show how to upload
data to a webserver from a desktop application using c#?
Thanks
Mike... more >>
Problem with projects not compiling
Posted by Debbie.Croft@nospamforme.com at 4/8/2008 12:37:03 PM
Can anyone tell me why I keep getting the following problem after shutting
down VS2008 and attempting to reopen my solution?
Warning 1 The referenced component 'System' could not be found.
Warning 2 The referenced component 'System.Core' could not be found.
Warning 3 The referenced component ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Parsing log file using C#
Posted by Prem Parekh at 4/8/2008 12:10:52 PM
I need code that can parse data from log file.
The log is pipe delimited and in following format:
time=2006-11-03 13:13:56| fw=199.23.48.120| user=tjolen| realm=EMEA| roles=Network Connect| src=24.141.197.139| dstname=| duration=| msg=AUT22670: Login succeeded for tjolen/EMEA.
time=2006-1... more >>
Callback a C# method out of a managed C++ dll
Posted by Sebastian Grobosch at 4/8/2008 11:49:26 AM
Hi All,
I have the following problem: I'm using a managed C++ Dll within a C#
project. I want to call a method of a C# class out of the Dll. I thought
about using delegates because of the managed C++ code. Could it
generally work with delegates? I tried it with this code, but no success:
... more >>
Copy open files?
Posted by jim at 4/8/2008 11:20:32 AM
Is there a way (using VB.Net or C#) to copy open or locked files?
Thanks!
jim
... more >>
COME ON MICROSOFT - CLEAN THIS NEWSGROUP - IT'S BECOMING UNUSABLE !!!!!!!
Posted by Pete Kane at 4/8/2008 10:24:40 AM
Stop ForEach Loop and Control Reference Problems
Posted by at 4/8/2008 10:03:16 AM
I am having a problem stopping a loop and making reference to a control. I
receive errors regarding not being able to find the control and can not stop
the loop. The following is the code I am using (while this code may not
make logical sense, it is necessary that I use it this way).
fore... more >>
format a double using System.Convert.ToString
Posted by WJ at 4/8/2008 9:42:01 AM
I can use System.Convert.ToString to convert a double to a string, but how do
I format it (say I want to keep two deimals)? Or there is another class that
is I should use? Thanks.
WJ... more >>
The business way to store personal data in database (any)
Posted by m0 at 4/8/2008 8:33:04 AM
Hello,
What is the current modern way to store private information such as credit
card, social insurrance etc... into the database. There are standards that we
have to request like FIPS.
I could use AES with 256bit keysize length, but the secret key should be
exactly 7 characters long. I... more >>
Problem occurs in loading managed C++ dll.
Posted by deep at 4/8/2008 8:31:46 AM
While trying to load a managed C++ dll getting an error "This
application has failed to start because the application configuration
is incorrect. Reinstalling the application may fix this problem.
(Exception from HRESULT: 0x800736B1)".
Can anyone give a solution why loading is failed ?... more >>
TreeNode.EnsureVisible question
Posted by schaf at 4/8/2008 8:11:42 AM
HI NG!
I have a problem which is very confusing for me.
In my app it is possible that the tree view will be cleared and
created completely new.
To provide nice usability i would like to expand all nodes, which were
expanded before the new creation of the tree view.
So I save the first child ... more >>
Test data for NUnit tests in .Net and C#
Posted by P Chase at 4/8/2008 7:56:35 AM
I have recently moved from the Java world to .Net and C#. I am writing
my first set of C# unit tests, using NUnit and Visual Studio 2005 Pro
(not Team with the integrated test stuff). I am so far always running
the tests in the NUnit GUI runner, invoked from VS Tools menu.
Some of my tests nee... more >>
FindControl in FormView
Posted by Arthur.Net at 4/8/2008 7:41:54 AM
I am having trouble finding a checkbox control within a formview. I
can find other textboxes and such in here. Any ideas?
Here is the form simplified:
<asp:FormView ID="formCategory" runat="server"
DataSourceID="dsCategoryForm">
<ItemTemplate>
<asp:CheckBoxList ID="chkUDF" runat... more >>
Connect to remote COM+ object
Posted by sjoshi23@yahoo.com at 4/8/2008 6:56:11 AM
All
I'm trying to get this to work but I'm having problems. I have added
reference to a COM+ dll to get the class (type) I need. Now this is
hosted on a remote server (SP3DSMP1) as a COM+ component.
So I tried this from a client...
Type comType = Type.GetTypeFromProgID("NTNameService.Upd... more >>
Threads problems
Posted by csharpula csharp at 4/8/2008 5:53:30 AM
Hello,
I am trying to build thread inside thread in this way:
Thread A (start)
{
successHandler = false
commandA
commandB
Thread B (start)
if (successHandler)
commandC
Handler B
{
successHandler = true
}
}
Handler A
{
end
}
Somehow I got stucked after HandlerB and... more >>
LINQ to SQL - Help with restructuring a query
Posted by Paul Prewett at 4/8/2008 4:30:01 AM
Hi -
I'm trying to get my head around LINQ to SQL and the new syntax. I have a
query that's working, but I have a feeling that it's not as clean as it could
be. I would like some guidance on how to improve it.
In short, there's a table that can have multiple entries for a single
respon... more >>
Design: Custom Exception Usage
Posted by Terrence Jones at 4/8/2008 1:08:26 AM
I have a design question that I would like to get some opinions on.
I have a class (ClassA) that uses a custom exception (ExceptionA). The
class and exception are defined together in one assembly.
I have ClassB that uses ClassA. If an ExceptionA is thrown from ClassA, the
users of ClassB... more >>
Strange problem when not in debugger
Posted by Rinaldo at 4/8/2008 12:00:59 AM
Hi,
When I start my program in the debugger, there is no problem, but when not I
get an exception.
It appears in:
private void Upload(string filename, string FTnaam)
{
MessageBox.Show("in upload.");
FileInfo fileInf = new FileInfo(filename);
... more >>
|