all groups > c# > december 2005 > threads for friday december 9
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
Implementing IEnumerable<T> in as abstract
Posted by Adam Clauss at 12/9/2005 8:12:52 PM
I am developing an abstract class which implements IEnumerable<T>. I need
the actual implemented methods here to be abstract as well - they will be
implemented by MY subclasses.
However, I cannot seem to get the explicit interface method to accept being
abstract.
Take the following simp... more >>
Web Browser Help Needed!
Posted by Mateusz Rajca at 12/9/2005 7:38:01 PM
Hello,
I am creating a web browser and have some questions:
1. What code should I add so instead of clicking on "Go" I can press enter?
2. How can I create Favorites?
Mateusz... more >>
Register Callback function to C++ DLL from C#
Posted by Henrik Pedersen at 12/9/2005 7:30:30 PM
Hi
I am developing a wrapper for a C++ SDK DLL built for a video capture
card. After opening all channels on the card i call the function
StartVideoCapture(IntPtr channelHandle) what is supposed to happen after
that is that when the data stream is reday the DLL should raise an event
throu... more >>
How to create an area ontop of another area
Posted by ViRi at 12/9/2005 6:28:16 PM
I am writing my own little video player, using
AxMicrosoft.MediaPlayer.Interop.AxWindowsMediaPlayer, and i want to add
stats when in fullscreen.
I am able to Draw to it with GDI+, but since there's a high framerate,
it flickers...
HWND = FindWindow("WindowsForms10.Window.8.app.0... more >>
Capturing a Screenshot of a Hidden Form
Posted by Yosh at 12/9/2005 6:13:35 PM
I want to be able to capture a screenshot of a windows form that is hidden.
My goal here is to create a form of any particular size (the size could be
larger than the screen), get a screenshot, and save it to a image file.
I know how to capture a screenshot of a form but unfortunately if part... more >>
Appending a string
Posted by Paul Roberts at 12/9/2005 5:58:34 PM
Hiya
I have a string with about 300+ characters, how can i insert a line break or
another character every 50 characters for the whole string?
Paul Roberts
... more >>
External exe call from asp.met
Posted by Gerald at 12/9/2005 5:37:19 PM
Hi Group,
I want to execute a vbs file from an aspx page.
With no success.
For instance, simple script that create a text file with 1 line in it.
Works fine from commandline or dblclicking on it.
But no luck with asp.net.
I have used :
System.Diagnostics.Process
and
Microsoft.Visual... more >>
EndTask don't work
Posted by Kevin at 12/9/2005 4:54:55 PM
Hi
I'm using EnumWindows (User32.dll) function to get all currently open
windows and fill a ListView. Then I want to close the selected windows using
EndTask(IntPtr hwnd) or EndTask(IntPtr hwnd, bool fShutDown, bool fForce)
(User32.dll) but always return false and not close de window. Does anybo... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Move row in GridView
Posted by Claus Pedersen at 12/9/2005 4:33:35 PM
Hi
Is it possible to
1: Move a row up/down serverside. Like myGridView.Rows[1].MoveUp()
I can't find any way to do this.
OR
2: Edit the datakey values on a GridViewRow. If I can do that I have
solved the move up/down problem because I can switch data between the rows.
Best regards
... more >>
ASP.NET StreamWriter error
Posted by GTi at 12/9/2005 4:17:36 PM
I have created a simple logger for my ASP.NET 2.0 application.
I have this static function.
My problem is that no data is created in the test.log file.
I have added ASPNET user account administrator rights.
What am I missing here?
namespace MyNameSpace
{
public class LOG
{
public ... more >>
How to add struct comments?
Posted by Brett Romero at 12/9/2005 2:47:59 PM
I have several structs in a DLL. When I reference this DLL in other
projects and point to any of the structs, none of the comments I've
placed with them appear. For example:
/// <summary>
/// Tracker="someserver\CORE_SQL_TEST_1"
/// Project="someserver\CORE_SQL_TEST_1"
/// </summary>
publ... more >>
Outlook Coding Problem
Posted by Saurabh Sharma at 12/9/2005 2:45:26 PM
Hi
I am reading all the mails from a particular outlook folder. I have to check
whether i have read the mail earlier or not which i am doing by checking id
of mail provided by outlook.
Problem is as the number of mails increases it becomes slow coz it goes to
everymail and check whether i ... more >>
return value from store procedure
Posted by Hrvoje Voda at 12/9/2005 2:07:50 PM
I have this code:
SqlConnection conn = null;
string Table="";
int rCount;
conn = new
SqlConnection(sConn);
conn.Open();
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "dbo.[RecepiesSearch]";
cmd.CommandType = CommandType.StoredProcedure;
cmd.Connection = conn;
... more >>
Regular Expression Help
Posted by sam at 12/9/2005 1:31:26 PM
Hello,
We have a textbox on a web form (ASP.NET 2.0 - C#) that is for end-users to
enter e-mail address(es). The valid entries are:
name@company.com
name1@company.com;name2@company.com;name3@company.com (notice no space after
the semicolon)
name1@company.com; name2@company.com; name3@compan... more >>
Running into error while transferring WIN32 project to PocketPC
Posted by Pascal Schmidt-Volkmar at 12/9/2005 1:30:21 PM
Hi there,
the code line
fixed (char* pChar = s)
throws the error
C:\Dokumente und Einstellungen\Pascal\Eigene Dateien\Visual Studio
Projects\PascalsMailer\QuotedPrintable.cs(310): Missing compiler required
member 'System.Runtime.CompilerServices.RuntimeHelpers.OffsetToStringData'
al... more >>
C# ActiveX-like User Control in .HTA file
Posted by gilad at 12/9/2005 1:03:52 PM
Hi, I am trying to make an ActiveX-like control in C# per the following
article:
http://www.c-sharpcorner.com/Code/2003/March/ActiveXInNet.asp
The control I make compiles, but when I added it to my HTML Application
(.HTA) file, it won't display. I found another article that said this
wou... more >>
ToolBox Implemetation
Posted by ZS at 12/9/2005 12:23:03 PM
Hi All,
Would any of you have a sample code to implement something similar to the
Visual Studio toolbox?
I'm trying to create a form that has a toolbar going in and out of the form.
... more >>
Console app output inside a winform app
Posted by Steve at 12/9/2005 12:01:34 PM
I have created a console app that simply prints out a message a couple
times, then exits, here is the code:
<code>
for(int i = 0; i < 10; i++)
{
System.Threading.Thread.Sleep(500);
Console.WriteLine(String.Format("Sleeping...{0}", i));
}
Console.WriteLine("Don... more >>
Page_PreInit_and_Page_Load_events_(newby)
Posted by Fred Nelson at 12/9/2005 11:41:34 AM
Hi Folks:
I have a question about the Page_PreInit and Page_Load events in a web
application.
My question is: can I count on the Page_PreInit having completed before
the Page_Load event starts. (I recall that someone told me in VS2003
that you could not count it!)
I'm using C#.NET 2005 ... more >>
DataGridView Control
Posted by dm1608 at 12/9/2005 11:21:52 AM
Can someone show me how to delete all the items within my gridviewcontrol so
I can repopulate with new data?
Thanks
... more >>
Can I use VB to contol ActiveX for .NET site?
Posted by Frank at 12/9/2005 10:59:12 AM
Any suggestions on how I should handle this?
I was asked to convert a small web application that was written in classic
ASP into ASP.NET.
The original site uses some VBScript to interface with an ActiveX control,
which is contained in a CAB file.
Somehow, I have managed to use the origina... more >>
SQL server instances list on remote IP
Posted by christof at 12/9/2005 10:29:30 AM
I've asked on sql.programming, but got no answer:
Is there a way to get all the SQL Server instances with SQL SMO from a
remote computer?
I got few instances on some remote IP and
how to list them, how to pass to the function this address - could it be
done at all?
Second question:
... more >>
string formatting...what am I doing wrong?
Posted by TJ at 12/9/2005 10:24:01 AM
Why doesn't this work?\
string _s = String.Format("{0:M/d/yyyy}","5/20/2005 12:00:00 AM);
Response.Write(_s);
It kicks back the full date and time...I just want the date to show and not
the time. What am I doing wrong?
... more >>
What class/method called my function?
Posted by Steve at 12/9/2005 10:22:56 AM
Hello --
I've been struggling with this problem for over a day now. I'd like to
know (without passing parameters) which class, and preferably, which
method of that class has called my function.
I can get the calling assembly rather easily, but let's say within
Assembly X I have
class A
... more >>
Web Service returning dataset for ASP Classic?
Posted by James at 12/9/2005 9:58:01 AM
I need to create a C# web service that returns a recordset for an ASP classic
applicaiton to consume. My problem is that so far the only thing that I have
found I can return is a dataset using ADO.NET and of course ASP classic uses
ADO and doesn't understand a dataset. Any suggestions??... more >>
System.Reflection questions
Posted by Doug at 12/9/2005 9:31:49 AM
Hi,
I have two questions about Reflection. One I think I know the answer
to but will ask anyway.
1) I can delve into a component or executable and get all the way to
the method within a class. But I can't see the code inside the method.
Is there a way to get access to that?
2) This ma... more >>
valid types for Keys (Hashtable, Dictionary)
Posted by Joseph Bergevin at 12/9/2005 9:07:03 AM
Why can't I use an int[] for a key? Doing so evidently doesn't result in
unique IDs being generated. I can convert the array into a delimited string,
which works fine, but then I have a good deal of overhead parsing/casting the
ints back.
I'd obviously use a (jagged)multidimensional array of... more >>
Writing a .exe to start a .exe
Posted by richwood NO[at]SPAM gmail.com at 12/9/2005 7:19:54 AM
Ok....Super newbie here in C#...
I am trying to write an application (myapp.exe) that will start an
application called abc.exe and if it is terminated, will restart it.
(or rerun myapp.exe) I have tried it in several scripting languages,
but they tend to use ntvdm.exe and peg the processor.
... more >>
Getting data into Excel
Posted by JPSutor at 12/9/2005 7:03:37 AM
I need to know how to take data from a dataset and write it to an Excel
spreadsheet.
Please, Please , do not send me any MSFT examples. They, for the most
part, are useless
I'm just looking for a little code snippet example
... more >>
C# Generic Constraint Improve Way (Jethro Guo)
Posted by Jethro Guo at 12/9/2005 6:52:03 AM
C++ template use constraint by signature,It's very flexible to programmer but
complex for complier, and at most time programmer can not
get clear error message from complier if error occur. C# generic use
constraint by type,complier is relaxed, but it is very limited to
programmer.Is there a... more >>
GetConstructor method and private constructors
Posted by Doug at 12/9/2005 6:33:39 AM
I am using reflection to read an assembly and I have a class that has
only a private constructor. However when I use the following method.
Type.GetConstructors(BindFlags.NonPublic);
It does not pick up the private constructor. Instead it reads that
there are no constructors. How do I ... more >>
Asynchronous socket timeout?
Posted by Franky at 12/9/2005 5:54:02 AM
Hello,
How can I set timeout on the send for an asynchronous socket? I use the
setsocketoption's timeout but it does not seem work. The program is blocked
at the socket's EndSend step until the remote side closes the connection.
Thanks in advance,
Franky... more >>
Type Conversion
Posted by apoc69 NO[at]SPAM gmx.net at 12/9/2005 4:42:27 AM
hi folks,
is that possible in c#? :
i have for example a simple field class, which contains a value, like
this:
public class Field
{
private object value;
.......
.......
public object Value
{
get { return this.value; }
set { this.value = value; }
... more >>
CompareTo on base class not sorting children
Posted by Charlie Bear at 12/9/2005 4:26:05 AM
i wonder if anyone can help...
i have an abstract class called "Message" that impliment's icompareable
on the property "TimeSent".
i have two types of messages that inherit the "Message" class - Timed
Messages and Questions.
i get some of both and put them into an array list and then use the
... more >>
C# dll import function returning -1
Posted by ofmars NO[at]SPAM gmail.com at 12/9/2005 2:59:53 AM
Hi there,
In C# I'm using a DLL import attribute to call a function from this
DLL. This function was written in an older version of Vb and I know the
name of this function and it should return an integer.
public class Class1
{
[DllImport("DllDemo")]
public static extern int ... more >>
foreach with dropdownlists
Posted by Italian Pete at 12/9/2005 2:52:02 AM
Hi,
I have some dropdownlist web controls on as aspx page. I want to loop
through them on first (!IsPostBack) Page_Load in order to populate them. The
foreach control structure seems to be a good condidate for this though I'm
having problems getting the right syntax/form. I've been trying va... more >>
Please help override property
Posted by paulsmith5 NO[at]SPAM hotmail.com at 12/9/2005 1:37:18 AM
Hi,
I've never developed in CSharp before and I'm trying to adapt an
existing user control written in CSharp. The user control inherits from
the DataGridColumn. I'd like for one of my controls properties to
override that of the DataGridColumn. Could somebody help with the
syntax? Currently my... more >>
How to associate Panel and VScrollBar in c#
Posted by Atul at 12/9/2005 1:14:06 AM
Hi All,
I have a panel on which various components are placed. I now need to
scroll the panel vertically using an exteranal VScrollBar component.
Please help me with the code on how this can be achieved.
Your help is appreciated.
Looking forward for a quick reply.
thanks & regards,
At... more >>
Unit Testing
Posted by D. Yates at 12/9/2005 12:10:05 AM
Hi,
In an effort to improve my own code and try to teach others that I work with
that unit testing IS MANDATORY. I'm interested in examples of unit testing
that other people are using.
How many folks rely on NUNIT?
Do you create a testing class per application, per class, per assembly ... more >>
Crystal Reports Export to PDF Error
Posted by Peter at 12/9/2005 12:03:06 AM
VS 2005 Pro.
I am getting the following error when I try to export a report to PDF or =
any other format using Crystal Reports 11 library. Does anyone knows =
how to fix this problem, the same code work fine in .NET 1.1
I have search for this error in Google and BusinessObjects website bu... more >>
Need help with regular expression for nested tags
Posted by Ward Bekker at 12/9/2005 12:00:00 AM
Hi,
I need a regular expression that will match only the tags that have
nested tags inside them:
Input:
<control id=1><control id=2></control></control><control id=3></control>
Goal:
The regexp should match <control id=1><control id=2></control></control>
When i use this regexp: ... more >>
about SQL Server connect string
Posted by cfyam at 12/9/2005 12:00:00 AM
How can set the SQL connect string , when I connect to SQL Server via
TCP/IP?
What else I need to do?
... more >>
Where the connectionstring to store?
Posted by ABC at 12/9/2005 12:00:00 AM
I don't know why. I have a solution which has many projects includes DAL,
BLL, componets, etc. Under DAL, it access OpenExeConfiguration to gather
connectionstring[0] (It access aspnet.mdb, but my solution is win-form!!),
which returns the value not my expected. But connectionstring[1] is r... more >>
XML Doc from xsd Newbie question
Posted by Bob at 12/9/2005 12:00:00 AM
Hi,
I am new to XML documents.
I have to write an app that will pass an XML document to a remote app. This
may be by remoting of a web service. Don't know yet.
The document structure has not been specified yet.
So I thought I could create an XML schema in my project with a best guess
structure... more >>
|