Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score Convert string to int
nbohana - 26 Nov 2005 10:01 PM - 6 messages
I have tried several methods in converting my string data to an int.  I am getting a message back 'Input string was not in a correct format'         strSQL1 = "SELECT [service-cost] FROM [task] WHERE [service-order-number] = ...
Score Remoting Types in the client (newbie question)
Jayme Pechan - 26 Nov 2005 9:50 PM - 8 messages
I created a C# service and registered its types for .NET remoting.  Now I need to create an instance of the object from a client application. Previously I had implemented the service in ATL so I just added the ...
Score Hashtable not working
Jeff User - 26 Nov 2005 9:42 PM - 5 messages
Hi I thought I would try a hashtable for storing key and title value pairs. For instance, public class MyBasePAgeClass {     Hashtable TitleHash = new Hashtable(); ........    private void Page_Load(object sender, System.EventArgs e)          { ...
Score open .net 2.0 serialized object with .net 1.1
Dennis C. Drumm - 26 Nov 2005 8:17 PM - 3 messages
Is there a way to open files with .net 1.1 versions of my software product that were serialized with a .net 2.0 version of same product? Right now, as soon as my older .net 1.1 application tries to read the stream, an exception ...
Score How to know when an HTTP page is complete
Nuno Magalhaes - 26 Nov 2005 7:20 PM - 5 messages
I'm doing a "low level" server with sockets and trying to read the HTTP data from server. socket.Available at the beginning is 0 and I don't know when an HTTP page is completly read since socket.Available sometimes is 0 and the ...
Score Need Help... Convert VB.NET to C#
manmit.walia - 26 Nov 2005 6:50 PM - 6 messages
Hello All, I am stuck on a conversion problem. I am trying to convert my application which is written in VB.NET to C# because the project I am working on currently is being written in C#. I tried my best to convert it, but somehow the app does not work. I am ...
Score transporting an exe.......
Erland - 26 Nov 2005 5:35 PM - 3 messages
Hi, I am using Visual studio 2003 to make a project. My project resides in the folder name 'project'. I have to transport an exe to the PC that already has .NET framework 1.1 installed, but doesn't have Visual ...
Score transporting an exe.......
Erland - 26 Nov 2005 5:34 PM - 2 messages
Hi, I am using Visual studio 2003 to make a project. My project resides in the folder name 'project'. I have to transport an exe to the PC that already has .NET framework 1.1 installed, but doesn't have Visual ...
Score Transporting an exe file...
Erland - 26 Nov 2005 5:33 PM - 3 messages
Hi, I am using Visual studio 2003 to make a project. My project resides in the folder name 'project'. I have to transport an exe to the PC that already has .NET framework 1.1 installed, but doesn't have Visual ...
Score Transporting an exe..
Erland - 26 Nov 2005 5:33 PM - 2 messages
Hi, I am using Visual studio 2003 to make a project. My project resides in the folder name 'project'. I have to transport an exe to the PC that already has .NET framework 1.1 installed, but doesn't have Visual ...
Score Transporting an exe file...
Erland - 26 Nov 2005 5:27 PM - 2 messages
Hi, I am using Visual studio 2003 to make a project. My project resides in the folder name 'project'. I have to transport an exe to the PC that already has .NET framework 1.1 installed, but doesn't have Visual ...
Score Deep copy
BenW - 26 Nov 2005 2:26 PM - 6 messages
Hello, What is the easiest way to make "deep copy" of my Hashtable? How about with other Collection classes in C#, any documents available? I don'r actually understand why Framework's Collection classes does not support deep copy methods ...
Score ComboBox and it's editfield and dropdown
AlanM - 26 Nov 2005 2:19 PM - 3 messages
Hi, Do I remember right that combobox is build using editfield and dropdownlist? If so, how can I get reference to ComboBox's editfield and DropDown? I remember that in the 90's in MFC environment it was ok to get Handles to ...
Score Question on Marshal of a unsigned short
scottt - 26 Nov 2005 8:09 AM - 3 messages
I need to call into a C++ DLL from my C# code. The function is expecting a void pointer to an unsigned short. Which would be more correct? UInt16 wRegData; IntPtr p = Marshal.AllocHGlobal(Marshal.SizeOf(wRegData)); Marshal.StructureToPtr(wRegData, p, false); ...
Score IDE With Collaborative Feature??
PulsarSL - 26 Nov 2005 7:54 AM - 4 messages
Hey Do any of you know of an IDE or tool that allows two or more people to work on the same code in real-time?  I know a text editor would work, but having code coloring and everything would be nice. ...
Score How to change a ComboBox's font?
Jason Huang - 26 Nov 2005 6:57 AM - 2 messages
Hi, In my C# WindowsForm, I have a ComboBox MyCombo which has 3 items, ItemA, ItemB, and ItemC. Now I want the ItemC's color changed to Red while the other Item sitll have Black. Is it possilbe to do that? ...
Score Visual Studio under XP Home edition
Rene - 26 Nov 2005 5:47 AM - 4 messages
Sorry for asking this in this newsgroups but I didn't know where else to ask. I just came back from the store with a spanking new laptop computer. The laptop is exactly what I was looking for EXCEPT that it came loaded with ...
Score "HINSTANCE hInstance" in C#
scottt - 26 Nov 2005 3:25 AM - 7 messages
I am trying to call into some C++ code from C#. One of the functions requires a handle to the instance (HINSTANCE hInstance) of the C# program. How do I access this in C#. Thanks, ...
Score What are LoaderExceptions?
steve bull - 26 Nov 2005 1:17 AM - 2 messages
I have a project with various forms but when I try to view the designer for one of the forms I get the following error messages - even though the project atually compiles : Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. ...
Score What is the '@' prefix infront of string?
Ann Huxtable - 26 Nov 2005 12:00 AM - 11 messages
Why is it that sometimes strings used in C# are pre-pended by an '@' character?. Is there any documentation on this (Google searches don't bring anything useful - "c# + '@' + string variables" etc ) ...
Score Does anyone have experience of using c# to communicate with JBoss App Server
Ann Huxtable - 25 Nov 2005 11:43 PM - 4 messages
Hi, I am developing a C# front end. But my backend app server is JBoss. I want to know how I can communicate with the backend (maybe using System.Net.WebClient classes?). A search on Google does not yield much. ...
Score How to highlight multiple rows in datagrid?
Karl - 25 Nov 2005 11:23 PM - 3 messages
Hi there, Need help, thanks first. In a winform datagrid, if I find the data with some error, I want to hight the row. It could be multiple rows. But Datagrid.Select() only allows one row. How to do it? ...
Score Can I debug a library in C# Express 2005
steve bull - 25 Nov 2005 10:57 PM - 3 messages
how can I debug a code library using C# 2005 Express? I cannot find any way to make the library debuggable - even when I set DEBUG and No Optimize on the debug panel of the code library's property panel. When I try to invoke the library from a windows app it ...
Score In winform datagrid, How to find the datagridcell by mouse coodina
Karl - 25 Nov 2005 10:34 PM - 2 messages
Hi there, I have a problem needs help. In a winform, I have a datagrid. In Mouse move event, I can get coodinates of Mouse. I want to decide which datagridcell my mouse is on. Can anybody tell me how to do it? ...
Score Deep copy of struct
Miljana Murgas - 25 Nov 2005 10:16 PM - 2 messages
I have a struct like this: public struct Vec {     public float[] m;     public Vec(float v1, float v2)     {         m = new float[2];         m[0]=v1; ...
Score Export subreport
David Dvali - 25 Nov 2005 8:30 PM - 2 messages
Hello. Please HELP! I have an asp.net page that contains a crystal report. The master report is a list of customers. I click on a customer and the customer details report is displayed.  When I attempt to export this report to excel or pdf file, it exports the master ...
Score MultiColumn DropDown Combobox
Mike Swans - 25 Nov 2005 8:06 PM - 2 messages
Has anyone any solutions to multicolumns dropdown combobox? Like to see how to implement it. Thanks! ...
Score Error CS0246
Leo - 25 Nov 2005 7:52 PM - 2 messages
Hi, The code below is working: Main.cs ------------- using System; namespace test3 { class zzz { public static void main() { vijay.yyy.abc(); } { } namespace vijay { class yyy { public static void abc() { System.Console.Writeline("abc"); } } } I want to put the namespace vijay in another document. The code will be: ...
Score Adding millions of rows to a UI control without locking up the UI?
Danny Tuppeny - 25 Nov 2005 6:31 PM - 4 messages
Hi all, Something bugs me. It's the whole "not accessing a control from a non-UI thread" thing... In my world, all properties would be safe from all threads (maybe they'd be locked internally?), and paint methods/events would automatically be ...
Score Securing assembly question
Marty - 25 Nov 2005 5:24 PM - 4 messages
Hi, My main application is calling a couple of dll assembly that we made.  I want to secure those dll assembly so they can't be used by a third party. I did a couple of test with [assembly: AssemblyKeyFile(@"..\..\myKey.snk")] on both side, caller and ...
Score Web Serivice devlopment without VisualStudio2005
frankgerlach - 25 Nov 2005 4:53 PM - 2 messages
I would like to create a Web Service using C#. I bought "Programming C#" from O'Reilly and they explain how to do this using VisualStudio2005. As I do not have this tool, I would like to know how to do it with the "base" C# tools and library. ...
Score Reflection and Type.GetType
Andrew Ducker - 25 Nov 2005 4:47 PM - 17 messages
Is there any way to use Type.GetType to return a type that's in an Assembly loaded from disk? I sadly _have_ to use Type.GetType, as it's in framework code I can't change. At the moment, I'm loading the Assembly from disk (which works fine) ...
Score Best way for reading HTTP data
Nuno Magalhaes - 25 Nov 2005 3:39 PM - 8 messages
I've got a problem which relates to reading HTTP data. I've got the socket connected to a web site and then I send "GET / HTTP/1.1\n\n" and the page is received after a while but not all of the ...
Score GetTempFileName() returns a DOS path (with ~ in it) how to convert ?
Sagaert Johan - 25 Nov 2005 3:36 PM - 3 messages
hi Path.GetTempFileName returns a string in the form : C:\DOCUME~1\DEFAUL~1\LOCALS~1\APPLIC~1\ how can i convert it to a normal readable  path C:\Documents and Settings\Default User\Local Settings\Application Data\ Johan ...
Score Asynchronous callbacks in C#
Ann Huxtable - 25 Nov 2005 3:03 PM - 3 messages
Hi, I want to do two types of async callbacks in C#. One involves spawning a worker thread, and the other does not invlve threads: Case 1 (Span new thread) ---------------------------- class Fred {      private MyParams params = null ; ...
Score Unhandled Exception within a try catch
Simon Tamman {Uchiha Jax} - 25 Nov 2005 1:22 PM - 6 messages
Now this is bugging me. I just released software for a client and they have reported an unhandled stack overflow exception. My first concern is that the entirity of the UI and any threaded operations are all within Try Catches to help me locate the problem and the origination ...
Score Getting HTTP data from server
Nuno Magalhaes - 25 Nov 2005 12:43 PM - 4 messages
Hello, I've got a small application that tries to read HTML data without the HTTPWebResponse and Request methods and I guess the server is closing the connection after a while. Here is my sample code: ---------------------------------------------------- IPHostEntry iphe=Dns.GetHostByName("[link]"); ...
Score inconsistent accessibility error
Andy Fish - 25 Nov 2005 12:06 PM - 6 messages
Consider the following code fragment public class Wrapper {    protected enum E { IN, OUT };    public class C {       protected void foo(E e) { }    } } I want the class C to be accessible from outside the wrapper class, but not ...
Score XPath, XML and other
David - 25 Nov 2005 11:38 AM - 3 messages
hello, i have XmlDocument with InnerXML property returnig this (xhtml)) <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "[link]"[]> ...
Score Scroll Bars Visible
elziko - 25 Nov 2005 11:24 AM - 2 messages
Is there any way of knowing if scrollbars have appeared in a control that has a ScrollableControl that has AutoScroll set to True? I have found this: [link] ...
Score Creating a char or String from ascii code
Phil Mc - 25 Nov 2005 11:09 AM - 4 messages
Hi Can anyone tell me how to create an instance of a char or string from an ascii character code. That is if I wont to create a tab char (code 0009), how would I achieve this. I know about the slash characters \t and \n etc. but I need to be able ...
Score Reflection with .NET2.0
Stampede - 25 Nov 2005 10:09 AM - 2 messages
Hello, I've a problem with loading classes with the Reflection API of .NET2.0. What I want to do is the following: I have a directory which has several subdirectories with DLLs and an EXE File. The EXE File contains a Class which I want to load and create an instance of. ...
Score Adding Outlook reference to Class Library project
sathya - 25 Nov 2005 9:56 AM - 3 messages
Hi, I am creating a class libarary application, when i add a Oulook 11.0 Com Object as reference to my project , i am getting error during project compilation as:                Refferenced Interop.Oulook assembly needs strong name ...
Score C# - Com Interop - ClassInterfaceType.None
HL - 25 Nov 2005 9:56 AM - 10 messages
I want to use the services of a C# dll from a VB6 client. The C# dll has a public method called "Add". In the C# dll, the class interface type applied for the class is as follows: [ClassInterface(ClassInterfaceType.None)] ...
Score array in struct
c8prog - 25 Nov 2005 9:40 AM - 4 messages
I want to save integer value in array(int key[3]) of struct array (Element[10). But runtime error occured. (=> Source Code) How I use array of struct? I am using dotnet 1.1. => Source Code :: using System; ...
Score Extracting a 2 dimensional array of values from a range of Excel Values.
Greg - 25 Nov 2005 9:35 AM - 3 messages
Is this possible? I am currently retrieving the values cell by cell which is terrible in terms of execution speed. If I could access the data with one call to the interop Excel object that would be great. Am I correct in thinking that Value2 is a wrapper around a 2 dimesional ...
Score How do I limit the form to unmovale and unresizable?
Jason Huang - 25 Nov 2005 9:30 AM - 2 messages
Hi, How do I limit MyWinForm so it can't neither movable nor resizable? Thanks for help. Jason ...
Score Application has generated an exception that could not be
Kiran_Juikar - 25 Nov 2005 8:43 AM - 2 messages
Installation runs smooth, but when you try to execute the program by clicking on the shortcut or on the .exe, the error message above pops up.  Since the product is installed on client machine the exception is not giving clear Idea what is excat problem. How should I resolve this ...
Score Boolean, Int32
Peter Kirk - 25 Nov 2005 8:23 AM - 5 messages
Hi is it it correct that variables of types like Boolean and Int32 cannot be null? It appears these types are structs, and not classes and therefore variables cannot be assigned the value null (like DateTime as well I think). Is there ...
Score Controls on Form change size
Saso Zagoranski - 25 Nov 2005 7:36 AM - 2 messages
Hi, I've developed a Winforms application for a few people. It's a very basic Form with a few textboxes, comboboxes, buttons, labels and one PictureView. With 1024x768 screen resolution the all controls fit perfectly on the screen (all ...
Score about team foundation server
mike - 25 Nov 2005 7:18 AM - 2 messages
i have a vs2005 beta3 version and i work alone but i'd like to use team foundation server in order to get some report of my project , version management and task management and so on in this case what should i have to do? ...
Score Another problem with SHFILEOPSTRUCT
gsb58 - 25 Nov 2005 6:37 AM - 5 messages
Hi! I've been following the example on SHFILEOPSTRUCT here in the group, but I keep getting the message: 'Cannot read from sourcefile'. Here's the code: SHFILEOPSTRUCT shf = new SHFILEOPSTRUCT();     shf.wFunc = FO_DELETE;     shf.pFrom = myFile; ...
Score Help regarding sqldataadapter.
trialproduct2004 - 25 Nov 2005 6:34 AM - 2 messages
hi all i am having problem at a time of using sqldataadapter. My adapter is using two tables into which i want to add records. I am using two dataset for updating these table. My problem is even if i added records into two different tables it is ...
Score problem with XML parsing
kotori - 25 Nov 2005 1:25 AM - 6 messages
hi, i have the following XML data file: <?xml version="1.0" encoding="utf-8"?> <!--This is a creature file generated by Kotori's C# code--> <!--This file will contain every enemies stats in the RPG--> ...
Score Name of selected file
Piotrekk - 24 Nov 2005 10:37 PM - 3 messages
Hi I would like to ask, how my program can get the name of the selected file, when it was selected. I mean, that i select a file in windows xp, and then my program that works in background receives the name. ...
Score (Simple?) code has me beat - Help ?
Ann Huxtable - 24 Nov 2005 10:06 PM - 4 messages
I want to write some code to center one form over another (show one form on top of the other). Anyone care to show me in a few lines how to do this ?. Thanks ...
Score remove solution from the SourceControl
Bad_Kid - 24 Nov 2005 7:19 PM - 4 messages
How can solution (asp.net web page) be removed from the SourceControl? Do I have to make a new "blank solution" and add in it all projects one by one? ...
Score I can Store an expression within a Variable?
Daniel R. Rossnagel - 24 Nov 2005 5:32 PM - 9 messages
Sample: String c="1+2+3" since it can makes to obtain the value of this Expression? Other Sample: Int X=4 String c="1+2+3+X " ...
Score Regex Matches
Kofi - 24 Nov 2005 5:27 PM - 6 messages
Any takers? Got a string of DNA as an input sequence GGATGGATG, apply the simple regex "GGATG" as in Regex r = new Regex("GGATG",    (RegexOptions.Compiled)); MatchCollection matches = r.Matches("GGATGGATG"); Now I would expect to get two matches right?  One at index 0 in the ...
Score How to rename an Access database???
Jon S via DotNetMonster.com - 24 Nov 2005 4:29 PM - 3 messages
Hi all, I dont know if this can be done but I would like to programmatically change an Access database name. Say my database path and name was : C:/myFolder/Test.mdb What code would I use, in either C# or using ADO.NET, to change the above . ...
Score Stored procedure parameter
Peter Kirk - 24 Nov 2005 3:53 PM - 2 messages
Hi should I be able to set the value for a parameter to a stored procedure to null? For example: IDataParameter param = command.CreateParameter(); param.ParameterName = "@id"; param.Value = null; param.Direction = ParameterDirection.Input; param.DbType = DbType.Int32; command.Parameters.Add(param); ...
Score DropDownList
Rodrigo Ferreira - 24 Nov 2005 3:38 PM - 3 messages
Hello, How can i fill a dropdownlist with data returned by the database? My code is: string strsql = "SELECT designacao FROM categorias"; multiqual.bd db1 = new multiqual.bd(); ddlCategoria.DataSource = db1.devolvedataset(strsql); ddlCategoria.DataBind(); Greetings, Rodrigo Ferreira ...
Score Wrapping several DLLs in one "virtual" dll?
Francesc - 24 Nov 2005 3:30 PM - 6 messages
Hi, I'm programming some classes in order to be able to import different text formats (TXT, RTF, HTML, ...) to my own format called RUF. I've defined one Solution within several Projects, each one is focused in one specific format, includes from 5 to 15 classes and produces one ...
Score User control reloads page data when webcontrol changes
Matt Jensen - 24 Nov 2005 3:26 PM - 5 messages
Howdy all Been searching and can't find a good answer to my problem. I've got a usercontrol 'banner' at the top of my page, and when the selection in the dropdown list changes I want the "host" webform/page to be ...
Score C# program calling a C++ DLL
Laurent - 24 Nov 2005 2:34 PM - 10 messages
Hello,     I received a C++ DLL and I must include it in my C# programm. The problem is that I don't know how to convert the parameters from C++ to C#, specialy when there are pointers in it. There are 2 fonctions I would like ...
Score ASP classic -> ASP.NET C#
Bob - 24 Nov 2005 2:23 PM - 3 messages
In classic ASP, I used to keep a constant file that contains site configuration settings.  For example, Const SITE_BACKGROUND_COLOR = "#909090" Const APPLICATION_NAME = "My Financial Site" Const UPLOAD_DIRECOTRY = "C:\uploads\" And then I'll include this constant file in all of my classic ASP pages. ...
Score Diagnostics.Process starts exe's which raise SecurityException's
Phil Mc - 24 Nov 2005 1:29 PM - 8 messages
Hi all I have a small scheduling application that I have written which will be running on a Windows 2003 server. This application is started at different times by an 'autosys' job (though I am testing by manually starting the app from the server, that is logging into the ...
Score How to serialize a DataRow ?
Sharon - 24 Nov 2005 1:12 PM - 4 messages
I have a DataRow that I need to send it to another process as a XML string by remoting. Bu I do not want the other process to be familiar with the schema or DataTable and DataRow structure, so I tried to serialize it to a XML string ...
Score Mail not getting send.
trialproduct2004 - 24 Nov 2005 12:26 PM - 4 messages
Hi all, i am having application in c# for sending mails. I want to ask few question related to sending mail. If address of smtp server is not set, then will the mails be send to address specified in tomail field. ...
Score Doubt in ListView Control
Prakash - 24 Nov 2005 10:37 AM - 2 messages
Hi Friends, I am developing scheduler application using C#. For displaying all schedule information i am using ListView control. Based on the status of the schedule, i have displayed the schedule information in the list view as seperate colors. I have faced the problem with deselecting the list view item. For ...
Score Marshal a class partially
marcosegurini - 24 Nov 2005 10:20 AM - 5 messages
Hi. Is is possible to mark a class-member-variable to avoid its marshaling? [StructLayout(LayoutKind.Sequential)] class MyClass {    int i_;    IntPtr point_;    object obj; // this should not be marshaled } TIA. Marco. ...
Score Convert file path to URL
Anders K. Olsen - 24 Nov 2005 10:11 AM - 3 messages
Hello Group I have a fileserver with several files. Some of the filenames contain danish characters (e.g. 'æ', 'ø', 'å'). Now I'm trying to make a web application in C# that presents links to some of the files. I would like the user to be ...
Score Save/Open listView w checked items
Hareth - 24 Nov 2005 9:50 AM - 2 messages
how do I save and open checked and unchecked items in my listview to a txt file this is kinda what I have in mind but doesnt work; I need it for listview w/ checked items and unchecked private void btnSave_Click(object sender, System.EventArgs e) ...
Score Visual Studio .NET 2005 problem
Pål - 24 Nov 2005 9:27 AM - 7 messages
Hi, I have used VS.NET 2005 for about 2 weeks now. Yesterday everything started going extremly slow. Opening a project takes about 30 secunds or more, and building a project takes even more time (this project took 3 secunds to build before). ...
Score A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
Pieter - 24 Nov 2005 9:00 AM - 4 messages
Hi, I have a Windows Forms application (VB.NET 2.0) which uses a Class Library in C#. The application runs fine, but when I run it in debug mode, I get several "A first chance exception of type 'System.ArgumentOutOfRangeException' occurred ...
Score monthCalendar to start with - 1?
gsb58 - 24 Nov 2005 8:43 AM - 3 messages
Hi! Anybody that have seen an example of how to have the monthCalendar1 start with yesterdays date? That is: when the form opens, I'd like to have yesterdays date selected. Me.Name ...
Score POST/GET from windows form
Matteo - 24 Nov 2005 8:39 AM - 4 messages
Hi everyone, I need to pass a series of parameters to an SMS gateway from a client application, a windows form application. The question is, HOW? Is it possible to POST/GET data from a windows form? Do people use Remoting or Socket to this pourpose? ...
Score OT: Patterns
Steve Barnett - 24 Nov 2005 8:36 AM - 4 messages
I'm probably showing my age as well as my ignorance by asking this, but what's a "pattern"? I'm beginning the move from VB6 to C# and I keep seeing people talking about implementing this pattern or that pattern... is it what I would have called ...
Score Send Mail Question
alexmaster_2004 - 24 Nov 2005 8:31 AM - 2 messages
Hi There i'm using System.Web.Mail to send email message. but i have a problem with it. the emails that i send is in Turkish Language. so when i send the email the receipt can't be able to raed the message. ...
Score using System.Web.Mail; failed
Jason Zhang - 24 Nov 2005 7:52 AM - 5 messages
Hi all,   I have installed VS.net 2003 fully. When I create a C# project and write a line:using System.Web.Mail; the IDE complain that the namespace Mail does'nt exist in System.Web. Why it happens? Dis I miss something? ...
Score vb to c# conversion
Ankit Aneja - 24 Nov 2005 7:32 AM - 6 messages
i am making client for com dll in vb i write like this Dim WithEvents p As CLAMXLib.ClamEngine Private Sub Form_Load() Set p = New ClamEngine p.Database.Path = "E:\projects backup\ankitclam backup\Clamtest\database\" End Sub in vc++ ...
Score Using Try Catch
sbalak - 24 Nov 2005 7:14 AM - 3 messages
I am writing code in C# and I wanted a basic solution: In Try / Catch block, I want to get a general Exception. So, I write code as: try { // do something } catch (SomethingException ex) { // handle ex } catch (Exception ex) { throw; ...
Score MonthCalendar DateChanged event problem
DS - 24 Nov 2005 6:00 AM - 4 messages
I seem to have stumbled upon something that I can't explain and was wondering if someone else could maybe help me figure out why this happens. I've tried it in both VS2003 and with VS2005b2 and in both ...
Score POST data to form not working
logik3x - 24 Nov 2005 4:22 AM - 2 messages
I'm developping a program to automate the submisson of grades to a website called omnivox.ca ([link]). My problem is that I can't get the login working. I get the cookie right and the post ...
Score TimeZones, Daylight Savings nightmare
Anna - 24 Nov 2005 3:08 AM - 4 messages
Hi, I've already found out that .Net Framework 1.1 does not properly handle  anything that is related to a non-current timezone.  Since my project should be released before the release of Framework 2.0, I am kindly asking if ...
Score transfer function pointer (fC/C++) to delegate (C#)
sg71.cherub@gmail.com - 24 Nov 2005 12:00 AM - 3 messages
Here I am meeting a problem. I am transfering unmanaged C/C++ codes to managed C# codes. For the general C/C++ function pointer, it is easy to implement its function by C# delegate. e.g. Declare (C/C++):     double (* f) (double * x, void * parms); ...
Score Marshalling to a particular thread
Peter Wone - 23 Nov 2005 11:55 PM - 3 messages
I've written a class which does some long running background processing and returns multiple results via events. The class has an Execute() method which creates a thread and runs an internal method _execute() on it. When events fire they are running on the worker thread. To use this class ...
Score Encryption
Zeya - 23 Nov 2005 11:34 PM - 2 messages
I need to encrypt information and decrypt saved information. What is the best method to do this in C#? I need to save information in humanly non-readable form and preferrably encoded with date or some key and be able to retrieve the encoded ...
Score Commiting db changes
mmxbass - 23 Nov 2005 11:01 PM - 7 messages
What am I missing here? Based on what the help files tell me, it seems like my code should look like this:                     libraryTableAdapter1.Fill(library1._Library); ...
Score Advice needed: Using static class for Database access
tomi - 23 Nov 2005 9:53 PM - 3 messages
Hi I'm creating a small IS and I'm wondering if is a good idea to create one static class which will hold methods that will access the database. So I'd have only one class in the memory used for all db access. I ...
Score Move Data from table to Array
Peter - 23 Nov 2005 9:30 PM - 15 messages
Is there a fast way to move data from DataTable into double array, or do I have to spin through every record and column? I have five tables and I need to merge these tables column wise, each table will have to same amount of records but might have different amount of columns. ...
Score How do they do that?
Palvinder Singh - 23 Nov 2005 9:06 PM - 3 messages
Hello all Im tring to make a music store like itunes (on a much lower scale mind you :) ).  Im trying to make a little player that streams 30 seconds of a mp3 track so the user can preview it. ...
Score SimpleORB now available for VW Smalltalk, java and C#
frankgerlach22@gmx.de - 23 Nov 2005 8:48 PM - 12 messages
SimpleORB is a simple Object Request Broker for  VisualWorks Smalltalk, java and C#. It uses a simple but powerful serialization library for data marshalling. Because this is not a CORBA server, it is quite small (about 150kByte for all languages together). ...
Score lots of IF or elses
J-T - 23 Nov 2005 8:35 PM - 18 messages
I have a class which it has 10 properties, and each property needs to be validated against 5 different validation rules.I ended up writing a lot of IF and elses statement which has made my code so ugly.Is there a better way ...
Score Select correct treenode with first click
Matthew Woods - 23 Nov 2005 8:07 PM - 4 messages
Hi, does anyone know how to select a treenode with the first click? the first click on a treeview will highlight the node under the mouse when it was clicked BUT that node isn't actually selected until you click on it ...
Score machine epsilon for float - i dont agree
Piotrekk - 23 Nov 2005 8:06 PM - 4 messages
Hi I have important question. This is the way iam calculating machine epsilon                     float fEps = 1.0f, fStore = 2.0f;                     int i1 = 0; ...
Score Data Collecter
paulrosenthal@juno.com - 23 Nov 2005 7:59 PM - 6 messages
Hello, When someone clicks on my program, I want it to create just like a .doc blank document in C#. How can I do that? Paul ...
Score Getting client ip address
Andy - 23 Nov 2005 6:48 PM - 5 messages
Hi all, I'm trying to write some code in a business layer which will audit the IP address that the request is coming from. If the business layer is being called from a web app, I'd like to get ...
Score Function that return System.Web.UI.Control[]
Dube.Sebastien - 23 Nov 2005 5:32 PM - 6 messages
I have a function that return System.Web.UI.Control[]. It's a custom vb function that i call in C# that is defined as Public Function FindControlsByID(ByVal container As System.Web.UI.Control, ByVal id As String) As System.Web.UI.Control() ...
Score Help locating local database
sats2059 - 23 Nov 2005 5:01 PM - 3 messages
Hey Everybody, I am running a C# code that creates a database called Mobile.sdf SqlCeEngine engine = new SqlCeEngine ("Data Source = Mobile.sdf"); engine.CreateDatabase (); Now I am not able to locate the actual database on my PC. Where will ...
Next »