all groups > c# > january 2008 > threads for sunday january 27
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
Navigate Datagrid
Posted by Gina_Marano at 1/27/2008 8:57:54 PM
Hey All,
I have the following code example where the user gives me a query and
I populate a grid:
private void btnTestSQL_Click(object sender, EventArgs e)
{
DataSet ds = new DataSet();
SqlConnection conn = new SqlConnection(sSrcConnectionStr);
... more >>
Problem running commands on server from client
Posted by Kristian R. at 1/27/2008 8:27:16 PM
Hi guys
I searched a lot, but i didn't found a solution, that fits.
So you are my last hope!
I've got the following Error:
A remote side security requirement was not fulfilled during authentication.
Try increasing the ProtectionLevel and/or ImpersonationLevel.
The error occurs when I regi... more >>
visual studio editor
Posted by My interest at 1/27/2008 5:31:33 PM
Does anybody know is it possible to embed a Visual Studio editor into
your application? My application needs to allow the user write C#
script / program and then compile / and use these code in the
runtime. Compiling etc is not a problem, but I want to provide the
user with a friendly editing ... more >>
working with smaller images created from big images
Posted by wvueagle84@gmail.com at 1/27/2008 4:42:15 PM
I have the following code in which I am attempting to break a large
image up in 16x16 blocks and perform some processing on those blocks.
For debugging I would like to save each of the 16x16 blocks just to
see things working. The original image needs to stay preserved and not
changed through thi... more >>
In this specific example a null delegate give not a nullReferenceException
Posted by Tony Johansson at 1/27/2008 3:07:37 PM
Hello!
Here is a complete simple program example which consist of four classes.
There are two things in this example that are relevant for my question and
that is Timers and delegate. In this program example there is a Timer object
which has a interval set to
1 second. When this timer has el... more >>
Object equals
Posted by tshad at 1/27/2008 2:48:27 PM
I am looking at the object equals methods and am confused.
I was under the impression that o.equals compares content (not whether they
are the same object as o1==o2 does).
But in my example, this doesn't seem to be happening.
If I have a class Account and I create 2 objects with this clas... more >>
SystemEvents.PowerModeChanged from windows service
Posted by Bandu at 1/27/2008 2:14:24 PM
Hi,
I used SystemEvents.PowerModeChanged to monitor from WinForm
application and it work fine.
I put that code in to Windows service application and it not seem to
catch any power event.
Help please? How can I monitor power change event from service
application?
Regards,
Bandu... more >>
Inheritance
Posted by tshad at 1/27/2008 2:13:50 PM
I have a project with 2 classes Account and SavingsAccount which has Account
as the base.
I have penalty as a static property in both classes.
Everything else is being done in the base class.
But I have a couple of things that I am unsure of.
I want the SavingsAccount class to act exac... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Some questions about delegates
Posted by Tony Johansson at 1/27/2008 1:34:14 PM
Hello!
My first question is:
If I add n methods to a delegete will these be called in the same order that
they were added?
Assume I have this delegate declaration.
public delegete void stopMachineryDelegete();
Here I can create an instance of the delegete like this without using new.
p... more >>
Just static, not public... scope?
Posted by christery@gmail.com at 1/27/2008 1:33:22 PM
why? static works but not public on "a"...
First I thougt OK, but then... why not eaven private in the same
class...
Am I missing something about scope? Test.Program.a wont work either I
guess..
saw this as a q and now I got interested...
using System;
using System.Collections.Generic;
usi... more >>
Properties
Posted by tshad at 1/27/2008 12:53:58 PM
I have a class I set up where I can access my private variable directly or
through a property (name or Name).
I thought if it was private, I couldn't access it outside of the project?
using System;
using System.Collections.Generic;
using System.Text;
namespace TestInheritance
{
cl... more >>
An object reference is required for the non-static field, method, or property
Posted by Progress City at 1/27/2008 11:12:04 AM
Compiling the code below gives me the following error
"An object reference is required for the non-static field, method, or
property"
How do I create an object reference for the array "a"?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace... more >>
Modifying the content attribute of the meta http-equiv Refresh
Posted by Phil Johnson at 1/27/2008 9:59:00 AM
Hello,
I have an ASP.NET 2.0 application with the following meta tag to refresh the
page after a minute.
<meta http-equiv="Refresh" content="60; URL=Default.aspx" />
I need to be able to set the time to refresh dynamically though (i.e. if I
have more data, or at peak times I want to ref... more >>
Re: Icons in the exe file
Posted by Ashutosh at 1/27/2008 8:38:24 AM
Hi Nicholas,
Thanks for your response.
I have created a resource file in Visual C++ 6.0 editor and have also
compiled it to .res file. However, I don't want to compile the project from
the command line every time. So, can you please assist me where should I put
the 'win32res' flag as C# do... more >>
how to update an edited dataview item
Posted by jrl at 1/27/2008 7:51:17 AM
I have a working situation in which a datatable is filled with data, and
then I make a dataview, in order to sort it. Additionally, I want to change
the appearance of strings within the dataview, by shortening those which are
over 20 characters long. To do this, I take a copy of the particular... more >>
Notified when other top-level windows open
Posted by Sin Jeong-hun at 1/27/2008 7:24:12 AM
Is it possible to get notified in my C# application when a top-level
window is opened at another application? By top-level window, I mean
main application windows, dialog boxes, pop up windows, the sliding
notification window of Windows Live Messenger and so on. I need to get
window handles for... more >>
Picklist code sample
Posted by Andrus at 1/27/2008 12:52:54 AM
I'm creating Winforms application.
User enters first characters of customer name to Combobox in DataGridView or
in form.
I need to present list of matcing customer names and allow user to select
one customer.
This can be done in several ways:
1. Fill AutoComplete Custom source, and a... more >>
If-Modified-Since Issue
Posted by Chizl at 1/27/2008 12:24:07 AM
I wanted to add "If-Modified-Since" support in my web server..
Based on the following URL
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
A 304 (not modified) response will be returned without any message-body.
I do that, however, I cleared my IE7 cache, closed the browser, reopened, ... more >>
Copy MetaFile from the clipboard???
Posted by bern11 at 1/27/2008 12:08:53 AM
I can get bitmaps from the clipboard, but how do I get Metafiles?
The specific instance I am testing is copying a piece of Word clip-art
into the clipboard and trying to read it in an application. It appears
as a metafile type but isn't recognized as an image.
Given:
DataObj... more >>
|