|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Visual C# .NETmicrosoft.public.dotnet.languages.csharp
About Error
Ejder -
18 Feb 2006 11:01 PM - 6 messages
I am writing program. it get the Source code of site. for example; site.com/news.asp?id=55 I get the source code. But if I try the get site.com/news.asp?id=55'a or site.com/news.asp?id=55a it ...
Accessing another .NET app
Pete Smith -
18 Feb 2006 10:38 PM - 2 messages
Hi, when I automate an Office App I can access it by using GetObject (COM). Now I have my own small .NET app and I want to access this from my other .NET app. What the best way to do this? ...
missing out braces
Andrew Bullock -
18 Feb 2006 10:25 PM - 15 messages
I thought the two bits of code should be the same? They aren't evaluating the same for me .... Can someone tell me why please? Thanks Andrew if (X != 0) if ((float)(nud.Value) > 0.0) ...
Difference Between MVP and MVC Patterns
Jeff S -
18 Feb 2006 9:21 PM - 7 messages
What are the basic and/or obvious differences between the Model View Presenter pattern and the Model View Controller pattern. Thanks. *** Sent via Developersdex [link] *** ...
Lists<> of custom classes
Andrew Bullock -
18 Feb 2006 8:38 PM - 5 messages
Hi, I've made my own class (we'll call it myClass) to simply store some data. I'm storing multiple instances myClass in a list: List<myClass> myList = new List<myClass>(); myList.Add(new myClass(somedata)); ...
A new mshtml-based html editor written in C#
ramida -
18 Feb 2006 8:29 PM - 2 messages
Hi folks, You may want to take a look at this new html editor with a customizable table editor. This editor can be customized to mimick the table-editing styles of Macromedia Dreamweaver, MS FrontPage, and Visual Studio. The demo ...
VS2005 C# and Resources
bob -
18 Feb 2006 8:20 PM - 3 messages
Hi, I am having trouble with Resources of a windows app. If I understand correctly. 1) New C# Windows app. Namespace 'TestResources' 2) Edit default Resources file, set String1 value to say "MyApp" 3) Put the following code in ctor after InitializeComponent ...
A basic question
Ian Semmel -
18 Feb 2006 8:17 PM - 2 messages
Am just starting to learn C# so tolerance. What is the difference between [Serializable] public class Stroke { and [Serializable()] public class Stroke { ...
how to bind an array of data to a datagrid?
irnbru irnbru -
18 Feb 2006 7:07 PM - 2 messages
Hi all! I got an array of datarows after a select on a datatable, I want to show the results in datagrid, but it doesnt work, do i have to create a dataview? Please help me out thank you IRNBRU ...
How Do I change the where clause of the TableAdapter
Rob Dob -
18 Feb 2006 6:33 PM - 3 messages
Hi, in the old days, pre .Net 2.0 I could just modify the SQLCommand of the SQlDataAdapter to reflect a different where clause and then issue a .Fill(), and Whamo!!! everything worked.. How am I to accomplish the same task using ...
Correl function
Peter -
18 Feb 2006 6:04 PM - 3 messages
Does anyone has CORREL function in C# like the one in Excel? I don't mind paying for it but I don't want to buy a whole library just for one function. Thank you Peter ...
Update one form from another
JohnSouth -
18 Feb 2006 5:48 PM - 5 messages
Hi In a c# Windows Forms application (not asp.net) if I've opened 2 or more non-modal forms using code like: FormTypeA aForm = new FormTypeA(); aForm .Show(); FormTypeB bForm = new FormTypeB(); bForm .Show(); How do I update a control (e.g. label) in aForm from code in bForm? ...
anyway to create a packet sniffer
AbdulGafoor GK -
18 Feb 2006 4:02 PM - 3 messages
i want to write a network utility which will sniff packets going through a specific nic. is there any component available for .net enabling this ?! thanks ...
It seems that if the .ncb file is missing it get regenerated.
academic -
18 Feb 2006 3:15 PM - 3 messages
Been reading the doc about NCB store. I need to send a small solution to someone and notice my .ncb file is much larger than all the other files put together. I tried deleting it and then opening VS and it appears to work OK. ...
Weird GC / Memory / XmlDocument.LoadXML memory problem
ian -
18 Feb 2006 2:42 PM - 3 messages
Hi, I've got the weirdest garbage collection problem - I'd appreciate any advice you've got. 1. A class 'X' in a system I'm working on contains a reference to an XmlDocument, populated via LoadXML. 2. Objects of type X are reused alot so different XML is loaded numerous ...
API tabstops
signingupsucksman@yahoo.it -
18 Feb 2006 12:11 PM - 6 messages
Hi, Ive tried searching the net for an example on how to use the SendMessage API with tabstops since the program Im working with has all the same class names and most captions are blank, Im not sure why. Thank you. ...
good and cheap DBGrid for C#
Jassim Rahma -
18 Feb 2006 9:13 AM - 3 messages
hi, can anyone recommend and good and cheap DBGrid for C# application. The most important for me is to assign an ID (e.g. Primary Key) for each row instead for adding it as a column but hide it which i feel it's stupid ...
globa variable for windows C# application
Jassim Rahma -
18 Feb 2006 9:09 AM - 3 messages
hello, how can i write and read a global variable for the entire application in C#? Many Thanks, Jassim Rahma *** Sent via Developersdex [link] *** ...
Class property with parameters
Rob Willaar -
18 Feb 2006 8:31 AM - 3 messages
Hi All, Can't see a any info how to declare parameters on a class propery. clsPiece Test = new clsPiece("AA,BB,CC,",','); MessageBox.Show(Test.Piece(2)); Thanx, Rob ...
Interop and SIZE_T
steve -
18 Feb 2006 5:52 AM - 2 messages
Hi all, I've seen a few Win32 API functions with SIZE_T parameters mapped via managed ints. Is this the most appropriate mapping or would an IntPtr be better (thinking of future proofing for 64-bit windows) Cheers, Steve ...
Reversing the sort of a OrderedDictionary
AC [MVP MCMS] -
18 Feb 2006 5:12 AM - 3 messages
Nothing is explicitly offered in the class... but I'm wondering if it's possible to reverse the sort of an Ordered Dictionary? ...
Settings.settings - help
Timothy V -
18 Feb 2006 3:12 AM - 2 messages
Does anyone have an example of how to use this in C#? I see a lot of VB implementations. Thanks in advance, Tim. ...
Module Version and filename - help
Timothy V -
18 Feb 2006 12:45 AM - 2 messages
Hi all, I'm trying to get a dll's version and filename through the use of one of its classes. Basically, I have an instantiated class from a dll, and I want to find out its dll version and filename. (I can get its assembly information through ...
garbled long value returned from the network
family.sens -
18 Feb 2006 12:37 AM - 4 messages
hi all, im using a C# webservice to communicate some data over a socket to a VC++ program. what the vc++ program does is return a struct() over the socket. now the struct contains 2 32 bit integers (according to VC++) i.e. long ...
Sockets UseOnlyOverlappedIO
cc -
18 Feb 2006 12:17 AM - 2 messages
Hi all, Does anybody know what the UseOnlyOverlappedIO actually does? The documentation at [link] doesn't really tell me what it actually means to use overlapped IO. If ...
C#; Talking to a Modem; Dialing a number
Simon T. -
18 Feb 2006 12:16 AM - 3 messages
Hello All, I am new to C# and the .NET framework, so please forgive and pity me if the question and understand reveals massive ignorance. I am trying to get SerialPort talking to a "Standard 19200bps" modem written in C# using Visual Studio 6.0 (.NET 2.0 ). It is not working. The modem ...
Taking Thumbnail photos of webpages with provided URL
Li-fan Chen -
17 Feb 2006 11:30 PM - 2 messages
Hi, In creating an email client, we are trying to allow users to pick and choose their email templates and photo stocks. We thought it'd be very 2006 to show a gallery of thumbnails. Is this a quick .NET Framework call in 2.0 or 1.1? ...
Array duplicates
Maya -
17 Feb 2006 11:13 PM - 2 messages
Hello, In the array abc: abc[0] = "john" abc[1] = "jack" abc[2] = "john" abc[3] = "peter" Is there an easy way to check for "john" existence before inserting abc[2]? If not, any idea how to remove either duplicates? that is abc[0] or ...
Missing characters after file rewrite using File.OpenText
Zark3 -
17 Feb 2006 11:08 PM - 2 messages
Hi all, Unsure if this is the best group to place this, but here it is anyway ;). I've got a large text file that needs rewriting into a different format, and decided to try it using C#, which usually does my ...
How does combobox know key/value?
Brett Romero -
17 Feb 2006 10:25 PM - 13 messages
When using the .Add() method of a combo box, how does it know which element in my object is the key and which is the value? Say my object looks like this: object1.field1 = "2"; object1.field2 = "Number2"; and I do: ...
Open Windows Forms
nbohana -
17 Feb 2006 8:41 PM - 4 messages
I would like leave some windows open while go to others. Is there a way to do this. There must be some Parameter or code that I need to use. Please help!! ...
ADO.NET 1.x, How to mimick Query Analyzer Batch Execute??
Crash -
17 Feb 2006 8:26 PM - 2 messages
Hi, ..NET v1.x SP1 VS 2003 SQL Server 2000 SP3 Server 2000, XP, Server 2003 I would like to programmatically execute {possibly many} SQL Server batch scripts. Aka I have many scripts that drop/add stored procedure definitions, alter table definitions & constraints, etc... and I would ...
Running a service from the cmd prompt.
UJ -
17 Feb 2006 8:07 PM - 7 messages
I thought I saw somewhere that you could run a service from the cmd prompt and then any Console.Write you did would go to the screen. Is that true? TIA - Jeff. ...
Using <param> XML tag to create Intellisense for my DLL.
Michael.Suarez@gmail.com -
17 Feb 2006 8:02 PM - 9 messages
So I wrote a DLL in 2.0. An example of one of the funtions is: /// <summary> /// db_task..file_master_list /// </summary> /// <param name="panConnection"> /// Pass the PanApp.Connection object by reference /// </param> /// <param name="source_id"> ...
So how do you change the default pushbutton in a WinForm?
Tim Osborne -
17 Feb 2006 7:54 PM - 2 messages
I cann't believe I have forgotten how to do this, but I have. Is there some attribute on the PB or WinForm I can set? ...
Using <param> XML Tag in C# to create Intellisense in my DLL
Michael.Suarez@gmail.com -
17 Feb 2006 7:52 PM - 3 messages
The code in my DLL: /// <summary> /// db_task..file_master_list /// </summary> /// <param name="panConnection"> ...
Storing a hash table in Session
rgparkins -
17 Feb 2006 7:38 PM - 9 messages
Hi I am creating a sign-up process on a web site much like that of a wizard form. I have browsed many sites to look for examples of how to store the entry data, so that the user can go back and forward along ...
Help: Can I Use a Windows DLL in Web Service?
Ben -
17 Feb 2006 7:27 PM - 5 messages
I need to use a Windows Dll in a C# Web Service, but the Web Service can't locate the Dll at runtime. I tried to run debugger, which virtually hangs the Virtual Studio 2005. Can I ask for some guru help here? ...
Float to string conversion in C#
mishj -
17 Feb 2006 5:28 PM - 14 messages
Someone else on here had the same issue as I have but the response he got didnt solve my problem so I hope someone can help me (for some reason I was unable to reply on the same thread as the original) ...
IT tests. C#, ASP.NET, VB.NET, SQL, XML, HTML, C, C++...
marboti -
17 Feb 2006 5:20 PM - 2 messages
[link] IT tests. C#, ASP.NET, VB.NET, SQL, XML, HTML, C, C++... ...
Running an application more than once
James L -
17 Feb 2006 4:57 PM - 5 messages
Any ideas how to stop the user opening an app more than once? So there is not more than one instance running at the same time. Thanks. ...
Application.Exit
John F -
17 Feb 2006 4:31 PM - 3 messages
Hello All, I have an app that I call a Login form in. I have 2 buttons on the login form. 1 passes back OK and the other Cancel. When I click cancel, I simply want to catch it in the main app and shut the application down. ...
Question about two interfaces derived from the same one.
Roy -
17 Feb 2006 4:26 PM - 4 messages
If I have two interfaces derived from the same one. How do I implement the methods in my class supporting both interfaces? I would like to have different implementation for methods in base interface from different interfaces. ...
loading form from another thread
Roman -
17 Feb 2006 4:17 PM - 6 messages
Hello i have main mdi parent window from which i want to load a form, but during creating form object and later calling its Show method i want to display progress and have the main window responsive. But the problem is ...
Collecting Groups of [3 Objects]
Jeff S -
17 Feb 2006 3:53 PM - 2 messages
What are some reasonable options for storing collections of [3 related object variables]. I see that there are plenty of options for storing collections of individual items (e.g., string or int array) or for name/value pairs (e.g., hash table). But I have a need to create some sort ...
Server Application need to handle HTTP(s) Requests...
apoc69 -
17 Feb 2006 3:46 PM - 2 messages
Hi people, i have a own server application (written in .net) which proceess different message types, like XML, EDI, SPEC2000, SAP IDOCs. and so on... this application is doing a lot of different work. Now a customer want to send its data over HTTP/HTTPS.. ...
C# - Interface EVent Question
John Smith -
17 Feb 2006 3:09 PM - 2 messages
I have an event in an interface, how do I implement this event in a class? I have tried implements keyword and does not work. public enum ActionEnum {Added, Removed}; public class ListChangedEventArgs : System.EventArgs ...
C#.NET reading remote host directory contents
entee1 -
17 Feb 2006 3:04 PM - 2 messages
Hi all, I am trying to create a webpage that reads in the name of a host from the user and then attempts to read the contents of this host, in order to search for a particular type of file. ...
Linking Forms Dynamically
JohnSouth -
17 Feb 2006 2:37 PM - 4 messages
Hi I'm developing a scheduling application (C#, Windows Forms, SQL Server) that matches up engineers and sites. I've got one form that shows an engineer and what sites he's visiting (EngineerView), and another that shows a site and what engineer visits are planned (SiteView). Both are ...
Service status says it's running, but how can I be sure it really is running.
UJ -
17 Feb 2006 1:48 PM - 2 messages
Is there a way to know whether a service is really running ? I can check the status through the ServiceController but I need a way to make sure that the service is actually alive and responding. I'm looking for the equivalent of the Process.Responding command. ...
Sending ASCII character string / stream to an IP address
Paul Aspinall -
17 Feb 2006 1:42 PM - 6 messages
Hi I want to send an ASCII character string / stream to an IP address. I basically have 6 barcode printers, and a web interface. Depending on what is entered on the web page, will determine which printer the label is printed on (ie. which IP address the ASCII string / stream is ...
doubt
mona -
17 Feb 2006 1:34 PM - 2 messages
Hi, I created one apllication.I have created conditionally shortcuts in desktop and qucik launch folder. How can i set the path to that exe from that shortcut icon? I used Process.StartInfo("app.exe") and then used Process.Start(). ...
Searching ArrayList [C# WindowForms]
MikeY -
17 Feb 2006 1:05 PM - 5 messages
Hi Everyone, I'm am trying to find the best method option for searching through an ArrayList and getting various items at a time. It could be 0 to 14, 15 to 25 etc,etc. I wish .GetRange(0,45) would give more options than just zero base ...
C# Regular Expressions
PJC -
17 Feb 2006 12:49 PM - 3 messages
Not sure if you can help but I'm having a little trouble with c# and some regular expressions. This is the example I am trying to use: Regex r = new Regex(@"^(?<proto>\w+)://[^/]+?(?<port>:\d+)?/",RegexOptions.Compiled); ...
Working with picture pixels
Mateo -
17 Feb 2006 12:15 PM - 3 messages
Hi! I have a little problem and I would appritiate some suggestions. I want to vrite C# (or VB.Net) program which does following: - takes one by one pixel (or few pixels at the time) and changes it's color ...
Question regardingThreading
archana -
17 Feb 2006 11:33 AM - 6 messages
Hi all, I am having application in c# with on main form and other 3 classes. Say suppose i have class1, class2. I have progressbar in main form which i have to update. I have one method in main class which is my thread procedure. ...
Generics, constraints and overloading
Pierre Arnaud -
17 Feb 2006 11:16 AM - 11 messages
I'd like to provide two generic methods with the same name and the same arguments, but with different constraints, such as: void Explore<T>(T[] a, T[] b) where T : struct { } void Explore<T>(T[] a, T[] b) where T : class { } ...
Custom PageSetupDialog
Ratan -
17 Feb 2006 10:56 AM - 2 messages
Hello, I am using PageSetupDialog in my application to change the pagesettings of the document but i dont want to show all the page size to the user, I want to show only A3 and A4 size for selection in papersize dropdown. ...
Possible to use an "internal" class in an external assembly?
John Nossluap -
17 Feb 2006 9:36 AM - 7 messages
I've got a third-party assembly dll containing an "internal" class with some public methods I would very much like to use. I understand the meaning and reason of setting the accessibility of the class to internal. But is there any way, dirty or not, I could use this ...
Excel Add-in not showing up
Joe -
17 Feb 2006 8:04 AM - 4 messages
I created a C# Add-in by going through the wizard, building the project and testing it. Everything works fine. I start writing some code to do something when a button is clicked, built and tested it - still works. Make some more changes and now nothing. It doesn't show up any more. ...
How to use COM Interop in C#
Nataraj1978 -
17 Feb 2006 6:56 AM - 7 messages
I have a requirement to use a dll written in Visual C++ 6.0 in my C# application. In order to establish the link between my application and the dll, I have written a ATL COM Component in Visual C++.NET [visual studio .NET ...
string[] to int[]
Andrew Robinson -
17 Feb 2006 6:14 AM - 11 messages
I have an array of string that I need to convert to an array of int. Any elegant method other than iterating through it and using int.parse() on each element? Thanks, ...
Posting data using httpwebrequest.
shankararaman.s -
17 Feb 2006 6:11 AM - 9 messages
Hi, I am trying to develop an interface which will fetch all my Yahoo mails. I am not able to sign in to yahoo by posting the form with my username & password. Please find my code below and correct me where am ...
Visual Studio 2005 hates me
Steven Nagy -
17 Feb 2006 5:43 AM - 3 messages
I've had so many problems since I started developing ASP.NET apps in VS2005. Here is just another one: Sometimes in this particular project, whenever I change the ID property of a control such as a textbox or drop down, it won't retain the value. ...
Make MVP Aware Of Security Model
Jeff S -
17 Feb 2006 5:36 AM - 6 messages
I'm implementing the Model View Presenter (MVP) pattern in a Windows Forms application. There is a need to control which forms (views) are accessible by specific users, and for some forms (views) to enable/disable/hide controls for certain users or groups. ...
namespaces, folders, and embedded files
Patrick -
17 Feb 2006 5:11 AM - 4 messages
Hello All, I'm getting into nHibernate for a project at work. I've organized my xml files into a folder within the project and have chosen to embed them into the assembly. However, the nHIbernate framework cannot find the xml files ...
Image loading problem with GDI+ API
urneel -
17 Feb 2006 4:05 AM - 3 messages
Hi group, Iam able load image (*.bmp,&tiff, *jpg) on Cstatic box with bitmap property using GDI+ API's . problem is when tiff image of 80MB size or greater takes more time which is uncosiderable. and i wud like to reduce the size before any process. ...
XmlHttpRequest from a Windows Application?
dave -
17 Feb 2006 3:56 AM - 2 messages
I want to design/develop an windows application (C#) that can query multiple websites (XmlHttpRequest), call number of 3rd party external webservices (SOAP) and parse/process the data and display it to the user. Ideally this would have been developed as a website, but due to crosss ...
virtual table; override; new, question
relient -
17 Feb 2006 3:27 AM - 2 messages
I'm learning about the virtual table in association with virtual methods. I got most of the logic and understanding down (I believe) for when you use 'override' and no 'override' or no 'new' modifier. What I'm trying to figure out now is what happens when you do use modifier ...
Disable Intellisense for the class member
Just D. -
17 Feb 2006 2:15 AM - 4 messages
Who remember how can I disable the intellisense for one class member only? I remember that it was a special tag making the class member invisible, excluding it from the drop-down list showing by the VS when we were pointing ...
newbie: How to set focus to TabPage?
deko -
17 Feb 2006 1:35 AM - 4 messages
I need to open FormB from a menu selection on FormA, and set the focus to a particular page in the TabControl on FormB. private void mnuScheduler_Click(object sender, EventArgs e) { FormSettings FormSettings = new FormSettings(); FormSettings.ShowDialog(); ...
Newby C# Web App Question - Z-INDEX Style
Fred Nelson -
17 Feb 2006 1:22 AM - 3 messages
Hi: I'm working on a VS2005 web application and I have what is probabably a "newby" question. In VS2003 I could drag a textbox/button/etc on to a form and position it with the mouse. I converted an app to VS2005 and this still worked. ...
FileNotFoundException 0x8007007E
SGRing -
16 Feb 2006 11:54 PM - 6 messages
I have a c# application that I'm migrating from 2003 to 2005, and I moved it to another machine. It built ok. But, when trying to run I get System.IO.FileNotFoundException was unhandled Message="The specified module could not be found. (Exception from HRESULT: ...
'style' or 'preference' question
Steve -
16 Feb 2006 11:12 PM - 2 messages
If you wanted to get a collection of items from your BusinessObjectLayer, do you think it would be more intuitive to see something like this: <code> public class Customer { public static Customer[] GetCustomers(); } </code> ...
port blocking
JustinC -
16 Feb 2006 11:08 PM - 7 messages
Does anyone know of a way, using C#, to programmatically block a Windows port? I've looked into some low level solutions like NDIS, but am hoping to find something that uses C#. Any help would be greatly appreciated. ...
The DataReader and integers
Tarun Mistry -
16 Feb 2006 10:35 PM - 3 messages
Hello everyone, I am using the data reader to access the information within a results set and then pass this information onto the constructor of my classes. Im using the following syntax to access the information: dataReader["my_field"].ToString() This is fine, however it simple will not play ball if i need the value in ...
PingSendAsync Method
Ciro -
16 Feb 2006 10:28 PM - 5 messages
Hello, i'm trying to build a simple ping application. Could someone tell me why the PingSendAsync Method (System.Net.NetworkInformation) eats 2 MB of the pagefile each time I send a ping? ...
Assembly.LoadFrom throws PathTooLongException unexpectedly.
shrishjain@gmail.com -
16 Feb 2006 10:20 PM - 7 messages
Hi All, I call Assembly.LoadFrom("C:\\MyDir\\MyAssembly.dll")- it works fine. However when I call the following, it fails: Assembly.LoadFrom("C:\\MyDir\\..\\MyDir\\..\\MyDir\\..\\MyDir\\..\\MyDir\\..\\MyDir\\ ...\\MyDir\\..\\MyDir\\..\\MyDir\\..\\MyDir\\..\\MyDir\\..\\MyDir\\..\\MyDir\\..\\MyDir\\..\\MyDir\\..\\ MyDir\\..\\MyDir\\..\\MyDir\\..\\MyDir\\..\\MyDir\\..\\MyDir\\..\\MyDir\\..\\MyDir\\..\\MyDir\\..\\ ...
3d Shapes
Jessica Weiner -
16 Feb 2006 9:32 PM - 6 messages
I am working o a c# application which needs to draw Solid Blocks, Spheres and Cylinders in 3D just like a CAD Program. Is there a library or a 3D Engine that can help with this stuff? I am currently looking at TrueVision3D.com ...
MSBUILD <PropertyGroup> Spaces in file paths </PropertyGroup>
Pete -
16 Feb 2006 9:31 PM - 2 messages
I know MSBUILD doesn't like spaces in file paths when used as values of elements but I cannot find anything which documents the recommended handling etc... Any and all suggestions are appreciated. ...
Returning nulls
anonymous.user0@gmail.com -
16 Feb 2006 9:24 PM - 2 messages
Whats the common/best practice for returning a "Does not exist/not found" result from a function. Imagine I've got a function: myObjectType GetById(long id); where the object may or may not be found. Currently, I just return a ...
Calling Base Class' Ctor
BDB -
16 Feb 2006 9:21 PM - 4 messages
Hi, I'm trying to call a base class' constructor. This is giving me an error: Use of keyword 'base' is not valid in this context. .... public class B : A { B( int i ) ...
MessageBox.Show no longer works...
John Kraft -
16 Feb 2006 9:11 PM - 2 messages
I'm developing a small utility for personal use using VS2003 and .NET 1.1. I use MessageBox.Show() often. Yesterday, it worked fine. Today it no longer works. I get a MessageBox with no text, and a button with ...
Array.Sort question
Jan Smith -
16 Feb 2006 8:50 PM - 6 messages
I've searched the overloads for the Array.Sort method, and I haven't found a clear answer to my question. Maybe it's not in Array.Sort. Here's the question: I initialize an array X with the values 28 142 3 17 225. ...
Cleanest syntax to logically AND multiple nullable boolean flags i
shawnk -
16 Feb 2006 8:01 PM - 9 messages
Given several nullable boolean flags; bool? l_flg_01 = true; bool? l_flg_02 = false; bool? l_flg_03 = true; ...
Writing stuff
David -
16 Feb 2006 8:01 PM - 6 messages
Hi all, I would consider myself a fairly intermediate level programmer in C#, having come from an ASP background, though there are still big gaps in my knowledge. One such gap is writing stuff such as... HttpContext.Current.Application.Contents etc. etc. etc. ...
Events with Programmatically-Created Context Menu Items
Matt Harvey -
16 Feb 2006 7:54 PM - 4 messages
Let's say that I populate a context menu with commands from a database table using a loop, and that these commands and their number can change at any time. Is there a way to dynamically have events to fire when ...
The fastest way to determine c = (byte)a & b
Doru Roman -
16 Feb 2006 7:48 PM - 8 messages
Hi, What is the fastest way to evaluate manually the result in this case: int a, b, c; a = 255; b = 122; c = a & b; The only way I know is transforming each number into the binary value and ...
Doing the Right Thing when designing plugin architectures
Rune Jacobsen -
16 Feb 2006 6:00 PM - 4 messages
Hello all, I mailed our common hero and fellow newsgroupian Jon Skeet a question regarding his article on plugins at [link], and he suggested that I should post here. I was afraid to spam the group further with my silly ...
Send mail attachment
Code Monkey -
16 Feb 2006 5:38 PM - 4 messages
I've created a web service in .Net v2 that takes a couple of parameters (ie; to address, subject and body) that sends an email. I now want to extend this so that it can send attachments (ie; a PDF). ...
.NET component of MS Word ?
Chris Peeters -
16 Feb 2006 4:59 PM - 3 messages
hi, Does there exist a .NET component of MS Word ? The purpose is to create Word documents from within a .NET application. Rather than using the MS Word COM-component type libraries, I would like to use .NET components only ...
Modifying IIS Metabase on remote server
Raith -
16 Feb 2006 4:55 PM - 3 messages
Hi, I'm trying to write an application to modify certain IIS metabase entries (AllowKeepAlive, ASPProcessorThreadMax etc.) on remote web servers (Win2000 IIS5) over the network. I'm confident using it to modify the metabase on my local machine and ...
Like a Global
Max André Bündchen -
16 Feb 2006 4:26 PM - 4 messages
I'm reading the Pro C# 2005 and the .Net 2.0 Plataform by Andrew Troelsen (in time, a nice book!) and a question is in my mind. Supose that I have a WinForm application that has a login system. With the ...
Am I A Service or a Windows App?
UJ -
16 Feb 2006 3:49 PM - 7 messages
Is there any easy way to tell whether the program that is running is a service or a win app? TIA - Jeff. ...
Reading a BIG text file (200Mb)
ACC -
16 Feb 2006 3:26 PM - 14 messages
Hi! I'm developing an application to analyze some information that is inside a text file. The size of the text file goes from 50Mb to 220Mb... The text file is like a table, with "rows" and "columns", and several ...
MailAddress string format
gdodd10 -
16 Feb 2006 3:24 PM - 17 messages
Hello, I am putting email function into a web app I am making using C#. I am struggling to find out the proper format for the string of To email addresses. I want to put multiple addresses in the string, but ...
Reading data on Aysnchronous socket server
Macca -
16 Feb 2006 3:23 PM - 10 messages
Hi, I have a synchronous socket server which my app uses to read data from clients. To test this I have a simulated client that sends 100 byte packets. I have set up the socket server so that its buffer is bigger than this. ...
using Microsoft.VisualBasic in c#
Avon -
16 Feb 2006 3:10 PM - 6 messages
Hi friends, Probably stupid question, Is it wrong or dangerous if I use some vb.net functions in c# via Microsoft.VisualBasic namespase? For example: Int32 a = Microsoft.VisualBasic.Strings.Asc("z"); Console.WriteLine(a); ...
Calling functions between panels in WinForms C#
randy1200 -
16 Feb 2006 3:02 PM - 3 messages
I'm working in Visual Studio 2005 and C#. I have a WinForms application with two panels (left panel and right panel). I have a textbox on the left panel, and a button on the right panel. I'd like ...
convert of VB fix function
Ed -
16 Feb 2006 2:51 PM - 9 messages
I want to convert the following VB code to C#: Dim r as datarow Dim i as integer i = fix(r("NumberField")) Fix as you may know truncates a floating point number to the right of the decimal point and returns an integer. ...
|
|||||||||||||||||||||||