MSGROUPS.NET | Post Question | Search | About | Groups | Contact | Register | Login



microsoft public excel misc (5739)

microsoft public outlook general (4862)

microsoft public excel programming (4237)

microsoft public word docmanagement (3546)

microsoft public excel worksheet functions (3212)

microsoft public access (3187)

microsoft public windowsxp general (2052)

microsoft public windows vista mail (1635)

microsoft public office misc (1581)

microsoft public windows vista general (1516)

microsoft public windows live mail desktop (1371)

microsoft public access queries (1333)

microsoft public powerpoint (1282)

microsoft public access formscoding (1215)

microsoft public mac office entourage (1207)

microsoft public dotnet languages csharp (1191)

microsoft public access forms (1169)

microsoft public internetexplorer general (1140)

microsoft public access modulesdaovba (1077)

microsoft public windows server sbs (1066)

microsoft public greatplains (1057)

microsoft public mac office word (1026)

microsoft public outlook calendaring (966)

microsoft public excel (938)

microsoft public sqlserver programming (911)

microsoft public project server (886)

microsoft public windowsupdate (827)

microsoft public windowsxp help and support (801)

microsoft public windowsmedia player (788)

microsoft public project (786)

microsoft public access reports (768)

microsoft public mac office excel (767)

microsoft public exchange admin (757)

microsoft public dotnet framework aspnet (747)

microsoft public sqlserver server (704)

microsoft public outlook (704)

microsoft public outlook contacts (681)

microsoft public dataprotectionmanager (665)

microsoft public word vba general (641)

microsoft public windows server general (632)

microsoft public windows server active directory (589)

microsoft public outlook installation (588)

microsoft public word newusers (565)

microsoft public publisher (518)

microsoft public excel newusers (510)

microsoft public excel charting (503)

microsoft public word pagelayout (498)

microsoft public dotnet languages vb (470)

microsoft public vb general discussion (461)

microsoft public development device drivers (448)

microsoft public word application errors (437)

microsoft public office setup (430)

microsoft public sharepoint general (427)

microsoft public windowsce platbuilder (414)

microsoft public access gettingstarted (412)

microsoft public windows powershell (409)

microsoft public onenote (399)

microsoft public frontpage client (393)

microsoft public sqlserver reportingsvcs (390)

microsoft public outlookexpress general (371)

microsoft public access tablesdbdesign (354)

microsoft public pos (354)

microsoft public vc mfc (347)

microsoft public outlook program vba (341)

microsoft public windows live messenger (325)

microsoft public money (310)

microsoft public windowsxp hardware (300)

microsoft public windows 64bit general (297)

microsoft public scripting vbscript (290)

microsoft public windowsxp basics (240)

microsoft public windows mediacenter (230)

microsoft public dotnet general (227)

microsoft public mac office (198)

microsoft public nntp test (195)

microsoft public windows inetexplorer ie6 outlookexpress (194)

microsoft public win98 gen discussion (155)

microsoft public windows vista music pictures video (154)

microsoft public sharepoint setup and administration (142)

microsoft public windows vista hardware devices (130)

microsoft public dotnet framework (105)

microsoft public windows vista performance maintenance (97)

microsoft public visio (90)

microsoft public access 3rdpartyusrgrp (73)

microsoft public dotnet xml (59)

microsoft public access conversion (56)

microsoft public pt windowsxp (36)

microsoft public windows live photogallery (32)

microsoft public access developers toolkitode (32)

microsoft public dotnet faqs (15)

microsoft public dotnet framework aspnet datagridcontrol (10)


microsoft.public.dotnet.languages.csharp Post New
Items(1186) /12 Next >> Last >|
Subject Posted Replies From
Center a HtmlElement in WebBrowser

I used the WebBrowser control in my C# application. The document loaded in the WebBrowser is a long dynamically generated page. When the user select something on the form, I would like to scroll the document (animation is not required) to a corresponding HtmlElement in the document, and I want the element is located vertically center in the WebBrowser control. I used the HtmlElement's Focus() method. It surely scrolls the document and brings the element into view, but the element position is not vertically center. When the document must be scrolled, the element is located at the top

3/12/2010 11:15:12 AM 0 Sin Jeong-hun <typing...@gmail.com>
Newbie : always build

I have a solution with 2 projects (a wpf application and a dll). I would like VS to build automatically if needed each project when starting debugging (F5). I didn't find this option anywhere. Any idea ? Christian

3/12/2010 10:58:26 AM 2 "Christian Hubert-Hugoud / weabow - Xtrem7 - Groobax" <nos...@weabow.com>
The infamous and often unnecessary CS0165 compiler error

Why? Why is the commented out first line below improper? The overabundance of caution is the only thing I can figure. Not a big deal, but strictly speaking unnecessary as the program should work with this error. RL // char[] myCharacterArray; //gives: error CS0165: Use of unassigned local variable char[] myCharacterArray = new char[3]; //you must instantiate to avoid this error try { //do stuff here like... char[] myCharacterArray = new char[3]; } catch (Exception myexception) { }

3/12/2010 10:32:32 AM 1 RayLopez99 <raylope...@gmail.com>
What TypeCode to return when implementing IConvertible GetTypeCode()

When i implement IConvertible GetTypeCode() which TypeCode would i return? TypeCode.Object if it is implemented in a class? What in case if it is implemented in a struct? In general i don't know what IConvertible GetTypeCode() is used for. Can someone explain this to me? The examples i found in the msdn and the web are not helpful. Lets consider the unlikely case where i have an object that can best be represented as a boolean value. Would i then return TypeCode.Boolean to indicate that a conversion to a boolean value among the type codes represents the object best? than

3/12/2010 10:31:38 AM 0 Art <...@gmx.info>
Add a WPF form inside a dll in FW4

Hi all, I have an application which is running with a dll (VS 2010, FW4 too). I want my app to use WPF. That's OK. But I also want my dll to provide a messagebox, made with WPF. I can add in the dll a classic window form, but I didn't find how to use WPF inside the dll. I just can add a WPF usercontrol. Any help will be appreciated. Christian

3/12/2010 7:14:16 AM 1 "Christian Hubert-Hugoud / weabow - Xtrem7 - Groobax" <nos...@weabow.com>
solutions manual to A Quantum Approach to Condensed Matter Physics (Philip L. Taylor & Olle Heinonen)

I have the comprehensive instructor's solutions manuals in an electronic format for the following textbooks. They include full solutions to all the problems in the text, but please DO NOT POST HERE, instead send me email including title and edition of the solutions manual u need. NOTE: This service is NOT free My email: markrainsun( at )gmail( dot )com Here are some from my list ... solutions manual to A First Course in Differential Equations (7th ed.) Zill & Diferential Equations (5th ed.)Zill & Cullen solutions manual to A Course in Game Theory by Osborne, Rubinstein solut

3/12/2010 4:52:27 AM 0 Mark Rain <markrains...@gmail.com>
Hello,everybody,the good shoping place,the new year approaching, click in. Let's facelift bar!

Hello,everybody,the good shoping place,the new year approaching, click in. Let's facelift bar! ===== HTTP://steezeclothing.com ==== Air jordan(1-24)shoes $33 UGG BOOT $50 Nike shox(R4,NZ,OZ,TL1,TL2,TL3) $35 Handbags(Coach lv fendi d&g) $35 Tshirts (Polo ,ed hardy,lacoste) $16 Jean(True Religion,ed hardy,coogi) $30 Sunglasses(Oakey,coach,gucci,Armaini) $16 New era cap $15 Bikini (Ed hardy,polo) $25 FREE SHIPPING

3/12/2010 4:04:45 AM 0 marrylin <lin.jiany...@hotmail.com>
Disk check

Is there any way to do a disk check on just one file? For example, to detect if a particular file is affected by bad sectors without scanning the entire file system?

3/12/2010 2:56:15 AM 2 CM <cmgei...@lesschancecounter.com>
How to sort List<...> -- created using LinQ?

I found a nice LinQ function for GetFiles with multiple search patters (multiple file types -- *.jpg, *.bmp, *.gif). This seems to work nicely except that my list of files has an alphabetical ordering like a1.jpg a2.jpg a1.bmp a2.bmp b1.jpg b2.jpg b1.bmp b2.bmp ... and the routine is listing/sorting all the .jpg's first and then the .bmps, .gifs. a1.jpg a2.jpg b1.jpg b2.jpg a1.bmp a2.bmp b1.bmp b2.bmp In windows explorer the files are listed/sorted by filename alphabetically as desired. a1.bmp a1.jpg a2.bmp a2.jpg b1.bmp b1.jpg b2.bmp b2.jpg ...

3/11/2010 10:38:19 PM 3 Rich P <rpng...@aol.com>
InvokeRequired? (multithreading)

It looks to me like InvokeRequired() is returning an unexpected result. I have a multi-threaded app, and know it's a good idea to put all functionality related to a Windows Forms control on the same thread. I have a class which inherits from Form. When I construct an object of this class, I print out the value for Thread.CurrentThread.ManagedThreadId. In all of the functions in my class, I have the same structure: public delegate void functionNameCallback(); public void functionName() { if (this.InvokeRequired) { functionNameCallback e = new functionNameCallbac

3/11/2010 4:01:09 PM 8 Julie <julievogelm...@gmail.com>
SOS,how to load a invalid or damaged .gif file to create Image Object.

hi everyone. my question is this:how to load a .gif image file that is invalid or damaged image format? Notice,I want to load the invalid damaged image file to operate it. my code is below,but all of they are not correct. -------- 1.Image.FromFile(fileName);load from a file directly,it throws a OutOfMemoryException.In msdn,it's mean the file is a invalid image format. 2.Image.FromStream(stream);load from stream,it throws a ArgumentException. -------- ps:IE and Google Picasa can load and display the damaged .gif file correct.

3/11/2010 3:31:26 PM 8 "zooots" <show...@163.com>
Linq join over 2 datacontexts

Hi, I require two datacontexts to manage users, one to manage details, and the other for authentication. I am attempting to build a list of User business objects, but I keep getting the "The query contains references to items defined on a different data context" exception. I have fiddled with GetUserDetails() to return IQueryable or IEnumerable, but neither solution works. Anyone know how I can get the following to work? public static List<BO.User> GetUsers(this Table<User> source, int groupID) { ACEDataContext dc = (ACEDataContext)source.Context;

3/11/2010 1:23:30 PM 2 "C." <hardi...@hotmail.com>
Is isolated storage to any good use

Hi! Is it anyone that has any good experience that isolatedstorage can be to any good use ? Yes you can write example but in reality how much use do you really have from them ? //Tony

3/11/2010 11:38:45 AM 5 "Tony Johansson" <johansson.anders...@telia.com>
Why is not my event handler called when doing serialization resp deserialization

Hi! Below is a complete rather easy program to understand that using a CustomFormatter that is defined here. What I don't understand in this program is why my four event hander are not called. According to the documentation they should be called. This one should be called before serialization. [OnSerializing] public void OnSerializingthisthod(StreamingContext context) { var2 = "This value went into the object just before serialization."; } and this should be called after serialization [OnSerialized] public void OnSerializedthisthod(StreamingContext context) { va

3/11/2010 11:11:36 AM 0 "Tony Johansson" <johansson.anders...@telia.com>
graphics in c#

i want to learn c sharp graphics plz tell me some web i want to learn more than changing background color thanks

3/11/2010 11:04:29 AM 7 sahel <nam.nam.baro...@gmail.com>
changing c sharp background

hi; i want to set a picture to the console application if u know how plz answer me i know how to chang the background color but i dont know how to set a picture to it thanks for all answer ... :)

3/11/2010 10:50:18 AM 2 sahel <nam.nam.baro...@gmail.com>
Newbie : interface and eventargs

Hi all, I use an interface to expose a class (within a dll). I also have a factory that provides objects (here : Profile), using the factory. It's running fine. In these Profiles, I have Events. That's running fine too. The problem I can't solve yet is with the EventArgs, which is specific to the Profile class. In the event code (listener), I have the sender and the std eventargs object. I can't cast it. I suppose because the specific eventarg object isn't exposed anywhere in the interface. So how can I expose it, to be able to cast and to use its specific functions

3/11/2010 9:52:06 AM 3 "Christian Hubert-Hugoud / weabow - Xtrem7 - Groobax" <nos...@weabow.com>
Granting admin priveleges to a process started from a C# app

Hello, I wrote a C# GUI application that I use to install, uninstall, start, and stop arbitrary Windows services. Although I would like to have handled all the gorey details in the C# code itself, I only found one example of how to do this on the Internet and I could never get it to work properly. As an alternative I decided to merely use the C# code as a GUI wrapper around running the Microsoft "installutil.exe" executable as a process. As klugey as it may seem it worked perfectly in all respects, but that was under Windows XP. When I now try use this setup on Windows 7 I

3/11/2010 7:33:01 AM 2 =?Utf-8?B?UmF5IE1pdGNoZWxs?= <RayMitch...@discussions.microsoft.com>
Newbie question : add enum flags together

Hi all, I have : public enum cStatus { Empty = 0, Initialised = 1, Loaded = 2, Unlocked = 4, Computed = 8}; I'd like to do something like that : Int32 test = cStatus.Loaded + cStatus.Computed; It doesn't work. Any idea ? Christian

3/11/2010 6:49:48 AM 5 "Christian Hubert-Hugoud / weabow - Xtrem7 - Groobax" <nos...@weabow.com>
Save setting to registry using C#

In VB.Net I do this to save my app settings: SaveSetting(Application.ProductName, "TimeInterval", "TimeIntKeyName", lblTimeInterval.Text) SaveSetting(Application.ProductName, "MyAppCurDir", "myAppKeyName", strCurDir) In my C# migration efforts I have encountered yet another struggle -- with the Registry. After googling/binging/checking BOL, I have not seen anything that resemebles my sample above in C#. The samples I did find I am not sure how to implement them as none of these samples were straight forward like the VB.Net sample above. Instead of wrecking the registry by ex

3/10/2010 8:39:29 PM 1 Rich P <rpng...@aol.com>
Form becomes disabled/text invisible

Hi, I have a class that inherits from Form. It's pretty simple; it displays text. I have multiple of these, which get constructed dynamically. Unfortunately, if I click on one of these Forms, it becomes disabled, and the text inside of it is no longer visible (the scroll bar is no longer visible, etc.). In fact, it causes the rest of the windows to become disabled as well. It's as if the application has become too busy to maintain the Form's visibility. The application is multi-threaded. What's going on? Thanks. Julie

3/10/2010 8:05:38 PM 3 Julie <julievogelm...@gmail.com>
Virtual methods and late binding

hi 1) One definition of binding is that it is the act of replacing function names with memory addresses. a) Thus I assume early binding means function calls are replaced with memory addresses during compilation process, while with late binding this replacement happens during runtime? b) Why are virtual methods also considered early bound (thus the target method is found at compile time, and code is created that will call this method)? As far as I know, with virtual methods the call to actual method is resolved only during runtime and not compile time?! 2) Assume: =95 B

3/10/2010 7:53:06 PM 4 trubar a <asponmy...@gmail.com>
DBTYP.NET Studio 2010 - Database Comparison Suite Released

DBTYP.NET Studio 2010 - Database Comparison Suite Released Vienna, Austria - March 8, 2010 Today, BYPsoft announced the availability of DBTYP.NET Studio 2010, the newest version of the cross-database comparison tool that compares SQL Server, MySQL and Oracle databases (schema and data). DBTYP.NET Studio 2010 is available for download from http://www.bypsoft.com. With its rich support for schema and data cross-database comparison, DBTYP.NET Studio takes the mystery out of databases, making their comparison practical and easy for programmers and database administrators everywh

3/10/2010 7:18:56 PM 0 <Tommy>
CTE Infinite Recursion

I have a situation where you can have an infinite recusion. There is an issue where editing a page could cause infinite recursion. This would happen if a distribution folder were put into itself. It would also happen if you put folder "A" into folder "B" where folder "B" is in any of the folders contained in any of the folders found in folder "A". A little convoluted sentence but that is the problem. A is in B and B is in C If you put A into C then C will eventually point back to itself and you the recursion will continue on YOu have to have a way to say that you hav

3/10/2010 5:44:54 PM 2 "tshad" <...@dslextreme.com>
Add class in datacontext in the datacontext designer

Hi, I have a Sql Server DB with two tables, customer and order, and from the Visual Studio2008 do a DataContext of this bbdd. If from the code when I have a client, to get their orders do something similar to "myCustomer.Orders" and with this I will return the customer orders in question. So far so perfect.. But now add in the designer's DataContext, otherwise, it is not in the DB, a class called Enterprise, which has a field that is idCustomer, and I make this association in the DataContext. Why with the code can not do myCustomer.Enterprises? Thanks

3/10/2010 4:46:21 PM 0 Paul <gambam...@yahoo.es>
regular expression(Regex)

Hi! I just wonder when is it better to use regular(Regex) expression then to use substring ? //Tony

3/10/2010 4:31:03 PM 6 "Tony Johansson" <johansson.anders...@telia.com>
Threads, delegates and invoke function with 2.0

Hi, How can i invoke a function in a mutli-threading environment with .NET 2.0 ? For example, assuming each thread (in a thread polling application...) needs to invoke the writeLog function from his createDocument function: private void createDocument() { writeLog("Test"); } private void writeLog(string data) { StreamWriter sw = new StreamWriter(@"c:\temp\test.txt", true); sw.WriteLine(data); sw.Flush(); sw.Close(); } This code won't run properly because of simultaneous access to writeLog from the different threads. I know i can add a Lock into the writeLog f

3/10/2010 1:54:26 PM 7 "Melina" <nos...@nospam.com>
Sqlcommand causing memory leak

Hi, I'm struggling to find why this piece of code results in memory leak in sqlservr.exe. Could someone please help me in explaining what I'm doing wrong? using (SqlConnection con = new SqlConnection()) { con.ConnectionString = "integrated security=SSPI;data source=127.0.0.1\\ SQLEXPRESS;persist security info=False;initial catalog=XLS"; con.Open(); using (SqlCommand myCommand = new SqlCommand("UPDATE dbo.MonitorReaders SET latestRead='" + tinfo.datetime.ToString() + "' WHERE readerIp='" + ip + "'", con)) { myCommand.ExecuteNonQuery(); } con.Close(); }

3/10/2010 10:37:16 AM 7 "Pedron" <u58...@uwe>
XML Serialization with nullable values

Hello, I have been reading a lot of pages and I cannot seem to find a easy solution for my problem... I have to deserialize (and serialize) a file which looks like this: ************** <record> <field1>data1</field1> <field2 nil="true"></field2> </record> ************** That is it... no XML header, no namespace, no comments, etc... I created a class like this: ************** public class record() { public string field1 {get; set; } [XmlElement(IsNullable=true)] public int? field2 {get; set; } } ************** and tried to serialize it with: **

3/10/2010 2:26:46 AM 2 Daniel Ulfe <dul...@gmail.com>
Bitmap.Save crash when ivoked for the second time ?

Hi all, In a class I have to methods: public void Download(string imageUrl) { using (WebClient client = new WebClient()) { using (Stream stream = client.OpenRead(imageUrl)) { this.FoundBitmap = new Bitmap(stream); stream.Flush(); } } } and... public void SaveImage(string filename, ImageFormat format) { if (FoundBitmap != null) { try { FoundBitmap

3/9/2010 9:20:51 PM 9 <bart>
Binary Serialized file much larger than expected

Hi, I have a class which has 6 automatic properties (6 x 8 bytes). This means the total size of the class is 48 bytes. I have 15000 of these in a generic List. When I serialize these to disc using the BinaryFormatter I get a file which is 970kb. I would have expected closer to 48 * 15000 / 1000 = 720kb. Thoughts? Stewart

3/9/2010 9:12:26 PM 4 Stewart <stew...@button.id.au>
Error Message: debug target...is missing

I copied the following code from a book about C# programming: public class Portfolio { Stock[] stocks; public Portfolio (int numberOfStocks) { stocks = new Stock [numberOfStocks]; } public int NumberOfStocks { get { return stocks.Length; } } public Stock this [int index] // indexer { get { return stocks [index]; } set { stocks [index] = value; } } } class Test { static void Main( ) { Portfolio portfolio = new Portfolio(3); portfolio [0] = new Stock ("MSFT", 20, 1000); portfolio [1] = new Stock ("GOOG", 300, 100);

3/9/2010 7:13:02 PM 1 =?Utf-8?B?cnlndXk3Mjcy?= <ryguy7...@discussions.microsoft.com>
MID flicker

i have a parent form, and on it, in about the middle section, i want to show/swap child forms. these child forms don't have a border, caption, contextbox. etc, yet when i swap them on the parent, there is a flickering as it 1st draws the title bar, then moves it down to the position i want it. is there anyway to get rid of this flickering? if so, please provide code thx.

3/9/2010 6:58:03 PM 0 ...@b.com
OnClick Event name for Web page

I tried to send this earlier but it doesn't seem to have been sent. I am trying to figure out the OnXXXX convention for an event. It doesn't seem to be needed in an Windows Form page. But it seems to be needed on a web page. If I set up a User Control as so: ****************************************************** using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebApplication2 { public delegate void OwnerChangedEventHandler(string newOwner); public partial cla

3/9/2010 6:12:36 PM 0 "tshad" <...@dslextreme.com>
Soap is a standard so I use SoapFormatter

Hi! Soap is a standard that can be read by almost everybody. So assume that I use SoapFormatter to serialize a Person. This serializable object is send to a Java application that can read Soap. But I mean the Java application must know what kind of object that I have serialized. It can't just be enough to be able to read Soap ? //Tony

3/9/2010 6:07:28 PM 1 "Tony Johansson" <johansson.anders...@telia.com>
Connection timeout set to 5 sec but takes longer to timeout

Hi all, My Connection string timeout was set to 5 sec but commands takes much longer to timeout when there is no connection to the destination ip. Is the timeout value only helps when the ip is reachable but the sql server is not, or it should work also if the ip address is unreachable. If it should work also when the ip is unreachable, why it does not work in my case? Thanks a million, Avi public static int ExecCommand(string command, string ip) { if (String.IsNullOrEmpty(ip)) throw new ManualRedundancyException("IP address for database connection cannot b

3/9/2010 2:11:22 PM 4 "Avi" <remember...@yahoo.com>
C#, .net 3.5sp1 and Visual Studio 2008 sp1 errors list

What kind of errors will the errors list show when using C# 3.5sp1 with Visual Studio 2008sp1?

3/9/2010 1:23:31 PM 3 "Andy B." <a_bo...@sbcglobal.net>
Queue Data to another thread

Hi, I have two threads thread1 and thread2. Thread1 will give queue some data so that Thread2 will process the queued data. What mechanisms are available in c# for doing this? Thanks!

3/9/2010 11:55:01 AM 1 =?Utf-8?B?TWFhbnU=?= <Ma...@discussions.microsoft.com>
Writing to existing XML file

This is my xml-file <?xml version="1.0" ?> <call number="123" description="test call"> <def art="12" description="test" status="fixed"/> </case> I need to write to this existing xml file and add a new element e.g. <def art="09" description="test_2" status="new"/> <?xml version="1.0" ?> <call number="123" description="test call"> <def art="12" description="test" status="fixed"/> <def art="09" description="test_2" status="new"/> </case> How to do that ? Rookie

3/9/2010 11:23:38 AM 4 "Rookie" <roo...@nomail.notvalid>
OnClick Event name for Web page

I tried to send this earlier but it doesn't seem to have been sent. I am trying to figure out the OnXXXX convention for an event. It doesn't seem to be needed in an Windows Form page. But it seems to be needed on a web page. If I set up a User Control as so: ****************************************************** using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebApplication2 { public delegate void OwnerChangedEventHandler(string newOwner); public partial cla

3/9/2010 6:16:14 AM 0 "tshad" <...@dslextreme.com>
PaperSizes.Count returns 0

Hi All I have a Hp printer 1280 that is installed in windows 7. when I use following code to get Paper count. System.Drawing.Printing.PrinterSettings p = new System.Drawing.Printing.PrinterSettings(); MessageBox.Show(p.PaperSizes.Count.ToString()); it reutrns 0.I can't print from my programm but printer directly works fine.

3/9/2010 5:54:07 AM 4 "pers" <reza...@hotmail.com>
CTE unable to bind CTE table

I have the following: WITH DistributionListCTE AS ( SELECT ParentID = NULL,ChildID = 1390,MemberTypeID = 4,Level = 0 UNION ALL SELECT DistributionListID,MemberID,zdd.MemberTypeID,Level + 1 FROM DistributionList_Detail zdd JOIN DistributionListCTE dcte on dcte.ChildID = zdd.DistributionListID WHERE zdd.MemberTypeID in (2,4) ) SELECT convert(varchar,u.LastName) as Lastname FROM DISTRIBUTIONLIST_DETAIL d INNER JOIN vwSecurity_User u ON u.UserID = d.MemberID WHERE d.DistributionListID in (Select ChildID From DistributionListCTE) AND (DistributionListCTE.MemberTypeID = 1)

3/8/2010 10:37:16 PM 1 "tshad" <...@dslextreme.com>
CTE and union error on varchar field

I have a CTE that I am reading with a UNION. For some reason, it thinks the 1st field is a bit. But LastName from both tables are varchars - one is varchar(50) and the other is varchar(36). The Error I am geting is: Conversion failed when converting the varchar value 'Clartia, MD (ALCM-FT)' to data type bit. The first row does happen to be a 1 but the type of r.LastName is varchar(36) and u.LastName is varchar(50). Also, if I run the query without the UNION and only use one SELECT it works fine with both SELECTs. The one with the error is: WITH DistributionListCTE

3/8/2010 10:18:32 PM 0 "tshad" <...@dslextreme.com>
unhelpful deserialization error - cannot load type, but why?

This code - private static void Test() { using (XmlReader reader = XmlReader.Create("ExecutionPlan.xml", new XmlReaderSettings())) { XmlSerializer serializer = new XmlSerializer(typeof(TEST.ShowPlanXML)); ShowPlanXML plan = (TEST.ShowPlanXML)serializer.Deserialize(reader); Console.WriteLine(plan.Version); } } throws this exception - "Could not load type 'TEST.ShowPlanXML' from assembly 'TEST, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.":"TEST.ShowPlanXML ShowPlanXML is a 8000+ line class generated by xsd.exe from http:

3/8/2010 9:27:12 PM 0 "PJ6" <no...@nowhere.net>
Boolean to String

Hello, I am querying a XDocument as follows: Boolean test = true; IEnumerable<XElement> test1 = _albums.Root.Elements("Album").Where(a => a.Element("Active").Value == test.ToString()); IEnumerable<XElement> test2 = _albums.Root.Elements("Album").Where(a => a.Element("Active").Value == "true"); The first one where I use test.ToString() I get an empty enumeration. On the second one where I use "true" I get 4 items. What am I missing? Thanks, Miguel

3/8/2010 8:17:44 PM 2 shapper <mdmo...@gmail.com>
A better way of constructing a LINQ query

Hi folks, I�ve got a LINQ query that filters out items in a database that begin with a number. It looks like this: char[] numbers = new char[] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' }; var result = (from i in Items where numbers.Contains(i.Name[0]) orderby i.Name select i).ToList(); Now this works, but I�m sure there must be a more efficient way of doing this. Can anyone suggest a way that I can do it in a more efficient manner? Cheers, -- Dylan Parry

3/8/2010 6:35:16 PM 4 Dylan Parry <use...@dylanparry.com>
Accessing at runtime nested method's parameters values

Hi all, I have some C# code with nested method call and I would like during runtime to log on different level the values of method parameters (just like VS offers Debug-> Windows->Call Stack). Is it possible because StackTrace class does not seems to offer support of accessing parameters values, it support just paremeter types and names ? best regards, Milan.

3/8/2010 5:43:01 PM 5 =?Utf-8?B?TWlsYW4=?= <Mi...@discussions.microsoft.com>
IXmlSerializable

Hi! I'm reading a book and and it says the following "The XmlSerializer class implements the IXmlSerializable interface." If I look at the class XmlSerializer I can't see that this class is implemenring the IXmlSerializer interface so the book must be wrong. Or it or something that I have missed here. ? //Tony

3/8/2010 5:37:13 PM 0 "Tony Johansson" <johansson.anders...@telia.com>
what is these Xml attribute that is prefixed with SOAP

Hi! The only Xml attribute that I have heard about are those that start with Xml for example XmlAttibute but what on are those that start with SOAP. You have several in the code snippet ? Has these XmlAttribute that start with SOAP anything to do with the SOAPformatter ? using System; using System.IO; using System.Xml; using System.Text; using System.Xml.Serialization; public class Company { [SoapAttribute(AttributeName

3/8/2010 4:33:51 PM 1 "Tony Johansson" <johansson.anders...@telia.com>
MessageSecurityException problem in WCF

Hi, I am writing WCF based application on vs2k8. I wrote Service with name "IService" and expose given operation, [OperationContract] public Result ActionPerform(string function_name, ABase obj) { // FOR TESTING IResult res = null; res = new IResult(ResultStatus.EXCEPTION, new TestException(RelectionLibExceptionCode.CLASS_EXCEPTION, new NotImplementedException())); return res; } 1. ABase is abstract class for all client classes. 2. "function_name" will contain function name that will call by reflection for given in

3/8/2010 2:18:26 PM 4 Aimslife <momer...@gmail.com>
ANNOUNCE: Major Feature Release - NHI1-0.7, PLMK-1.6 and libmsgque-4.5

Dear User, ANNOUNCE: Major Feature Release ==================================== libmsgque: Application-Server-Toolkit for C, C++, JAVA, C#, TCL, PERL, PYTHON, VB.NET PLMK: Programming-Language-Microkernel NHI1: Non-Human-Intelligence #1 SUMMARY ======= This is a 'major-feature-release' to add 'longtime-transaction' support. A 'longtime-transaction' is a transaction with a possible infinite time period between the start and the end. A 'longtime-transaction' is always a 'persistent-transaction' too. The 'persistent' support is available a

3/8/2010 1:47:18 PM 0 Andreas Otto <aotto1...@users.sourceforge.net>
RSS live feed

Hi, I want to make an update check for some software and use RSS for that (because it=92s on sourceforge.net and they have an RSS stream for the directories). Off course Google was my friend while looking for some code to read RSS, but there=92s one thing I cannot find (not even on codeproject.com or within source code of projects on sourceforge.net). How can I make the RSS reader follow the RSS feed live? Is there an event that I can use or something like that? Or do I have to use a timer every second for instance? Or is there some code available to just listen to the RSS stream

3/8/2010 12:45:35 PM 2 Matthijs de Z <matthijsdezw...@gmail.com>
Jet Provider for x64

I have developped a Web App (in VS 2008 and C#) that can import data from an Access database. I have used ADO to connect to the specified database, using Jet Provider 4.0 for .mdb files and Jet 12.0 for .accdb files (I have installed AccessDatabaseEngine.exe from MSDN). I have successfully tested the applicatiojn on a server with WIndows 2003 (32bit) installed, but it does not work on a server with Windows 2003 64bit. I have read many forums and I have found that Microsoft does not support the 64bit version of Jet Provider: is it true? The only solution posted is to compile the a

3/8/2010 11:45:36 AM 1 maz77 <nos...@nospam.com>
Delegate for event in class

I was looking at a tutorial for events and can't figure out his worked with the delegate inside the object. using System; namespace CustomEvents { public class Car { public delegate void OwnerChangedEventHandler(string newOwner); public event OwnerChangedEventHandler OwnerChanged; private string make; private string model; private int year; private string owner; public string CarMake { get { return this.make; } set { this.make = value; } } public string CarModel { get { return this.model; }

3/8/2010 6:48:10 AM 3 "tshad" <...@dslextreme.com>
class library reference question

I was just wondering if there is a way to update a reference to a class library the way you can with a web reference. It is a bit of a pain to always have to remove it and then add it again. Z.K.

3/8/2010 4:06:29 AM 0 "Z.K." <nos...@nospam.net>
building process

Hi, I have few projects in one solution. I want to set building process to build all binaries in one folder(dlls and exe files) not pdb files. How to do this?

3/8/2010 3:34:44 AM 2 kazik <kazi...@o2.pl>
Neat GUI design

Can anyone put me in the right direction to work on an 'Outlook 2007' styled GUI? I'm trying to work out how the collapsable panels are implimented, as well as the nice resizing of the screen areas...

3/8/2010 3:31:58 AM 1 Craig Lister <cdotlis...@gmail.com>
Run my App from Function Key

Is there a way to program a windows function like F1 so that when I press it, windows launches my custom application?

3/7/2010 11:56:18 PM 3 Joe Cool <joecool1...@live.com>
comboBox from enum?

Say I want to add a comboBox to a form and have it populated with the enum of an object. Is there a way to do this quickly? I've been creating the list by hand. Thanks, Dan. Like for Markers: namespace System.Windows.Forms.DataVisualization.Charting { // Summary: // Specifies a style for markers. public enum MarkerStyle { // Summary: // No marker is displayed for the series or data point. None = 0, // // Summary: // A square marker is displayed. Square = 1, // // Summary: // A circular marker is displayed. Circle = 2,

3/7/2010 7:38:28 PM 12 DanB <...@some.net>
when do I need xml schema to handle xml serialization

Hi! My question is simple if I'm going to serialize an object do I also need to have an xml schema that define the structure of the xml ? If yes what is the normal way to create an xml schema ? //Tony

3/7/2010 6:20:20 PM 4 "Tony Johansson" <johansson.anders...@telia.com>
xml and xml schema

Hi! Here I have a method that serialize a DataSet to a file by using xml. private void SerializeDataSet(string filename) { XmlSerializer ser = new XmlSerializer(typeof(DataSet)); DataSet ds = new DataSet("myDataSet"); DataTable dt = new DataTable("myTable"); DataColumn dc = new DataColumn("thing"); dt.Columns.Add(dc); //add DataColumn to DataTable ds.Tables.Add(dt); DataRow row; for (int i = 0; i < 10; i++) { row = dt.NewRow(); row[0] = "Thing" + i; dt.R

3/7/2010 3:46:03 PM 4 "Tony Johansson" <johansson.anders...@telia.com>
plz help me .......[plz].....[i need a help [ :( ] ]

hi , every body; i want to write an easy program; if u have time plz write that code for me i want to write a program that it gets a number from user then save it in filestream i mean to see tahat number ever time that i want at that file i need a help

3/7/2010 3:04:11 PM 10 sahel <nam.nam.baro...@gmail.com>
Support for CAN protocol

Hi, Does C# has classes for handling CAN protocol? Thanks!

3/7/2010 3:00:01 PM 3 =?Utf-8?B?TWFhbnU=?= <Ma...@discussions.microsoft.com>
when to use soap and when to use xml

Hi! I'm reading in a book and it says the following. "Use XML serialization when you need to exchange an object with an application that might not be based on the .NET Framework, and you do not need to serialize any private members." In the book it also says the following. "Use SoapFormatter when other application might read your seriazed data and when sending data across a network SoapFormatter also work reliably in situations where you could choose BinaryFormatter." So according to these two text sections I can use whichever of SoapFormatter and XML serializing whan I wa

3/7/2010 12:38:02 PM 1 "Tony Johansson" <johansson.anders...@telia.com>
one major disadvantages with the binaryformatter is that you don't know what you have serialized

Hi! You have three methods to use when serializing an object and these are: 1.BinaryFormatter 2.SoapFormatter 3.XML seializing One major disadvantage with the BinaryFormatter is that you must document exactly what you have serialize because if you don't you haven't the slighest idea what you have serialized except text members. If you use XML to serialize you can see exactly what you have serialize. If you use XML to serialize insted of BinaryFormatter you will have much greater files and the perfermance will be much slower then BinartFormatter. So its probably best to us

3/7/2010 12:25:45 PM 5 "Tony Johansson" <johansson.anders...@telia.com>
LINQ: Select records but enforce one field to be unique

When selecting records by forcing one field to be unique, is it necessary to use the .Distinct(...) function with an external comparator? EX: Say you had a list of purchase records...multifields. You want to get -just- a list of people who had bought items. The 'purchaser' field must be unique, so you don't just get back the entire list, but you want to retrieve all fields in the record, so you can't just use ..Distinct(). (with no args) I've seen examples that require coding an external class, creating an instance, then passing that object to .Distinct(...) but this seems undu

3/7/2010 12:58:03 AM 7 Rob <...@no_mail_.com>
VB6 OCX In C# Windows App

Trying to use a MagTek mag card swipe reader in a C# Win app. The only API MagTek offers for Windows is via VB6 OCX (COM DLL). I can use the DL and its methods in a VB .NET app with no problems, both in VS 2008 and in direct execution of the VB app in Windows outside the IDE. I developed a simple C# app (identical to an early VB test app), to use the MagTek DLL, but the C# version fails to initialize the swipe reader with the failing code found as generated in <appname>.designer.cs. The failing statement in C#: ((System.ComponentModel.ISupportInitialize)(this.axUSBHID1)).End

3/6/2010 11:26:04 PM 5 "PvdG42" <pvd...@toadstool.edu>
Override

Hello, I have the following method: public class DefaultControllerFactory : IControllerFactory { protected internal virtual IController GetControllerInstance(Type controllerType) { } } How can I override it? I tried: public class StructureMapControllerFactory : DefaultControllerFactory { protected override IController GetControllerInstance(Type controllerType) { } } But I get the error: no suitable method found to override Thanks, Miguel

3/6/2010 9:24:27 PM 2 shapper <mdmo...@gmail.com>
The NonSerialized attribute

Hi! The NonSerialized attribute has this text as part of its documentation. "Indicates that a field of a serializable class should not be serialized. This class cannot be inherited." But this attribute has also another meaning and that is the following. If you for example has serialized an object that contains a name field of type string and than add this Nonserialized attribute on the name field before deserializing the file with the object within then this will happen. The app will not read this name field into the deserialized object so the object will not contains any nam

3/6/2010 7:18:42 PM 2 "Tony Johansson" <johansson.anders...@telia.com>
about serialization

Hi! I know when to use BinaryFormatter and SoapFormatter but I just wonder of curiosity is it possible to use a SoapFormatter when you really should have used a BinaryFormatter and the other way around meaning that can you use a BinaryFormatter when you really should have used a SoapFormatter ? Use BinaryFormatter when the app is a based on .NET framework If not use SoapFormatter. If sending something on the network use SoapFormatter. //Tony

3/6/2010 6:14:42 PM 2 "Tony Johansson" <johansson.anders...@telia.com>
about serialization

Hi! I know when to use BinaryFormatter and SoapFormatter but I just wonder of curiosity is it possible to use a SoapFormatter when you really should have used a BinaryFormatter and the other way around meaning that can you use a BinaryFormatter when you really should have used a SoapFormatter ? Use BinaryFormatter when the app is a based on .NET framework If not use SoapFormatter. If sending something on the network use SoapFormatter. //Tony

3/6/2010 6:02:29 PM 1 "Tony Johansson" <johansson.anders...@telia.com>
C# working with reporting services

I have the following questions about creating sql server 2008 reports with C#.net 2008 I am creating a report that will contain the following: a. page header with the title of the report, b. page footers that contain the page numbers, and c. table of contents to tie about 27 subreports together, d. several of the tables in the subreport will appear on more than one page. Thus, I would like to know how to tie all of this together. I am planning on doing the following: 1. Put the title of the report in a textbox control, 2. Somehow have logic in the tables to know to

3/6/2010 5:18:02 PM 0 =?Utf-8?B?amF6enlkYW5jZQ==?= <jazzyda...@discussions.microsoft.com>
OnClick event name

*************************************************** public class UserControl1 : System.Windows.Forms.UserControl { // ... public event EventHandler OnClick; // ... public void SomeFuncWhichFiresClickEvent() { // ... // fire event if (OnClick != null) OnClick(this, new EventArgs()); } // ... }public class UserControl1 : System.Windows.Forms.UserControl { // ... public event EventHandler OnClick; // ... public void SomeFuncWhichFiresClickEvent() { // ... // fire event if (OnClick != null) OnClick(t

3/6/2010 3:53:24 PM 6 "tshad" <...@dslextreme.com>
New here...

Hi, This is my forth day doing c#, interesting language. I'm a crusty c++ programmer but we wanted to start using the dundas charts, so... I seem to be making things work. This is what I have so far: <http://reserveanalyst.com/images/ChartCtrl.jpg> That is my app data showing from the same old export we do for excel. That way I don't have to write a new export and the legacy charts will still work. Excel charts were always a pain for us so this will be a nice move. Best, Dan.

3/6/2010 3:39:42 PM 2 DanB <...@some.net>
Report Load Failed

when i deploy my project, crystel report have an error "report load failed".This project made in C# desktop application 2008. In solution, there is no error beacuse the crystel report path work well in solution but no well in deployment.

3/6/2010 3:38:45 PM 0 "Shakeel Ahmad" <shakeel.ahmad...@gmail.com>
version compatibility when serializing and deserializing

Hi! Here is some text. "You might have version compatibility issues if you ever attemp to deserialize an object that has been serialized by an earlier version of your application, Specilically if you add a member to a custom class and attempt to deserialize an object that lacks that member, the runtime will throw an exeption. In other words if you add member to a class in version 3.1 of your application it vill not be able to deserialize an object created bt version 3.0 of your application." I seems to me that the text saying "Specilically if you add a member to a custom c

3/6/2010 11:10:09 AM 10 "Tony Johansson" <johansson.anders...@telia.com>
Print PDF files with margins cut --- HELP ME!

If I print a pdf file with the source listed below, print out with the trimmed edges. In fact I get a technical drawing with the missing information. The same results if I print from explorer context menu. If I open the pdf file with Acrobat and do printing, the printed sheet is correct. How do I properly print the entire PDF file through code? This is the code: Process proc = new Process(); proc.StartInfo.FileName = "c:\\filo.pdf"; proc.StartInfo.Verb = "Print"; proc.StartInfo.CreateNoWindow = true; proc.StartInfo.UseShellExecute = true; proc.Start(); proc.StartInfo.

3/6/2010 10:42:21 AM 0 "Fabrizio" <fabri...@yahoo.com>
sort array of strings using for loop

Hi everybody. I have a problem with sorting an array of names. I have a txt file with a names e.g. "Jack, John, Bob, Adam, Paul". All i have to do is write the names into the individual cells of new array and than sort it by an alphabet using for loop and write it out into a new txt file. I just after figuring out how to separete a names and my source code looks like: string delimiter = ","; string path = @"c:\notsorted.txt"; string r = sr.ReadLine(); string[] names = r.Split(delimiter.ToCharArray()); but i have no idea how to sort it with for loop. If there is anyone who

3/6/2010 10:35:02 AM 3 =?Utf-8?B?aW50cnVkZXI4My1oZWxw?= <intruder83-h...@discussions.microsoft.com>
XML and Repository

Hello, I created a few Repositories to manage some XML files. Since the repositories share the same files I wanted all to work under a same session (Unit Of Work Pattern). So the Context, that implements ISession, contains a field _model that contains all the XDocument requested by the repositories. A repository can request a XDocument by using the Context Register method. If the file does not exist in model then it is loaded and returned. If exists then it is only returned. The change submission runs with session.Commit() which saves all XML files. Here I think I could h

3/6/2010 12:55:19 AM 0 shapper <mdmo...@gmail.com>
Static Class vs Argument

Hello, I am working with IoC to inject a repository on a class. This is a simple example as I am starting with IoC so I am trying to have a simple example with XML files working. On HomeController I have the following: public class HomeController : Controller { private readonly IUserRepository _userRepository; public HomeController(IUserRepository userRepository) { this._userRepository = userRepository; } // HomeController public ActionResult Index() { ViewData["Email"] = _userRepository.FindByUsername("admin").Email; return View("In

3/5/2010 6:53:20 PM 0 shapper <mdmo...@gmail.com>
Is there a "preferred" way to update properties based on other properties?

Let's say I have a class that represents a rectangle: class Rectangle { private int width; private int height; private int area; public int Width { get { return width; } set { width = value; } } public int Height { get { return height; } set { height= value; } } public int Area { get { return area; } } } Obviously, area does not represent anything based on that. How to best keep area in sync is the purpose of this question. One way would be to simply get rid of the variable area, and make the prop

3/5/2010 5:41:58 PM 4 Adam Clauss <cabadam....@.not.gmail.spam.com>
error :(

Hi; I write a program that it has error do u know how I could solve it (& I don=92t want public lastname) using System; namespace ConsoleApplication49 { class Program { static void Main(string[] args) { info.Employee(); } class info { private string[] lastname =3D new string[100]; static public void Employee() { for (int i =3D 0; i <3; i++) { Console.WriteLine("enter the last name :"); lastname[i] =3D Con

3/5/2010 4:49:45 PM 4 sahel <nam.nam.baro...@gmail.com>
IoC and Session

Hello, I have a few repositories that share the same session: public UserRepository(ISession session) {} public RoleRepository(ISession session) {} When I save do session.Commit() all the changes created by the repositories will be submitted. Now I am injecting the two repositories into a class using IoC. How should I do this since they both should share the same session? Thanks, Miguel

3/5/2010 4:49:01 PM 4 shapper <mdmo...@gmail.com>
IoC. A few questions ...

Hello, I am starting with IoC and I am creating modules as follows: private class DomainModule : NinjectModule { public override void Load() { Bind<IProductRepository>().To<ProductRepository>(); } } private class ApplicationModule : NinjectModule { public override void Load() { Bind<IEmailService>().To<EmailService>(); } } So when using IoC I suppose for all services and repositories I should have an interface, right? And should the interface be in the same namespace then the class itself? Should I separate maybe in two folders? I have no i

3/5/2010 4:41:58 PM 1 shapper <mdmo...@gmail.com>
Save changes for a custom configuration section

Hi there, I've defined a 'Foo' configuration section in my App.config file: <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="Foo" type="FooLib.FooConfigSection, FooLib"></section> </configSections> <Foo label="Foo Label"></Foo> </configuration> ....and defined a custom ConfigSection class: public class FooConfigSection : ConfigurationSection { [ConfigurationProperty("label", IsRequired=true)] public string Label { get { return (string)base["label"]; } set { base["la

3/5/2010 4:10:31 PM 1 Giulio Petrucci <faken...@fakedomain.com>
help me

Hi every body; I want to learn making play with c sharp but I don=92t know how ; Plz recommend me som web page Thanks Bye =85

3/5/2010 3:03:23 PM 6 sahel <nam.nam.baro...@gmail.com>
cannot add user into Active Directory via c#.net

My System Have 2 Computer: Frist Computer act as A domain Controller that has a Active Directory,RADIUS Server,DHCP and DNS Second Computer act as A Web Server(join domain with a first computer already) and use Microsoft Visual Studio Team System 2008 I create a website on a second computer to add user in active directory. I have 3 file: 1.Default.aspx - Let user fill their privacy information 2.ViewRegisterdata.aspx - Let user confirm their information before it's added to active directory. In this file,there is a Viewregisterdata.aspx.cs which collect user information and

3/5/2010 3:00:13 PM 1 "dexterMor" <u53...@uwe>
BinaryFormatter

Hi! Is it any advantage to use one over the other between these two. IFormatter serializer = new BinaryFormatter(); or BinaryFormatter serializer = new BinaryFormatter(); If I have this FileStream saveFile = new FileStream ("MyFile.bin", FileMode.Create, FileAccess.Write); serializer.serialize(saveFile, myObjectToSerialize); saveFile.Close(); //Tony

3/5/2010 2:56:18 PM 2 "Tony Johansson" <johansson.anders...@telia.com>
Page skipping

In a txt file I would like to insert a character to force a page skip, char 12 doesn't work, any suggestion? Many thanks. Zach

3/5/2010 2:02:25 PM 5 Zach <xx....@xx>
Tool For Handle Leak

Hi, My c# application has handle leak. What tools are avilable for finding leaks with stack trace ? Thanks!

3/5/2010 2:01:02 PM 0 =?Utf-8?B?TWFhbnU=?= <Ma...@discussions.microsoft.com>
can every object be serialized even with referenced object within in a complex scenario

Hi! If I have an object A that reference B and object B reference C and a lot of built-in types and some user defined struct will object A be able to be serialized to a file ? My second question: Does it exist object that can't be serialized ? //Tony

3/5/2010 10:28:40 AM 2 "Tony Johansson" <johansson.anders...@telia.com>
Visual Studio 2010 RC

I've not used any RC version before. Some insight on this would be appreciated: 1. How long does a RC version carry out working? 2. What happens (are the options) when it stops? 3. Can it be uninstalled without adverse effects on earlier version of VS? Thanks.

3/5/2010 9:54:01 AM 3 =?Utf-8?B?QUEyZTcyRQ==?= <AA2e...@discussions.microsoft.com>
Some more about serialization

Hi! I'm reading a book from Microsoft Press(MCTS). It says *If you just needed to store a single string in a file, you wouldn't need to use serialization you could simply write the string directly to a text file. Serialization becomes useful when storing more complex information, such as the current date and time. As the following code sample demonstates, serializing complex objects is as simple as serializing a string." Can anybode tell me the reason why to use serialization when I want to store current date and time as the text above claims when it's even simpler to store

3/5/2010 9:53:31 AM 3 "Tony Johansson" <johansson.anders...@telia.com>
Print PDF files with margins cut

If I print a pdf file with the source listed below, print out with the trimmed edges. In fact I get a technical drawing with the missing information. The same results if I print from explorer context menu. If I open the pdf file with Acrobat and do printing, the printed sheet is correct. How do I properly print the entire PDF file through code? Thanks Regards

3/5/2010 9:45:05 AM 1 "Fabrizio" <fabri...@yahoo.com>
about understanding serialization and the serializable attribute

Hi! Assume I have a collection of Person object in generic class list List<T>. List<Person> myList = new List<Person(); When I want to serialize this collection myList the Person class must have the serializable attribute. I know that the List<T> class also has this serializable attribute otherwise it will not work. Now to my question what I store is bunch of Persons objects stored in a collection List<T> but why must this List<T> class has this serializable attribute. I don't fully understand that. I can easily understand that the Person class must have this serializable at

3/5/2010 8:56:58 AM 3 "Tony Johansson" <johansson.anders...@telia.com>
how to change the registry settings of another user

Hi, As part of a semi automatic installation and setup of a host I would like to create one administrator account and one ore more (non administrator) user accounts (without passwords) Then I would like to start a script as administrator and change some global and some user specific registry entries. I have problems to modify the settings of another user whle being administrator. The registry entries don't exist). It seems I had to load some 'hive' to be able to access somebody else's registry I did my first tests not with C#, but with python and_winreg32, but could

3/5/2010 8:51:58 AM 1 News123 <news...@free.fr>
about isolated storage

Hi! Is it anyone that has been using isolated storage and found they have been useful ? If yes can you give an example when they have been useful. They most certain is good to use at some occasion but this occasion will probably never occur. For me it seems that it one of these feature that exist in .NET that are used very rarely //Tony

3/4/2010 11:30:37 PM 1 "Tony Johansson" <johansson.anders...@telia.com>
Interface in Property

Hello, I have a class Parent. What is the difference if a property is an interface or a class? For example: public class Parent { public PA Pa { get; set; } public IPA Ipa { get; set; } } Where PA is: public class PA { public String Name { get; set; } } And IPA is: public interface IPA { String Name { get; set; } } Thank You, Miguel

3/4/2010 10:58:48 PM 5 shapper <mdmo...@gmail.com>
what is the size of the internal buffer of fileStream

Hi! If I use a filestream connected to a data storage like this program example shown here. The data will be written to the data storage when the internal buffer is full. So I just wonder what size is it on the internal buffer ? I mean the actual write to the data storage will be done in chunks of some size to increase the performance. string overview = "Most commercial applications, such as..."; FileInfo fileStore = new FileInfo("Overview.txt"); FileStream conduit = fileStore.Create(); byte[] encodedOverview = new UTF8Encoding(true).GetBytes(overview); conduit.Write(encodedOver

3/4/2010 10:51:06 PM 1 "Tony Johansson" <johansson.anders...@telia.com>
Maybe an interface?

Hello, I have an attribute on a project as follows: public class GoogleVerifyAttribute : FilterAttribute, IActionFilter { public void OnActionExecuting(ActionExecutingContext context) { ViewResult view = (ViewResult)context.Result; if (view == null) return; ViewModel model = (ViewModel)view.ViewData.Model; if (model == null) return; if (model.Verify == null) model.Verify = new GoogleVerify(); model.Verify.Key = Setup.Settings.GoogleVerifyKey; } // OnActionExecuting } // GoogleVerifyAttribute ViewModel is a class tha

3/4/2010 10:34:41 PM 1 shapper <mdmo...@gmail.com>

Pages: 2 3 4 5 6 7 8 9 10 11 12











Newest Articles

Different calendar sync counts on 2 clients
7 min. 52 sec. ago

help about outlook storage
8 min. 34 sec. ago

how to encrypt text in a diary entry when inviting a user?
8 min. 51 sec. ago

Time input in w/sheet #2
10 min. 51 sec. ago

I keep getting the error message 'not responding' with Outlook?
15 min. 48 sec. ago