Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score retrive bios clock date and time
Bill - 13 Jun 2009 10:35 PM - 7 messages
I have been searching google all day trying to find a way to use win32 to retrive a computer's local time from the bios clocl, rather than the system time, in the event that someone changed the system date ...
Score Linq Query on XML file. Please, what am I doing wrong?
shapper - 13 Jun 2009 9:05 PM - 3 messages
Hello, I have the following query:       IQueryable<Bag> bags = (from b in context.Elements("Bags")                               orderby b.Element("Updated").Value ...
Score Learning generics in c# for newbie
Nully Girl - 13 Jun 2009 2:24 PM - 3 messages
Does someone know about any good resources for learning generics in c#? (books or web) I would very much appreciate if someone knew about it and are willing to share :) [link] ...
Score File database less than 10-20 MB
Nully Girl - 13 Jun 2009 12:13 PM - 9 messages
Hi, I need to create a file database, need to save 2 columns (key, value), does someone know how to implenet this is c#. Please keep performance in mind Thanks Nully [link] ...
Score String.Format D0, D1, D2, D3 change by variable
AhWau - 13 Jun 2009 11:48 AM - 7 messages
int var = 1; int i = 1; string a; if(var == 0)   a = String.Format("{0:D0}", i); if(var == 1)   a = String.Format("{0:D1}", i); if(var == 2)   a = String.Format("{0:D2}", i); the format is variety by (var) ...
Score if or statment
David Hubball - 12 Jun 2009 9:50 PM - 6 messages
Hi I know this topic will be really easy for most people in this group but can someone help me to get this statement working please. Thanks if (txtFirstPrize.Text==""|txtSecondPrize.Text=""| txtThirdPrize.Text="") return; I'm just tryng to get my program to return is any of these 3 ...
Score writing a configuration file
Benjamin Vigneaux - 12 Jun 2009 9:41 PM - 3 messages
Hello everyone, so... i'm trying to create a configuration file for a small app i'm doing in C# but i don't know how to place it in the default folder where the "final user" chose to install my app. ...
Score Garbage collection and other questions I have
TomServo - 12 Jun 2009 9:00 PM - 5 messages
HI everyone, I have a couple of questions on Garbage collection : 1 : How many garbage collectors can run on for three one .NET application? 2 : you create objects on a different generation in garbage collection? 3  : What is the Best data structure for in memory caching, holding ...
Score Can't step into a function using f11 in debugger
Andrew Falanga - 12 Jun 2009 6:55 PM - 3 messages
Hi, I'm trying to debug a C# application and can no longer step into functions using f11.  What might be the cause of this?  What's really irritating is that I cannot step into functions in the managed space. ...
Score How to get the MAC address?
Allan Michaels - 12 Jun 2009 6:08 PM - 4 messages
Hello, I need to get the MAC address of our network card using a C# call from our software. How should I proceed? Thank you in advance for your help. ...
Score shorten behind the comma
Wouter van Teeseling - 12 Jun 2009 5:57 PM - 4 messages
How can I shorten a float number just for 2 figures behind dhe comma e.g. from 0.123456 to 0.12. ...
Score deleting row from dataset
tshad - 12 Jun 2009 4:56 PM - 12 messages
I have a dataset I am trying to delete all datarows from except for ones that match some type of criteria. I tried:                 foreach (DataRow dr in AppSettings.ds.Tables["form"].Rows) ...
Score Playing an .avi file in a C# app.
Allan Michaels - 12 Jun 2009 4:11 PM - 8 messages
Prequel to the question: We sell instruments to industry. These instruments are controlled by a Windows system. These windows systems are Windows XP x64 systems, and my software MUST run in 64-bit mode (not win32 on a 64-bit system.) ...
Score Inconsistent accessibility
Lou - 12 Jun 2009 3:27 PM - 4 messages
I have a form that I want to pass a collection into the constructor but can't seem to do it. I keep getting the error "Inconsistent accessibility: " public frmDeviceManager(Dictionary<string,Data> Devices) { InitializeComponent(); } Data is a class ...
Score Problem reading special characters into a list box
Zach - 12 Jun 2009 2:30 PM - 4 messages
Using the code below I want to read a list of French words into the list box. However the code dysfunctions because of the é, à etcetera in the file that is being read. Could someone tell me how to rewrite the code ...
Score Re: TypeInitializationException error
Kodiak - 12 Jun 2009 2:12 PM - 2 messages
Here is the exception below! [Exception: System.TypeInitializationException: The type initializer for 'L3.EDG.Websites.TOLD.BusinessLayer.DAO.FileDAO' threw an exception. ---> System.SystemException: Teamcenter.Schemas.Soa._2006_03.Exceptions.InternalServerException: Exception has been thrown by the target of an invocation. ---> ...
Score Button Skinnning
Gurikar - 12 Jun 2009 11:01 AM - 4 messages
Hello,   How to create skinned button(e.g rounded bitmap button) in CSharp. I know there is BackgroundImage property to set bitmap as background, but i need to make rounded button where in button corners needs to set it to background of the parent. We used to achive in MFC by using ...
Score not all code paths return a value?
HillBilly - 12 Jun 2009 2:43 AM - 12 messages
Brainded and can't see how to resolve this nagging error... public static bool IsUserAFollowedByUserB(string user_a, string user_b) {     // Is user_a followed by user_b?     string followingURI = "[link]"; ...
Score stuck on operator overloading???
MM - 12 Jun 2009 12:57 AM - 4 messages
Hi, class A {         protected int anum; } class B : A {         public static B operator ++(B b_class)         {                 b_class.anum++; ...
Score stripping newlines from xml
Nirmal Singh - 11 Jun 2009 10:36 PM - 4 messages
I am reading in a text node from an XML file which is on several lines. How can I get read of newline characters from this string? NiMuSi ...
Score Controlling the properties of a TextBox from a different Form
David Hubball - 11 Jun 2009 9:14 PM - 11 messages
Hi I hope someone can give me a little push in the right direction. I'm new c#. My problem is that I've got a Main Form and another form (named SubForm). I'm trying to enter some details on SubForm which I ...
Score The best way to run an exe file within a windows service
Max2006 - 11 Jun 2009 4:53 PM - 2 messages
Hi, What would be the best way to execute an exe file within a windows service? The command line is like this: [link] Any help would be appreciated, Max ...
Score Re: Same old faeces here I see, like Peter Dungho
pudchuck - 11 Jun 2009 4:30 PM - 5 messages
On Jun 11, 8:39 am, "Ignacio Machin ( .NET/ C# MVP )" <ignacio.mac***@gmail.com> wrote: I noticed that as well. Where are they going? I don't believe it has to do with a decreasing popularity of the language. ...
Score Re: Making an exe that doesn't need .NET framework
ofiras - 11 Jun 2009 2:06 PM - 6 messages
On 11 יוני, 15:48, "Ignacio Machin ( .NET/ C# MVP )" <ignacio.mac***@gmail.com> wrote: So is there a way to make it work witout .NET? maby if I add the dll files to the exe folder? (If can be done as I said, how do I do it?) ...
Score Visual Studio 2008 and Reports
Marco Olimpi - 11 Jun 2009 12:53 PM - 2 messages
Hi, I'm looking for a book that help using the build-in report function of Visual Studio 2008 (not Crystal Reports). Any suggestions? Thanks Marco ...
Score Making an exe that doesn't need .NET framework
ofiras - 11 Jun 2009 12:39 PM - 11 messages
Hi, I never understood how can it be that most programs don't ask me to install .NET, although I know that many companies use C#. Is there any way to make an exe of a C# program that doesn't need .NET to be ...
Score c# newbie needs help with backgroundworker
c-sharp newbie! - 11 Jun 2009 12:07 PM - 6 messages
Dear all, I have a form which temporarily creates another form and has a progressbar on it. I got trouble with updating the screen, if I didn't use a background-worker. Therefore: My code looks something like the following: ...
Score Reflection & ICommand
Mike B - 10 Jun 2009 5:04 PM - 3 messages
Can anyone please show me how to use reflection and convert a string name into an ICommand? ...
Score Website Problems - Outlook Express N/A
jp2msft - 10 Jun 2009 3:04 PM - 4 messages
Subject: Website Problems - Outlook Express N/A Our Group Policy here at work blocks Outlook Express to ensure everyone uses Microsoft Outlook (Microsoft Office product, not the Express version) for our corporate emails. This means I do not have access to Outlook Express's Newsgroup Reader. ...
Score ShortWay in C# conversion from C++ to C#
Andreas Ott - 10 Jun 2009 12:47 PM - 6 messages
Hello togehter, I need urgent a conversion from C++ to C#. The code in C++ is below. Can someone help me here. Thanks a lot. Greet Andreas // ShortWay.cpp : Defines the entry point for the console application. // #include "stdafx.h" ...
Score Properties of current active window
Frank Uray - 10 Jun 2009 10:25 AM - 2 messages
Hi all I need to get informations about the current active window. For example: When the user is in explorer, I need to get the currently selected path/file, or when the user is in word, I need to know ...
Score Why there are two diffrent result in two almost same formula
XjAcKs - 10 Jun 2009 8:00 AM - 26 messages
Hi everyone. My source code is the following in VS2005: --------         static void Main(string[] args)         {             int num = 3600; ...
Score Greek letters with subscripts/superscripts
Arial - 10 Jun 2009 5:46 AM - 2 messages
I have an application written previously in VB6. Through application a lot of Greek letters with indexes (superscript, subscript) was used. For that purpose instead of labels pictures were used. See link: [link] ...
Score No Implicit Conversion For Strongly Typed DataSet In VS2005
Andrew Hayes - 10 Jun 2009 3:30 AM - 3 messages
I'm converting a C#.NET project that was originally written using VS2003 to VS2005, and on the whole everything has gone well, except for the XSD DataSets. I have a class, SmartDataSet, defined as     public class SmartDataSet : DataSet ...
Score Problem with checkbox in WPF
tshad - 10 Jun 2009 3:29 AM - 2 messages
In C# you can usually do: IsDiscontinued = chkIsDiscontinued.Checked; Where IsDiscontinued is a boolean and chkIsDiscontinued is a checkbox. In WPF, I get this error.       The event 'System.Windows.Controls.Primitives.ToggleButton.Checked' can only appear on the left hand side ...
Score extending existing application
Yuri - 9 Jun 2009 11:50 PM - 4 messages
Hello everyone. I ahve and PowerBuilder application with lost source code. I urgently need to extend this app which consists of MDI form and a child form with tab control and five tabs in it. Is there a way to create another tab and place a ...
Score Memory used in unmanaged space
Andrew Falanga - 9 Jun 2009 9:05 PM - 3 messages
Hi, I have a program which uses Platform Invoke for two different unmanaged dlls.  It would stand to reason, I think, that the garbage collector in .NET would not be responsible for cleaning up memory used by these dlls, but I wanted to ask before assuming that to be true. ...
Score code access security
gerry - 9 Jun 2009 8:49 PM - 9 messages
vs2008 sp1 ..net 3.5sp1 I am taking a 1st stab at SQLCLR and after years of .net development have finally run into CAS. Trying to access Environment.MachineName() generates the following exception Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, ...
Score ASP 0126
Nick - 9 Jun 2009 5:31 PM - 4 messages
Does any one know how to fix this error? Active Server Pages error 'ASP 0126' Include file not found /nick/passwordprotect.asp, line 2 The include file '/logon/_private/logon.inc' was not found. ...
Score Weird behavior of ListView.ShowGroups property
Nikola Novak - 9 Jun 2009 4:28 PM - 5 messages
Hello, I'm using a ListView to show a list of reports, all coming in from different parts of my application (like a log only less detailed), so I figured it would be useful to be able to see these reports both in the ...
Score Loging/Register page in Frontpage
Nick - 9 Jun 2009 3:21 PM - 3 messages
Does anyone know how to make a working login and register page in Microsoft Frontpage? ...
Score A Radius Search?
jp2msft - 9 Jun 2009 1:38 PM - 7 messages
Where would I go to learn how a radius search using a zip code? I've got a customer that wants to allow clients to search for businesses within 5, 10, 20, or 50 miles. Are radius calculations performed using known formulas? ...
Score System.Reflection
Arne Garvander - 9 Jun 2009 12:30 PM - 4 messages
How can get all the objects/data member in a class thru reflection. ...
Score Generic Interface syntax in VS 2005 using Old syntax
Saad - 9 Jun 2009 4:28 AM - 3 messages
Hi All, Im using managed c++ syntax (VS 7) in VS 2005. And i want to implement a generic interface in it. But im getting errors when i try to compile the code. Here is what i want to do:- ...
Score Release web on Visual Web Developer Express edition
ihouse1 - 9 Jun 2009 3:02 AM - 3 messages
How can i build/release a website using Visual Web Developer Express edition? Thanks. ...
Score Property and Global Variable
shapper - 9 Jun 2009 12:20 AM - 4 messages
Hello, I have a class as follows: public class SupplierRepository : ISupplierRepository {     public String Path { get; set; }     private readonly XDocument context = XDocument.Load(Path);     public SupplierRepository(String path) {       Path = path; ...
Score Extract a single image from a PNG file containing multiple images
Mark - 8 Jun 2009 7:06 PM - 2 messages
Wondering if someone might be able to point me at some documentation to extract an image from a PNG file found in the VS2008 Image Library. Example: Edit.png contains five different images of the pencil. I want to extract a single image from it but keep the integrity of the file. ...
Score ResourceManager Question
Mario - 8 Jun 2009 6:44 PM - 2 messages
Hello, I have a resource file add in my VS2008 solution called myresource.resx If I run the below it works fine ResourceManager myRM = new ResourceManager ("ConsoleApplication2.myresource", Assembly.GetExecutingAssembly()); Any ideas why I can't run it like this ? ...
Score Merge XML Files from DataSets
Frank Uray - 8 Jun 2009 3:25 PM - 3 messages
Hi all I need to build a multi-user application using one central xml-file. Now, I am not sure if this is possible to do, without building a database system ... :-) The idea is: The application is opening/reading the xml-file, ...
Score ListView windowsmessages
Brofalad - 8 Jun 2009 5:50 AM - 5 messages
Hi, How do I inhibit the Arrow down keypress from changing the row in a listview? I have given the Arrow down keypress a different meaning and I don’t want the row to be changed if a listview is in focus. ...
Score Listening to HTTP requests from a process
codejunkie - 8 Jun 2009 4:42 AM - 2 messages
Hello, Are there any ways i can listen and log all HTTP messages from a process on my machine. Here is my scenario. I am writing a tool, that launches a process and then listens to any HTTP requests sent from ...
Score Get Child Nodes
shapper - 7 Jun 2009 9:43 PM - 6 messages
Hello, I am using Linq To XML to get data from a XML file and populate an object: // Define product Product product = (from p in XElement.Load("../Data/ Products.xml").Elements("Products");      where p.Element("Id").Value == id.ToString ...
Score Delete and Update
shapper - 7 Jun 2009 7:15 PM - 3 messages
Hello, How can I delete and update an existing node, given the ID, in a XML file using Linq? I am using the following to get a node: IQueryable<Bag> bags = (from b in XElement.Load("../Data/ Bags.xml").Elements("Bags"); ...
Score database
Gota - 7 Jun 2009 7:11 PM - 2 messages
how to connect to sybase database using c# language. Any MS or third party libraries? ...
Score String Conversion
shapper - 7 Jun 2009 6:05 PM - 3 messages
Hello, I am getting a few values from a XML file using LINQ. I need to convert two values to Boolean and to DateTime. The DateTime string in the XML file was created simply using DateTime.UtcNow.ToString(). I have: ...
Score Easy very beginner tutorial
Tim Apple - 7 Jun 2009 5:01 PM - 3 messages
I am new to programming and I'm looking for a very basic tutorial, for the complete programming newb. If anyone knows of anything online please share...I have started playing with the MSDN tutorials but they are very dry. Thanks ...
Score MCTS certification
Tony Johansson - 7 Jun 2009 4:47 PM - 2 messages
Hello! I wonder if anyone have any experience of doing a MCTS exam and if it's hard to succeed this exam. //Tony ...
Score LINQ in C#?
Mark G. - 7 Jun 2009 10:13 AM - 3 messages
is LINQ built into VS 2008 for C# or is it a seperate download? Is the download free? Quickly looked on MSDN and couldn't find what I was after so I was hoping some of you could help? Thanks much. ...
Score wpf data grid
Gota - 7 Jun 2009 9:33 AM - 3 messages
Looking for a flexible front end reporting third party library. Need excel like data grid capability for viewing 2 dimentional data. Also need grouping with aggregate values like sum, count etc. Please suggest to work with .net 3.5 WPF platform. ...
Score Encoding Method as variable
AhWau - 7 Jun 2009 6:57 AM - 3 messages
I wrote a function to read content of web as below: public static class Read         {             public static string WebContent(string PageLink, int EncodeType) ...
Score Encoding Method as variable
AhWau - 7 Jun 2009 6:56 AM - 2 messages
I wrote a function to read content of web as below: public static class Read         {             public static string WebContent(string PageLink, int EncodeType) ...
Score delete rows from 'dbf' file
kazik - 7 Jun 2009 12:51 AM - 6 messages
I need to have empty 'dbf' file (to use it as template) but I have 'dbf' file with rows. so I did: [code] OleDbTransaction trans = connection.BeginTransaction(); command = new OleDbCommand("DELETE * FROM TEMP", connection); command.Transaction = trans; command.ExecuteNonQuery(); trans.Commit(); ...
Next » 2 3 4 5 6 7 8 9 10