all groups > c# > november 2007 > threads for wednesday november 21
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 center the title of a form ?
Posted by Polaris at 11/21/2007 9:19:57 PM
Hi:
I'm programming Windows forms with C#. By default, all windows title is
left-aligned, just wonder if there is a way to make the title center-aligned
on the Windows title bar?
Thanks in advance!
Polaris
... more >>
how to - no security with NetPeerTcpBinding?
Posted by Valery at 11/21/2007 9:02:15 PM
Sorry if this is the wrong group - I am using WCF in C#.
I would like to set a non-secure (SecurityMode.None) binding for:
NetPeerTcpBinding binding = new NetPeerTcpBinding();
but binding.Security.Mode is read-only and set to
SecurityMode.Transport by default.
It is po... more >>
Report Writer Recommendations
Posted by Cramer at 11/21/2007 8:43:00 PM
I would appreciate your recommendations for report writers for .NET Windows
Forms applications.
I could google this topic to get a list - but that's not what I'm after. I
would like recommendations based on your personal experience with the report
writer(s).
I am aware of Crystal (which ... more >>
WPF book
Posted by Peter Morris at 11/21/2007 8:20:48 PM
Hi all
Can I have your recommendations for WPF books please C# preferred, but I
don't suppose it really matters.
Thanks
Pete
... more >>
avoid flickering during sizing form
Posted by R.A.F. at 11/21/2007 8:07:48 PM
Hi,
Basically i've read that under C++ we can avoid flickering forms during
sizing (maximize, minimize, restore,...) in SDi/MDI application.
I understood that for that i need to override the WndProc with WM_PAINT
and WM_SIZE messages.
however, under MFC there is a useful method called S... more >>
Triggers and stored procedures in C#
Posted by FP at 11/21/2007 7:54:02 PM
Hi,
i have read that with Visual Studio 2005 it's possible to create stored
procedures and triggers for a Sql Server 2005 database.
I must admit that i have already written the stored procedures and triggers
for my database using T-SQL,but i noticed bad performance (its kinda
slow),so i ask:wri... more >>
XmlReader error Root Element is missing
Posted by sjoshi at 11/21/2007 7:24:15 PM
I'm trying to read a simple xml file that I created but the XmlReader
keeps choking with this message
There is an error in XML document (0, 0).
----> System.Xml.XmlException : Root element is missing.
The code to read is
private static T ReadFromXml<T>(Stream s) where T: new()
{
... more >>
Printing issues on Vista
Posted by TKuehnapfel@gmail.com at 11/21/2007 7:05:21 PM
HI
I programmed a software on XP with the .Net framework 2.0. In this
software I use the following code fragment to setup the printer:
PrintDialog myPrintDialog = new PrintDialog();
myPrintDialog.Dialog.AllowCurrentPage = false;
myPrintDialog.AllowPrintToFile = false;
myPrintDialog.AllowSo... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
LINQ and Distinct method and custom IEqualityComparer
Posted by Martin Honnen at 11/21/2007 6:51:16 PM
I am playing with Visual Studio 2008 and LINQ to XML.
When trying to use the Distinct method with a custom class implementing
IEqualityComparer<XElement> I can't compile the project which I do not
understand. Maybe someone here can tell me what I am doing wrong.
Here comes the full sourc... more >>
only one MDI Children in MDI'form
Posted by Antônio_José_Formiga_Neves at 11/21/2007 5:48:26 PM
How would only accept in MDI' form one window children open at a time.
thanks... more >>
bitwise rotation in c#
Posted by Ramtin Kazemi at 11/21/2007 5:47:38 PM
Hi
How can i perform bitwise rotation in C#?
... more >>
Just curious ....
Posted by Liz at 11/21/2007 5:39:12 PM
anyone have any idea why there have been (at least) 82 VS 2008 post-release
messages here on the C# board but only 5 on the VB.NET board; are the VB
crowd just not interested??
strikes me as a significant difference but I'm not sure what to make of it
....
... more >>
vs 2008 learning guide
Posted by Gigs_ at 11/21/2007 4:59:46 PM
hi
im new to visual studio.
Is there any guide to earn it or tutorial?
Thanks!... more >>
multiple criteria switch
Posted by Emre DÝNÇER at 11/21/2007 3:26:47 PM
is it possible to have a multiple criteria switch in C#
switch(name , surname){
case "John","Smith"
break;
}
thanks in advance
... more >>
How to get line numbers when evaluating XPath-expressions?
Posted by linuxadmin@yandex.ru at 11/21/2007 2:32:53 PM
Hello everyone!
I evaluate XPath expressions using XPathNavigator and need to know for
each result, which line number (or et least file position) it has
inside the XML file.
Any ideas?
Thanks in advice!... more >>
Execute a SQL Job from C#
Posted by Dave at 11/21/2007 2:14:20 PM
How can I execute a SQL Server 2005 Job from C# in an ASP Page?... more >>
SDI application and maximilize windowsstate
Posted by R.A.F. at 11/21/2007 2:13:29 PM
Hi,
I have a SDI application in which i display children forms.
whem i click on my menu items, i should display the relative child form.
till now no problem. However, as my main form (SDI parent) can be
resized, i would like to display my children form in a maximilized
windowstate. this i... more >>
MailMessage question...
Posted by Dave at 11/21/2007 2:03:50 PM
In the Body of the MailMessage, if I wanted to have a few blank lines
below my message, how would I do that? I know that if I was in VB, I
could probably get away with CHR(13) & CHR(10).
msg.Body = "The attached text file contains Craft labor. ";
Extra Line
Extra Line
Extra Line
What ... more >>
I need something between protected and public
Posted by not_a_commie at 11/21/2007 1:39:14 PM
It seems I need one more type of member protection in my C# classes. I
run into this regularly. I've got a class X in assembly A. Class Y in
assembly B inherits from X and has a constructor that takes an
instance of X. The only way class Y can access data on the instance of
X coming into its con... more >>
Over Riding New?
Posted by TisMe at 11/21/2007 1:37:50 PM
Hi All,
I am (As you may have seen from my last two posts!) converting from VB
to C#
At the moment, I am stuck with over riding the New method of my class.
I am trying to have a new which allows the user to pass the context of
the current HTTPApp (This class will be used by a web app)
... more >>
ToString() Formatting Trick
Posted by Tom at 11/21/2007 1:36:11 PM
Hey Folks,
I have searched "hours" for where this tricky option is documented. I
can NOT find it! So, I am asking assistance on two issues >>
1) What are the formatting switches available for the ToString()
method.
2) If someone searches for the above and finds it ... Please teach me
you... more >>
Generate click event in input button in Windows.Forms.WebBrowser c
Posted by Jim Mead at 11/21/2007 1:29:03 PM
I've seen a similar question, but no answer yet.
I am automating some web interactions using the Windows.Forms.WebBrowser
control in a Windows Forms C# program. I can find input text fields in the
webBrowser.document and fill in the desired values. I can also find the Input
sumbitButton in ... more >>
passing objects into methods that do database processing?
Posted by Andy B at 11/21/2007 1:17:50 PM
Is it good (or should I say normal) practice to pass an object into a method
for database processing? Or should I stay away from that sort of thing.
... more >>
How can I force connection pooling to keep at least one connection alive ?
Posted by TheSteph at 11/21/2007 1:02:29 PM
Hi,
(using C#, VS2005, .NET 2.0.)
I sometimes need to access my database (SQL Server) in SINGLE_USER mode.
That works fine but after a few minutes the connection pooling seems to
automatically free the connection to the server, and doing so other computer
can connect to the datab... more >>
phantom namespace across assemblies
Posted by Dan Holmes at 11/21/2007 11:58:56 AM
I can't find where i have declared ICategoryService as being in the
IVS.WMS.Product namespace. I have recompiled. Deleted the obj and bin
dirs. Removed the reference. I can't figure out how the Server dll
thinks the ICategoryService interface is in the IVS.WMS.Product
namespace instead o... more >>
C# Form Processing: If Exists
Posted by Matthew Loraditch at 11/21/2007 11:58:19 AM
I have several different variations of the same form. Some include an asp
Radio Button list option called rb_monthly. If that option exists I need to
do some extra processing on the form.
The following works on the pages with the option :
if(rb_monthly != null)
{
... more >>
Wait For Multiple Events
Posted by Trecius at 11/21/2007 9:49:02 AM
Hello, Newsgroupians:
Again, I'm still migrating from Win32 to C#. I've a question regarding some
event handling in C#.
I have created an EventWaitHandle object and pass that to my worker thread.
When the EventWaitHandle is signaled, I would like my secondary thread to
exit. However, ... more >>
delete old files
Posted by Matt at 11/21/2007 9:33:45 AM
I have several folders on a server that contains files that go back 3-4 =
years. It was mentioned that keeping files that long is no longer =
needed. So my question is, is there a way to create a windows service in =
C# that can delete files in the folders that are older then 12 months?
The se... more >>
How to Get Values?
Posted by Soulless at 11/21/2007 9:28:49 AM
I am perplexed and probably not approaching this right, but I have the
following in code:
_dsSessionSer.Merge(ibrDBAccess.SybaseRetrieveDataset(lsSQL,
"SessionSer"));
I have defined _dsSessionSer as a DataSet (dsSessionSer) and
instantiate it.
It returns data into 3 columns.
I wish to... more >>
ODBC Conections
Posted by roundcrisis at 11/21/2007 9:01:49 AM
hi:
I m trying to generate ODBC connections on the fly with C# in "user
friendly way"
is there any way to bring that connection manager over from office?
or is there a better way?
cheers... more >>
best method for common functions
Posted by R.A.F. at 11/21/2007 8:26:15 AM
Hi,
From C++ world, i'm used to have a cpp file, where i placed all common
functions that i could need within different projects.
something like my own "API".
i would like to do something similar under C# but if i create a
namespace, automatically i must after create a class, enum or str... more >>
Selecting text in another application and importing it into mine
Posted by Ben at 11/21/2007 7:15:00 AM
Hi,
How can select a single word of text, in any application, e.g. Windows
Explorer, Internet Explorer etc. , without double clicking it and instead use
a combination of mouse and keyboard, for example Left Control key + Right
Mouse Button, and retrieve that word into my application.
The ... more >>
How do I get WebProxy to work in HttpWebRequest?
Posted by MrNobody at 11/21/2007 6:24:00 AM
I found an example online and when I tried repeating it with the proxy I
normally use for my browser, I get errors.
What I do is this:
WebProxy proxy = new WebProxy("http://www.autoconfig/pac", true);
That url is exactly what I enter into Firefox advanced settings to get
beyond the offi... more >>
Identifying C# job failures in SQL jobs
Posted by stainless at 11/21/2007 6:12:34 AM
I have written a C# batch windows application (.Net Framework 1.1)
that is executed via a SQL Server 2000 job step.
Everything works fine except, when my program traps a failure, I
record the error in a log, use Application.Exit, and SQL Server is
treating this as a successful step. This needs... more >>
IPC between unmanaged and managed code
Posted by Alex Y Wang at 11/21/2007 5:29:05 AM
Hi all, my current project is completely written in native C++, and
for some reason I need to write a standalone .Net program to do some
work for it. Therefore, I need to find an effective way of IPC between
my unmanaged code and managed code. What's most appropriate IPC
solution for this? Thank... more >>
Import unmanaged C++ class from dll issue
Posted by madbat87 at 11/21/2007 3:46:21 AM
Hi,
I'm trying to import code from a c++ unmanaged dll in a c# project.
In the dll there's a class named Connection, but the dll exposes only
2 methods (outside the class):
- HBITMAP DownloadIntra(char *host, int port, char *user, char *pwd,
int channel);
- Connection* CreateConnection(char ... more >>
Free unmanaged memory issue
Posted by benjo at 11/21/2007 2:41:19 AM
I'm developing a C# application that uses an ANSI C dll. I have to use
Marshal class to correctly call that function but i cannot understand
how to use those methods DestroyStructure() and FreeCoTaskMem().
Reading MSDN they seem to be different but in fact i make some
mistakes because after some... more >>
we are facing Outofmemory exception asp.net1.1 using vb.net
Posted by sudha reddy at 11/21/2007 2:36:23 AM
Hi,
While report button,the following exception is coming
System.OutOfMemory Exeception,is there any solution,send me mail.
Thanks
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Overlapped images
Posted by alessiob82@gmail.com at 11/21/2007 2:05:41 AM
Hi,
I have two gif images with transparent background...I need to put in a
control an image that is the overlap of the two source images! How can
I do this?
Thank you... more >>
Hard coded Tool button image being remove by IDE automatically
Posted by Kevin.Li at 11/21/2007 1:54:13 AM
Hi all,
Any criticism will be appreciated.
I have a project coded in VS.NET 2003, and I am moving to VS.NET 2005
and convert to Project to VS.NET 2005 Version. In the former project,
I have an object: POImageList which is type of
System.Windows.Forms.ImageList and holds 6 Images.
I add t... more >>
|