all groups > c# > april 2008 > threads for monday april 14
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
Widows service
Posted by Robert Bravery at 4/14/2008 11:28:00 PM
HI all,
I want to write a windows service. I also want to have a form for setting
properties for the service. Can some one help me out, get me started or
point me in the right direction
Thanks
Robert
... more >>
Constraining a generic method to struct and string
Posted by Anders Borum at 4/14/2008 10:48:20 PM
Hi!
While implementing a property manager (that supports key / value pairs), I
was wondering how to constrain T to a struct or string type. Basically, I
guess what I'm looking for is the common denominator for structs and strings
and while looking through the SDK I only noticed the IEquatab... more >>
Checking cursor type
Posted by ACS at 4/14/2008 9:05:51 PM
I have a C# application where I've grabbed a control's cursor handle
using the WINAPI function GetCursor(). This returned an IntPtr and I
want to check what type of cursor this is (arrow, sizing, hourglass,
etc.)
I've tried the following:
- Comparing the IntPtr to C#'s predefined cursor types... more >>
get thumnail images like windows explorer does
Posted by Martin Hey at 4/14/2008 8:49:31 PM
hello to all,
can somebody tell me how to retrieve the thumbnail-images of files that are
shown in explorer?
if i want to get these images from image-files i can paint on a smaller dc
or call getthumbnailimage of the image. for use with office-files i found
the following ressource:
http:... more >>
Microsoft.ReportViewer.WebForms Assembly - Configuration Error
Posted by Wendi Turner at 4/14/2008 7:06:47 PM
Configuration Error from Visual Studio 2005 .NET 2.0
This is an ASP.NET Website with a Report Viewer Component -
Microsoft.ReportViewer.WebForms & .Common included in project output
Trying to install on a remote server with websetup project and the
error is ...
Error(s) on Browse IE:
Pa... more >>
Import Excel in Word
Posted by Volker Jordan at 4/14/2008 6:10:29 PM
Hi NG,
ich versuche einen einfachen Import einer Exceldatei in eine Word Datei zu
realisieren.
Word.Application wordApp;
wordApp=new Word.Application();
wordApp.Documents.Open(....);
wordApp.Selection.InsertFile(...) importiert mir nur die Exceldatei als
Textdatei.
Wie realisiere ic... more >>
code generation/preprocessing
Posted by colin at 4/14/2008 5:33:59 PM
Hi,
Is there a way of doing simple code generation inside visual c# express
such as similar to preprocessing in c++ ?
I need to generate a library for some vector maths,
but I need to implement it for different types wich would be difficult to do
with
generic types and/or interfaces for n... more >>
how to convert this
Posted by Praveen at 4/14/2008 4:37:39 PM
got a string a="2.3944864845405107E+18"
how to convert this into a valid number. which method to use..
I was using Convert.ToInt64(a); which is going to exception.
thanks
Praveen
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ANN: 40% discount on ModelMaker 9 licenses!
Posted by Gerrit Beuze at 4/14/2008 4:28:30 PM
Hi all,
If you need some heavy duty restructuring power and/or native C# UML support:
*NOW* is a good time to order ModelMaker 9:
>>> Until 20 May 2008 <<<
highly discounted prices are available
For example: A single user license only costs Euro 189 ex. VAT!
ModelMaker 9 In short:
... more >>
datatime fields
Posted by someone@js.com at 4/14/2008 3:23:11 PM
Hi, I’m developing a global web site, have questions about the datetime
fields. How to handle if user comes from difference time zone? Any
guidelines for this? Thanks...
... more >>
Form-to-Form
Posted by Thom Little at 4/14/2008 2:45:34 PM
I am using C # .NET Framework 3.5.
I have a calling form that invokes dialog box (called form). I want a
button in the called form to change the value of a property in a control in
the calling form.
Clearly I could set a return code in the called form and have it acted on
when control is r... more >>
implement
Posted by J-L at 4/14/2008 2:33:56 PM
HI,
I don't find the method ro detect if a class implement an interface.
I try
if (MyObject implements MyInterface)
but it doesn't work.
if (MyObject is MyInterface)
work. Is it the only method to do that ?
J-L
... more >>
Down casting objects
Posted by Tem at 4/14/2008 1:49:51 PM
I have classes A,B,C,D,E,F that implement InterfaceBase.
Whats the best way to down cast obj to the correct type?
Is there a more elegant way to do this than?
Public Void DoSomething(InterfaceBase obj)
{
if(obj is A)
((A)obj).MethodThatOnlyACanDo();
else if(obj is B)
((B)obj).M... more >>
java control's image into local image
Posted by mark at 4/14/2008 12:43:02 PM
I asked this question in another newsgroup but I didn't get a complete answer.
I have a web page served by an IP Camera. The web page has a java control
that shows the image. I want to work with that image locally (do some
recognition stuff).
I know a representation of that image is on my ... more >>
WFC problem
Posted by Marco Pais at 4/14/2008 12:09:28 PM
Hi there.
I'm having a problem with a Web Service that I've created. This WS has
several simple methods, that are working fine... no problem with code.
However, when retieving a bigger number of rows, I get this error:
"The maximum message size quota for incoming messages (65536) has been... more >>
Is there a "Line" in CSharp
Posted by Dom at 4/14/2008 12:08:48 PM
VB had a "line" control, just a simple line that let you separate
controls without the wasted space of a Groupbox. Did CSharp drop
this?
Dom... more >>
A problem with resolution
Posted by Dom at 4/14/2008 12:07:01 PM
Sometimes, I have a window nicely laid out, but when it is run on
another PC, the bottom of it is lopped off. I assume this is because
of the resolution. I'm in the habit of adding code in Form_Load, like
this:
this.height = Control.top + control.height + 50
.... where Control is what I k... more >>
The height of a window banner
Posted by Dom at 4/14/2008 12:04:32 PM
How do I find the height of a window's banner, that is, the portion
that contains the window's title?
Dom... more >>
Using a Singleton within a web service
Posted by Giulio Petrucci at 4/14/2008 12:03:22 PM
Hi there,
I'm facing a weird problem in these days. First of all, let me describe
my scenario. I have a client application asking for some services to be
performed by a remote service, using a web service interface. Performing
such operations might take a long time, so the client applicatio... more >>
how to identify mail server availabitlity for a PC on cable?
Posted by Rich at 4/14/2008 11:28:01 AM
I want to build an simple email smtp client app similar to outlook except
with some custom features for a personal computer that uses comcast cable.
The owner of the computer said she doesn't have a comcast email and uses
gmail instead, but the internet service provider is comcast. This co... more >>
Delphi PChar and C#
Posted by Jure Bogataj at 4/14/2008 10:59:31 AM
Hello!
Does anybody knows how to handle this issue:
I have an Delphi DLL with following two function declaration:
function DeallocateString(lpszString : PChar) : DWORD; stdcall;
function MyFunc1(lpszInput : PChar; var lpszOutput : PChar) : DWORD;
stdcall;
This function (MyFunc1) proce... more >>
Run exe from webserver
Posted by me_asDeveloper at 4/14/2008 9:51:34 AM
Hi ,
We have been stugling with this issue for quite some time. Our basic
requirement was to develop a web based tool for windows performance
monitoring and reporting. We have been using visual studio 2005 and sql for
this. We have developed the application in windows form using c# and have
... more >>
RasEnumEntries returns only 1 dial up entry (PocketPC)
Posted by ketty_ng81@yahoo.com at 4/14/2008 9:19:56 AM
No matter how many dial up networking entries I have, the
RASWrapper.RasEnumEntries(null , null , entryNames, ref cb, out
entries); always returns the right number of elelments in entryNames
but only the first element has the connection name in it. Any idea why
this is? Thank you for your help.... more >>
TEXTBOX --- i want to select part of the text and change its style
Posted by pedro@code4cerveja.com at 4/14/2008 8:09:18 AM
TEXTBOX --- i want to select part of the text and change its style
how can i do this?
manny forums have this feature
msdn forum you select the text and press button for formating code.
thanks... more >>
how to read xml nodes using OOP
Posted by Tammy Nejadian at 4/14/2008 8:03:00 AM
Hi, can someone please let me know how I can read xml elements using object
oriented program. I created a class to use the get and set properties however
I dont know how I can pass the values from xml file to the class and use the
values in my form.
Thanks
--
Nejadian... more >>
dllImport unable to load DLL
Posted by Chris at 4/14/2008 7:47:03 AM
I have my own win app developed in VS C# 2005.
This app uses a dll file (I import methods from the library by dllimport
attribute).
The dll file is provided by another program (let's call it program AA) that
is installed on my computer.When I put my app into the folder where program
AA is in... more >>
case sensitive database and sql command parameters
Posted by Lucky at 4/14/2008 6:52:32 AM
Hi guys,
I'm having problem with case sensitive collation of SQL Database. one
my client is having case sensitive database. While developing the Data
Layer i didn't consider this scenario.
the problem is I've all Store Procedures in the Database and I'm using
sqlcommand to execute those SPs wit... more >>
.NET / Windows App, Multiple Forms / Windows...
Posted by Todd Jaspers at 4/14/2008 6:37:02 AM
Hey guys, really dumb question here... I've been doing all of my development
in the past few years as web applications. Therefore, if I need a new window
or form, I simply have it go to another page. I haven't written a Visual C++
or VB (or Delphi) application in at least 4 years and for t... more >>
DynamicAssembly, FieldBuilder and fixed size buffers
Posted by Marek at 4/14/2008 4:55:01 AM
Hi
I am trying to dynamically create the following structure using
AssemblyBuilder, TypeBuilder and DefineField:
[StructLayout(LayoutKind.Sequential, Pack = 8)]
public struct SimpleType2
{
public double dScalar1;
public fixed double dArray[5]... more >>
Thread cancelleton (backgroundworker)
Posted by csharpula csharp at 4/14/2008 4:20:20 AM
Hello,
I am using the background worker and want to provide to thread which is
activated by background worker option to check if cancelletion is legal
or not during the flow.
How can I affect the activation of bw.CancelAsync() which is made in
main thread from the thread runned by background wo... more >>
Problem with VS2008 editor: How to force insert of tab
Posted by Red at 4/14/2008 3:05:16 AM
If auto-format is turned off in VS2008, there is apparently no way to
indent a line. Under Tools->Options->Text Editor->C#->Formatting,
there are three checkboxes. Unchecking those seems to cause this
behavior.
I'd simply like to have the tab key insert a tab at the beginning of a
line. I bel... more >>
can't solve problem
Posted by cooklooks at 4/14/2008 2:53:43 AM
http://www.videoriporter.hu/vr/fs?content=/vr/player/1320/date/count... more >>
Only embed some resources in certain build configurations?
Posted by P Chase at 4/14/2008 2:37:42 AM
I have some resources in my C# Visual Studio 2005 project that are
involved with self-test. Ideally, they shouldn't be in a released
product.
These resources are embedded by virtue of having their Build Action
property set to Embedded Resource.
Is there any way to add conditions to when the... more >>
Verify E-mail address
Posted by Nikolay Podkolzin at 4/14/2008 1:13:01 AM
Good afternoon, community!
How you help me? I need to know, how could I verify e-mail address? I don't
mean ( for example: test@test.com it is valid or not) I wanna know is that
real world E-mail or not?
How could I do that?
Thank you in advance!
... more >>
c# create ms word without pop the word up
Posted by Ang at 4/14/2008 12:52:18 AM
Hi,
I'm writing the code to create a word doc, I referenced this link's code
:
http://support.microsoft.com/kb/316384/en-us
But when i click the button, it will show the doc page but i want to
change to save as without pop the doc up (for those PC without Ms word)
I add the code oWord.Ac... more >>
|