|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Visual C# .NETmicrosoft.public.dotnet.languages.csharp
C# and SQL-Server Stored Procedures
J. S. EDV -
28 Oct 2006 10:37 PM - 11 messages
Hello, I have got a little problem with stored procedures and C#. I have got a stored procedure which should only insert something in a table. For example: ALTER PROCEDURE DBO.PROC1 AS insert into dbo.Test values ('test') ...
Struct vs Class
JohnGoogle -
28 Oct 2006 9:43 PM - 38 messages
Hi, Newbie question... After a recent article in VSJ I had a go at implementing a Fraction class to aid my understanding of operator overloading. After a previous message someone suggested that I implement it as a struct rather than a ...
ASP.NET error
radiolandog -
28 Oct 2006 9:20 PM - 4 messages
Visual Studio 2005 New Project Project Type: Visual C# Project Template: ASP.NET Web Application Location: http://localhost/WebApplication1 OK The Web sever reported the following error when attempting to create or open the Web project located at the following URL: 'Location: ...
is there kinda getOptions available?
Twig -
28 Oct 2006 7:01 PM - 10 messages
Really, can't find built-in lib for commandline argument handling. Maybe I'm just missing it? Is it so?! ...
Inner Class Extends Outer Class
Martijn Mulder -
28 Oct 2006 6:54 PM - 6 messages
A construction like this: class Outer { class Inner:Outer { } } compiles without problem but does it introduce infinity? ...
Handling C pointers within .NET
Albertas -
28 Oct 2006 5:33 PM - 6 messages
Hello, I'm building a program where i want to use function which is written in C programming language. So I built .dll of it. Functions parameters list looks this: void function(char *input, char *output, int number_in, int number_out, ...
radio button list question
Adrian -
28 Oct 2006 5:25 PM - 3 messages
How do I reset a radio buttion list so that no radio buttons are selected any longer? (Please give the code.) Many thanks. Adrian. ...
Learning C# (2)
vicmann -
28 Oct 2006 5:18 PM - 5 messages
1. When to derive a class from IDisposable? 2. Does the statement below indicate that "MyDisposable" is an abstract class that needs its children classes to implement methods and all objects of children classes will be "Disposable"? public abstract class MyDisposable : IDisposable ...
Decoupling
Sharon -
28 Oct 2006 4:55 PM - 8 messages
Hi. I'm working on an application with a Data Access Layer, API and UI. There are some entity classes defined in the DAL which the UI uses through the API. This means that there is some coupling between the DAL and the UI. ...
using HTTP to download files from a secure (or unsecure) directory
Gina_Marano -
28 Oct 2006 4:14 PM - 4 messages
Hey All, I need to download 1 or more files from a secure or unsecure website folder using HTTP. Here is what I have so far: public void GetHTTPImages() { WebClient HTTPClient = new WebClient(); HttpWebRequest webRequest; HttpWebResponse webResponse; ...
how to add drag&drop to a panel ?
Taptu¶ -
28 Oct 2006 2:31 PM - 2 messages
Hi, Is there any way to use D&D functionality with panel ? Ex. I have 2 panels: panel 1 and panel2 I want to drag panel1 over panel2 and change parent value of panel1 after Drop panel1.parent = panel2; ...
How to get all the contact information of an msn account?
Kai Zhu -
28 Oct 2006 2:25 PM - 4 messages
It's there any public API? ...
System.ObjectDisposedException
Martin Pöpping -
28 Oct 2006 1:20 PM - 4 messages
Hello, I´ve a problem with a small line of code. For my Windows Application I designed a form for exporting data into xml files. I´m opening the dialog with: ExportDialog export = new ExportDialog(); ...
Raising events
CuriousGeorge -
28 Oct 2006 12:22 PM - 10 messages
Can someone explain why this code DOES NOT raise a null reference exception? //////////////////////////// Program.cs ///////////////////////////////////////////// using System; using System.Collections.Generic; using System.Text; using CSharpLib; namespace CSharpConsole { class Program { private EventHandler handler; ...
using Hotkeys in Asp.net 2.0 Web apps
kzmm -
28 Oct 2006 10:39 AM - 2 messages
Hi everyone. I want to develop an application in asp.net 2.0 in which i can access different functionalities with keyboard. e.g on pressing "S" on page it will save . "N" for new record etc. please suggest me what i can do to fullfill this , ...
How do I check to see if a dataset has a DBNull value
Dave -
28 Oct 2006 4:20 AM - 20 messages
If Iwant to check if dataset1.SelectQuery1[i].column1 == System.DBNull.Value. How do I do this? What I wrote above will give an error. ...
Config files
vicmann -
28 Oct 2006 4:05 AM - 3 messages
If xyz.exe is the executable name... What's the purpose of "xyz.config" file? For what is the "xyz.vshost.exe"? Do they have to be created? Have to distribute them when distributing an app? Is there a special config file always called App.config? How is it different ...
Learning C#
vicmann -
28 Oct 2006 4:01 AM - 4 messages
1. Put an application in sleep mode so that it consumes as little PC resource as possible. When triggered by an event, back to normal/work mode. After done with work, back to sleep mode again. How can this be done in C#? ...
String Manipulation - Substring, VB function Left, "length safe" Substring
kellygreer1 -
28 Oct 2006 3:36 AM - 7 messages
What is a good one line method for doing a "length safe" String.Substring? The VB classes offer up the old Left function so that string s = Microsoft.VisualBasic.Left("kelly",200) // s will = "kelly" with no error ...
programming windows media player in c#
Sirmarty -
28 Oct 2006 1:14 AM - 2 messages
I am using the visual express edition 20005 for C#. I am trying to write a program which will randomly play songs weighted by a 0 to 100 rating scale. I can player a single song using the windows media player, but I cnnot play ...
using vfoxpro dll in clickonce project
celerno -
28 Oct 2006 12:16 AM - 3 messages
Hi all, first some history: i'm developing an application who access foxpro databases using VfpOledb provider... but this cause a headache when i delete rows cause some tables call triggers... to fix it... or to find other way i make a dll class in vfpro in order to use some ...
Byte Swap Class
O.B. -
27 Oct 2006 10:26 PM - 3 messages
Is the following the best way to do byte swapping in C#? Or is there something like this already built into the framework and I'm just overlooking it? class ByteSwap { public static UInt16 swap(UInt16 input) { ...
Simple Color Pallete control?
James Kenneth -
27 Oct 2006 10:19 PM - 2 messages
I need a simple color pallete control, similar to one that exists in appearance section in dialog properties. Here is a screenshot: [link] I tried using ColorDialog but there doesn't seem to be a way to have only a ...
Socket.BeginConnect -> "Safe handle has been closed"
semedao -
27 Oct 2006 9:47 PM - 3 messages
Hi , someone know the reason and how to handle it? thanks ...
Q:Inserting a value to a dataset.
Martin Arvidsson -
27 Oct 2006 9:43 PM - 4 messages
Hi! I have a dataset, BindingSource, tablaAdapter. I issue a BindingSource.AddNew() After that i want to set a value in the dataset with table name projects and fieldname projectsub to a specific value. (The value differs from time to ...
MS Project interop
justin creasy -
27 Oct 2006 9:41 PM - 2 messages
Hello, I was wondering if anyone know of some good sources of tutorials/source code for programmatically working with Microsoft Project. I've done some interop with Excel in the past but not with any other MS Office program. Any leads will be greatly appreciated, thanks. ...
Q: Displaying computed database fields, gives error on saving...
Martin Arvidsson -
27 Oct 2006 8:45 PM - 10 messages
Hi! I have two computed datafields that i am displaying in my windowsform. When i try to update the dataset and commit the transaction. I get an error message telling me that i cant update calculated fields. That i can understand ...
Enums in a database
Jay -
27 Oct 2006 7:40 PM - 11 messages
In C# I can set up an Enum so that number are represented as keywords, which is very useful. Is there such a datatype in a database? I suppose I could use an extra table, with the ID column as the number, and a corresponding column ...
Adding a Click event to a Web Browser control
Jayyde -
27 Oct 2006 7:15 PM - 8 messages
Can anyone point me to a good guide for how to do this or give me some pointers? What I'm basically trying to do is use the Web Browser as a picture box that has a web source for the image, but it doesn't have a click ...
Unit Tests & access modifiers
Michael Bray -
27 Oct 2006 6:30 PM - 7 messages
I've just inherited a fairly large project with multiple classes. The developer also wrote a huge number of unit tests (using NUnit) to validate that the classes work correctly. However, I don't think that the class ...
How to customize Textboxes User Interface Dialog Box
André Dumolas -
27 Oct 2006 6:18 PM - 2 messages
I use the setup project of Microsoft Visual Studio. I would like to customize one of the textbox in the user interface dialog box of my program setup. I would like to know if there is a way to add a property to one of the ...
In the ItemCheck handler of a checked ListView, how to find the Item.text value of the row whose che
sherifffruitfly -
27 Oct 2006 6:05 PM - 4 messages
Hi, Here's a skeleton-handler of what I'm trying to do: private void editBbListView_ItemCheck(object sender, System.Windows.Forms.ItemCheckEventArgs e) { string qEnabled = ""; string indexid = ITEM_IN_ROW_WHOSE_CHECK_JUST_CHANGED.Text; ...
Converting byte[] to fixed byte[]
O.B. -
27 Oct 2006 5:21 PM - 3 messages
Given the following bit of code, the PtrToStructure is not correctly copying the data into the PDU class. After it executes, the pdu.buffer[] array looks nothing like the data[] array that I tried to copy from. Help? ...
I don't know why this fixes this... any ideas? (System.Drawing.Image.FromStream "parameter is not v
bookon -
27 Oct 2006 3:32 PM - 8 messages
I was running into the System.Drawing.Image.FromStream "parameter is not valid" on some of the images I was retrieving from a blob column in Sql Server. I thought there were corrupt images as almost all worked (all are gifs), and only a few broke when this line ran: Image img = ...
How to add a custom event source in C# / .NET
T McDonald -
27 Oct 2006 3:28 PM - 3 messages
I've been having a problem writing to an event to the Application log. I believe the issue is caused by the fact that the source was previously both a custom log and the source. I deleted the log using EventLog.Delete(logname); ...
String Declaration
Jim Heavey -
27 Oct 2006 3:11 PM - 3 messages
I have an SQL statement which is quite long. I want to declare a string variable with this SQL statement and I want to have span multiple lines. I could scrunch it all up and place it on a single line, but then the SQL ...
deserialize and utf8 encoding
Heron -
27 Oct 2006 2:55 PM - 2 messages
Hi, I'm having a problem deserializing my streams since they are utf8 encoded (they are being received over tcp/ip) so I was looking for a way to make the serializer use utf8, is there any? I'm getting the following error: ...
Efficiency about hashtable, arraylist, string and synchronization
chrisben -
27 Oct 2006 2:20 PM - 11 messages
Hi, Here is the scenario. I have a list of IDs and there are multiple threads trying to add/remove/read from this list. I can do in C# 1. create Hashtable hList = Hashtable.Synchronized(new Hashtable()); 2. create ArrayList aList = ArrayList.Synchronized(new ArrayList()); ...
How to query for vertical scroll bar in RichTextBox control
Jesper -
27 Oct 2006 2:05 PM - 2 messages
Hi, In a RichTextBox control I've have set the properties mulitline = true, scrolbars.Both How can I query a RichTextBox control for showing the vertical scroll bar - i.e. query the RTB for showing all contained text or not? ...
changing css colors
Sam Carleton -
27 Oct 2006 1:25 PM - 5 messages
How do I change the CSS colors via JavaScript DOM? Let me explain... I am working on a Windows application (in C#) that displays some HTML. In one place the HTML is a status window. What happens is the static ...
Performance issue!!
Varangian -
27 Oct 2006 1:24 PM - 6 messages
Hi, I have a performance issue question? which is best (in terms of efficiency and performance, I don't care neatness in code)... building an ArrayList of Object Instances using SqlDataReader OR using SqlDataAdapter to Fill a DataSet or DataTable ? ...
Get Users in my domain
Ivan Sammut -
27 Oct 2006 1:17 PM - 2 messages
Hi ppl Is it possible thru c# to get a list of the users & groups in my domain. 10x Ivan ...
Add ComboBoxes in runtime based on user input, how?
svein.erik.storkas -
27 Oct 2006 12:55 PM - 6 messages
I'm creating an application where the user first selects a number from a combobox. Based on his choice of number, ComboBoxes and buttons are to be created (at runtime of course). Let's say that the ComboBox is to be named cboTeam and the index number ...
timeout on Stream.Read
carmelo8 -
27 Oct 2006 12:48 PM - 4 messages
Hi there, I want to timeout Read method of System.Stream class after 30 secs. of no activity given a certain opened connection. That is, because some incoming connections to my application just don't give any signal and my Read method keeps waiting from the socket for some data to be read ...
VB to .Net migration
Kannan -
27 Oct 2006 12:35 PM - 5 messages
Hi, We are planning to migrate one VB project to .Net. But I have a common questions. can any one clarify my below questions. 1. Is there is any advantage of using C# than VB.net. I feel both are same ...
Security Issue in Service
bthubbard -
27 Oct 2006 12:13 PM - 2 messages
Hello All, I've run into a bit of an issue and I was hoping that someone here could help me. I have inherited a Windows Service written in .Net 2.0 (C#) from a previous employee. It build successfully and I am able to ...
IEnumerable<> won't work
Gustaf -
27 Oct 2006 10:52 AM - 16 messages
Using VS 2005. I got an 'IpForm' class and an 'IpFormCollection' class, containing IpForm objects. To iterate through IpFrom objects with foreach, the class is implemented as such: public class IpFormCollection : IEnumerable<IpForm> { ...
c# networking broadcast message
nous.mc -
27 Oct 2006 10:13 AM - 2 messages
Hi All, I'm developing a simple program that send and receive multicast messages But it not work correctly... can you help me? This is my code: listener: private IPEndPoint m_ipLocalEndPoint = new IPEndPoint(IPAddress.Any, 4321); internal void Start() ...
User Controls for changing form content?
DrPete -
27 Oct 2006 10:02 AM - 4 messages
Hi, I'm trying to replicate how other applications work when it appears there is one form, and the contents changes when the user clicks a Next button. For example, adding a mail account in Outlook. How is this achieved? Is it through User Controls? i.e. each "page" is ...
take information from web
Anja -
27 Oct 2006 9:57 AM - 3 messages
Hi, I would have to transfer some data from web to reporting services. how I can make this? Thanks Anja ...
Visual Studio 2005 - Document window, what's with this drop down?
Simon Tamman -
27 Oct 2006 9:35 AM - 4 messages
In VS 2005 they've replaced (in the main document window) the handly lefty/righty arrows with a hideous drop down list. Anyone know how to change it back to VS 2003 style? Simon ...
Combobox options only
Ivan Sammut -
27 Oct 2006 8:00 AM - 3 messages
Hi, I have a form on which I placed a combobox which then I related to my database to show a list of countries. Now I need to let the user only select entries from those available in the Combobox and not start typing anything. ...
How to Share a folder?
Michael Demb -
27 Oct 2006 7:49 AM - 3 messages
How can I create a share for an existing folder and set a permitions for it? ...
Assign Fileextension to application
Howie Meier -
27 Oct 2006 6:50 AM - 2 messages
Hi NG, i want to assign any file with an spezial Extension to an C# application. I know how to link the extension in the explorer options to an application. Can this be done automaticaly ? How can the application get the commandline parameters during the ...
Default value of a GUID field?!
Leon_Amirreza -
27 Oct 2006 6:03 AM - 10 messages
I have a column named "ID" and its type is "uniqueidentifier" in SQL Server 2005 Express. this column is the primary key and its default value is "newid()" in SQL Server. I have generated a DataSet in C# that has this column but its default value ...
Since we cannot unlaod a assembly,Is there any reference about this indicate that this problem won't
navyliu -
27 Oct 2006 5:53 AM - 4 messages
I have raised a discussion about assembly unloading.But we can't get a final solution. Since we cannot unlaod a assembly,Is there any reference about this indicate that this problem won't make smartclient use up memory? Best regard ...
Reading numbers from a text file
White Spirit -
27 Oct 2006 5:18 AM - 2 messages
I'm trying to read a number from a text file into a type int. I've read the byte into an int, i. I then try to do something like int number = (int) (char) i. However, number still has the ASCII value of the number. ...
Choice for a desktop database.
Frank Rizzo -
27 Oct 2006 5:04 AM - 6 messages
I am building a vs2005/c# stand-alone desktop application that will need to store quite a bit of relational data locally. The database will be mostly a read-only data store. This application will be distributed to ...
How to access files in a remote system
KAMAL -
27 Oct 2006 4:57 AM - 2 messages
Hi all, I want to connect to a system remotely in .net and also i need to access the files in the remote system. Can any body help me. Thanks in advance. Regards, ...
Is there an OnCheckedStatusChanged event for a checked-ListView control?
sherifffruitfly -
27 Oct 2006 3:30 AM - 3 messages
Unless I'm a lot less clear than I think I am, the hypothetical OnCheckedStatusChanged event means exactly what it sounds like. I would love such an event. If not, what's the closest I can come? thanks! cdj ...
Convert Hashtable
Joe -
27 Oct 2006 3:30 AM - 7 messages
Hi, I have a Hashtable of string objects that I need to convert to a XML string. Any ideas how to do this? Thanks ...
2 questions about the extension methods in C# 3.0
Samuel Siren -
27 Oct 2006 2:57 AM - 3 messages
Have just read about LINQ ant the new planned features of C# 3.0. I think it's fantastic, but I have a few questions about extension methods: Question 1: Syntax ------------------ Why is the syntax for an extension method like this: ...
Type.GetProperties() question
Patrick -
27 Oct 2006 2:51 AM - 10 messages
Hello All, Does anyone know what order GetProperties() returns public properties in? I'm using custom Attributes on the properties of my Business objects (NHibernate) to let me know if they should be displayed in a grid or not. I ...
Threading.Timer & System Shutdown Problem
Sin Jeong-hun -
27 Oct 2006 2:46 AM - 3 messages
I created a windows form application. It has a Threading.Timer and when the timer ticks it does some work and show a popup window. The problem is that while this program is running if the user tries to shutdown Windows, my application doesn't quit and neither does ...
C# not closing database connections(?)
MarkusJNZ -
27 Oct 2006 12:30 AM - 6 messages
Hi all, I have just inherited a framework written in C# which is used to store objects into a database via ADO.NET. When I did a bulk insert the database started to run slow I logged into MSSQL enterprise manager and looked at the running processes under ...
c# sms 2003 add to collection
jkinneberg -
27 Oct 2006 12:11 AM - 2 messages
In the process of developing a C# GUI for our desktop support team. Basic code following allows me to query the contents of a collection. Would someone help me by posting a sample of how to add workstations to a ...
ASP.NET Custom Control Questions [Newbie]
DaBrain -
26 Oct 2006 11:01 PM - 2 messages
Two question about ASP.NET Custom Controls 1) I am developing custom controls and was wondering how I can implement the URL ~ deal. ~/page/page.aspx How do I translate ~ to the web root? I must be overlooking something very simple here? ...
How know windows locked (via ctrl-alt-del)?
John Smith -
26 Oct 2006 10:55 PM - 3 messages
How do i know if windows has been locked (via ctrl-alt-del)? I need to know because I'm running my app as a service and I want to suppress sounds when the desktop's locked (it currently plays them). ...
Arrow Keys neglected on User Control
Martijn Mulder -
26 Oct 2006 10:04 PM - 2 messages
/* I have problems detecting the Arrow Keys on a User Control. A control derived from System.Windows.Forms.Control neglects 'bare' Arrow Keys but does react on the combination <Alt> or <Ctrl> + Arrow Key. The code ...
Application Files Left Behind After Uninstall
Trac Bannon -
26 Oct 2006 9:07 PM - 4 messages
I finally figured out how set up my VS deployment project to remove a previous version (I was not setting the productdoe or version number). While I have been testing, I notice that if I choose to uninstall entirely, ...
Arguments to windows app
Jay -
26 Oct 2006 8:32 PM - 3 messages
I have a windows app that looks like a dialog box. It displaya a message, with Yes/No buttons. And the Message can be different each time the windows app is started. Can I pass in the message as an argument into the windows app, so that I can ...
Detecting Remote Client Socket Close in BeginReceive
O.B. -
26 Oct 2006 7:59 PM - 3 messages
In the following code snippet, the thread successfully makes it to the line where it waits for data to be received. Then the client closes the connection. The thread wakes up and returns from the WaitOne() operation. No exception is thrown when it loops and executes ...
Deleting ones self from a Dictionary
tjohnson -
26 Oct 2006 7:40 PM - 2 messages
Assuming a class contains an event handler (say from a timer), and - upon the event being caught - deletes itself from a dictionary, is this legal? Will the GC ever clean this up (a breakpoint on the Dispose method below never gets called, and a memory profile seems to show the ...
Hover effects, IMessageFilter not working as expected
ThunderMusic -
26 Oct 2006 7:18 PM - 5 messages
Hi, I'm developping a form that renders differently when hovered and trigger some processing when not hovered (leaved). The thing is, when I leave my form and another form from my application is underneath, it works fine, but if I leave my form and anything that is not from my application is ...
DotLucene with ASP?
ron.abramson -
26 Oct 2006 7:02 PM - 4 messages
I have been successfully using Java Lucene with various Java, Python and PHP projects, and would like to try more of a native Microsoft approach. My immediate total newbie question is how to call functions in Lucene.Net.dll from ASP or VBA code. I tried loading this dll with ...
Inconsistent accessiblity compiler error when putting public metho
MrNobody -
26 Oct 2006 6:49 PM - 3 messages
I am trying to extend TreeView to add some of my own functionality and I needed to put a public method but the compiler won't let me and I really don't understand why. I declared my class: public class MyTree : TreeView ...
compie error CS0117
B. -
26 Oct 2006 6:42 PM - 5 messages
Hi I have two projects, one written in MC++, and the other in C#. In MC++ header file, I have: namespace Domain { namespace Subdomain { namespace ManagedCPP { ...
Automatic Application Updater
Venkat -
26 Oct 2006 6:41 PM - 2 messages
Hi, Can any one provide an example or resources about an application updater block? I have an application and I want to check for new updates available on server. If there any updates available then I want to update my ...
Stack trace from an exception in a native C++ method
barker7 -
26 Oct 2006 6:39 PM - 4 messages
I am calling an unmanaged C++ method from C#. When an exception occurs in the C++ code, it gets caught in our C# code. CSharpMethod() { try { NativeCPPMethod(); } ...
Faster way to retreive records from collection by the passed key
Venkat -
26 Oct 2006 6:36 PM - 3 messages
Hi, I would like to have a multiple key dictionary to find a value based on the given key. Here is the example to demonstrate what I mean. I have an Employee class ...
NUnit problems building example
JohnGoogle -
26 Oct 2006 5:57 PM - 3 messages
Hi, I'm a newbie so sorry if there is a simple answer to this! I'm using C# in Visual Studio Express at the moment. I've downloaded NUnit v 2.2.8 and can load and run the tests they ...
random numbers
moni -
26 Oct 2006 5:48 PM - 8 messages
Hi, Can anyone tell me , how I would generate random numbers, for an interval say from 15 to 450 in C. Plz lemme know. thanx.. ...
Really Basic Question
Adam Powell -
26 Oct 2006 5:40 PM - 2 messages
Have just downloaded Visual C Sharp 2005 Express Edition and when i attempt to create a new project i get this message: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." has this happened to anybody else? any ideas what it's specifically ...
Underline letter in a button
dfoster -
26 Oct 2006 5:38 PM - 7 messages
In my form, I have four buttons that do different tasks. The button.Text field is set as &Next Project, so the N will be underlined. In the preview of the form, it shows up with the N underlined. Yet ...
how to add mouse right-click event to tree w/out overriding defaul
MrNobody -
26 Oct 2006 5:27 PM - 2 messages
by default when you right click a tree the control selects the node if you add a right-click event (so that I can put sepearate ContextMenus depending on what type of node the user clicked on) then that default ...
Server Socket Synchronization When Connecting?
O.B. -
26 Oct 2006 4:47 PM - 4 messages
When sharing a Socket between threads, are the socket operations automatically synchronized to support multithreading? For example: Thread1 sets up a server socket to listen and invokes BeginAccept. A connection is made and Thread2 (within the BeginAccept delegate) begins. Does the server socket been to be "locked" before Thread2 calls ...
How to force ExcellApp.Quit() when it's actually called?
sherifffruitfly -
26 Oct 2006 4:46 PM - 5 messages
Hi, I load the contents of an excel sheet into a dataset via the excel object library (couldn't get the #$%#$^ oledb/ado route to work - #^$%&^%$ connection strings... grrr.... ) Anyway, after I get the sheet's contents into my dataset, I'd love to ...
DateTime in dropdown
Jeff User -
26 Oct 2006 4:37 PM - 6 messages
Hi all The date values in my dropdown list appear as mm/dd/yyyy Specifically, the day always contains 2 digits. I need to set the selected index of the dropdown to the date that equals another date value that does not use 2 digits for the day, if ...
COM : Interface from c# to c++ problem with IntPtr type
Eric -
26 Oct 2006 4:36 PM - 28 messages
Hi all, I have a C++ application that load C# applets. A method use an IntPtr parameter because I want to be 32/64-bit compatible. The problem is in the .tlh file generated. This parameter is a long and not an INT_PTR ...
.NET and SQL types
Macca -
26 Oct 2006 4:03 PM - 2 messages
Hi, I am doing some DB work and have a question about type conversion. I have a column in my database that is a varchar(255) If i only use some of the space, e.g store "car" in this field, when i fetch ...
Find most recent node added to a TreeView
SteveT -
26 Oct 2006 3:51 PM - 3 messages
Is there a way to locate the most recent node added to any location within a TreeView? ...
Regex: match whole word
MrNobody -
26 Oct 2006 2:29 PM - 6 messages
is there a simple way to make it so your regex only matches whole words? i was thinking simply something like: [^a-zA-Z0-9]*match_string[^a-zA-Z0-9]* but then I think it would fail if the word was at the beginning or end of a ...
How do I add colorize a black & white image?
MrNobody -
26 Oct 2006 2:25 PM - 5 messages
Let's say I have an image which is monochrome with areas of white, black and shades of gray. Now I want to turn all the white parts into some RGB color but it also needs to be darkened by the gray areas for the same color. ...
return a 2 dimensional array method
amit sinha -
26 Oct 2006 2:09 PM - 3 messages
i need to a method where i add elements in array list and the method should be returning type.. ...
socket and virtual host
Steph -
26 Oct 2006 2:03 PM - 2 messages
eh eh.. a little problem... i need open a HTTP socket to a server with a lot of virtual hosts... this.ipHost = "[link]"; IPHostEntry ihe = Dns.GetHostEntry(this.ipHost); IPAddress.TryParse(ihe.AddressList.GetValue(0).ToString(), out IPAddress); ...
Hiding Text-a question
DanielM -
26 Oct 2006 1:31 PM - 5 messages
if anyone can tell how, by C# working with Binaric files' by "filestream", can hide a text in picture file? ...
GDI+ Z-order?
ibiza -
26 Oct 2006 1:14 PM - 6 messages
Hi all, I use VB.NET (C# would do the same) and GDI+ to draw on a form. I'd like to know if it is possible to set the z-order when we draw something...Let's consider that simplified case : ...
C# typeof() and Generics
Jorge Varas -
26 Oct 2006 12:51 PM - 13 messages
Let's say that you have: class A { T DoSomething<T>() where T : class, new() { T ThisObj = new T(); // Do something usefull... ...
Anonymous Method Sample
Nick -
26 Oct 2006 12:48 PM - 4 messages
Hi, I was just playing around and found that the following two ways of calling the same method using the WaitCallback method that takes an object parameter. Can any one explain why there is no problem with the first call even though the delegate doesn't take in the Object ...
Automatic Cast
Steph -
26 Oct 2006 12:39 PM - 2 messages
hello, i want replace my last code with a generic code : o = an object; before : this.panel1.Controls.Remove( (webTest)o ); after (like) : this.panel1.Controls.Remove( (o.getType())o ); but that doesnt work... i somebody have an idea.... steph ...
|
|||||||||||||||||||||||