Software Development Network Logo
  • Visual Basic
  • IE Development
  • SQL Server
  • Windows Vista
  • Windows Forms
  • VS Team System
  • Visual FoxPro
  • Game Technologies
  • .NET Development
  • Visual Studio
  • Smart Devicet
  • Microsoft ISV
  • Visual C++
  • SharePoint Products
  • Visual C#

Software Development Network >> Visual C#

Visual C#

New Question

Why I can't see LLTD probe packets on network?
How can I strip HTML code?
custom attribute
CursorConverter Error
How to return indefinite quatity result form function?
Make Line as object
communication between threads
Using private constructors in embedded classes
how to convert from hex to arabic language
Security - normal practise? Please reply

Top Answerers

Stephen912
giftgirls
PelleB
REspawn
Keren S
InvalidSynTax
Marlun
Kevin Rodgers
Leonid Niraev
Saiboro
sitemap
Only Title

Answer Questions

  • tt2lhp Help a newbie! Converting VB6 to C#

    Hi All, I've been given the unenviable task of converting someone's VB6 code for an upload form into C#. I'm not doing to bad at the minute but I'm struggling with some of the conversion. For example I have the following code (in C#): ====================== Hashtable strLang = new Hashtable(); Hashtable strAllowedExtensions = new Hashtable(); private bool SetLang() //*** SetLang() //* Add language strings to the array collection //*** { strLang.Add("INFO_FILE_SPEC", "- Is one of the following formats {0}, and is no bigger than {1}"); strLang.Add("ERROR_MAXSIZE_EXCEEDED", "The CV is bigger than the maximum size allowed."); strLang.Add("ERROR_INVALID_FILETYPE", & ...Show All

  • raghava66 Fade background like WinXP

    I would like to simulate WinXP shutdown's background fade to grayscale. How can I achieve this on my app's quit when I ask user "are you sure you would like to quit" else return to full color. Thanks for any ideas If you play with form transparency you will get simular behaviour but not same. Hi, Did you manage to simulate it Bhanu. No Bhanu, I did not get it. But I hear that colormatrix/saturation is the way to go. how 'bout trying and capturing entire screen to bitmap, drawing to fullscreen and then showing your form / message box above it ...Show All

  • ljkyser WinForms Problem

    I am working on a winforms app that utilizes ODBC to acces paradox tables and a WinMobile database(.sdf) in order to sync table records. My problenm is that as soon as I add a grid with one of the Mobile database tables I get this error Unable to load DLL 'sqlceme30.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) From this code [System.Diagnostics. DebuggerNonUserCodeAttribute ()] private System.Data.SqlServerCe. SqlCeDataAdapter Adapter { get { if (( this ._adapter == null )) { this .InitAdapter(); Error on this line.... } return this ._adapter; I thought that was contained in this reference System.Data.SqlServerCE which is a reference in my project. ANy one kno ...Show All

  • Asday is there any source/version controller .....?

    is there any source/version controller which can work with any language builder tool like vs 2005, jbuilder or other java language tool and php tools....... means with every language tool...... i want such source controller which can be manageable from that language tool builder as VSS is for VS i hope u got my point if no then u can ask ......... try SVN. As my knowledge, it can be integerated with the IDE like Eclipse, as well as you can directly work through file system (means you can go for any language), using tool called tortoise. ...Show All

  • Tb2006 Windows Service - Computer shutdown

    Hi, Does anyone has an example of windows service, to run everytime that the computer shutdown and startup And is it possible to install via command line, how can I make it Thanks Thanks.. you can setup your service to run automatic in order to get it run when system is started. Thus first requirement is fullfiled. About executing something on system shutdown you can handle Microsoft.Win32. SystemEvents .SessionEnding event and there is command line tool that install .NET windows services called installUtil . (see here too http://www.codeproject.com/dotnet/ScriptedServiceInstall.asp ) Hope it helps ...Show All

  • dstorch foreach without Type

    Hello, I have a collection and I want to iterate all elements in it. Example: string [] arr = new string [] { "A" , "B" , "C" }; foreach ( string s in arr) Console .WriteLine(s); in the example the element type is string, because the collection is array of strings. is there a way to do the same as foreach does, but without declaring the type. something like: foreach ( s in arr) Console .WriteLine(s); some how make the compiler know that the type is the collection's element type. Thanks. You can always use object as type: foreach(object s in arr) Hi, Ori If you want to repeat the elements in a group by using foreach , you have to define the ...Show All

  • zensunni What's the difference ?

    Hi! I have SortedList implemented as a generic one like this: SortedList<int , string> myList = new SortedList<int ,string>(10); What's the benefit of having int instead of just int as a key Key can't be null so if I set: int a = null; myList.Add(a, "foo"); It will compile but still won't work. So should it be int I found it in a code but don't get why is there. Jedrzej Hi, Jedrzej int  is what called Nullable type , we can use nullable type more flexibly and with more convenience. (it has HasValue and Value properties) So, it is used as a kind of Generics. It is one of the "late breaking" features in C# 2.0. The details can be found in the C# 2.0 language spec . Nul ...Show All

  • Robert F Bouillon Fingerprint Scan Code With C#

    Hi, I was wondering if anyone here could help me. I am looking for any resourses or code that will allow me to scan a fingerprint, store it for later retervial, and then compare it against a fingerprint of a user when their fingerprint is scanned. I have no idea where to start. Please help. Michael also if you are creating a new fingerprint securtiy feature for windows http://msdn2.microsoft.com/en-gb/library/aa380528.aspx Hope this helps you out Hi check out the following link for an existing open source library - always a good place to start and learn :) http://fvs.sourceforge.net/ Hope this helps you out , please close the thread if it does ...Show All

  • Bruno Kova&amp;#269;i&amp;#263; What time format?

    I got this string (14 bytes) as an output from a demo C# code I am trying to incorporate into my app. DateTime=12102006222639 It is 10/12/2006 but the rest of the string represents time. Is it possible to figure out by just looking at it or applying an operator the exact time represented by the rest of the string (6 bytes: 222639) Reading it so far did not make much sense to me. The presumed time is constrained by day time hours between 9:30 AM and 4:00 PM EST. Thanks. You are RIGHT. Although I haven't verified it yet, it crossed my mind that it could be the case right after I posted the question. You are right on the difference between New York and Greenwich, UK as well. It is 4 hours. Definitely some trading goes on a ...Show All

  • GaryPod FileStream.Read Problem with offset value

    i want to do a FileStream.Read on a file for my web service. Sample code below:- [WebMethod] public Byte[] GetDocument2(string DocumentName, int offset, int length) { string strdocPath; strdocPath = "e:\\" + DocumentName; FileStream objfilestream = new FileStream(strdocPath, FileMode.Open, FileAccess.Read); int len = (int)objfilestream.Length; Byte[] documentcontents = new Byte[length+1]; objfilestream.Read(documentcontents, offset, length); objfilestream.Close(); return documentcontents; } from the sample code above, if offset is 0 and length is any value it will runs without a problem but if i pass in offset with a value of more than 1 then it generate the exception below:- System.Argum ...Show All

  • Quadrillion How to find / locate a control on a form?

    Hi, I have a configuration file, which specifies which controls should be disabled based on certain criteria. The only way I know of getting a refernce to the control in the form is to recursively go through every control. Unfortunately, this is not a viable solution for me. Does anybody know if there is another way to access the control I need based on its Name property, or any other property Any outside of the box solutions are welcome. Thanks a lot. Lidiya indeed that becomes a problem. I guess you would need to get hold of the "parent" control, then do the same thing, using the controls[ controlName] and see what happens This is interesting.  I didn't know I could index into t ...Show All

  • Condor2525 How do I calculate amount of hours using DateTime

    Hi all. As the title says... how do I calculate the amount of daily hours worked by an employee I'm pretty sure this is probably basic but I'm a novice and I'm trying to write a basic app to act as a weekly timesheet, either with VC# or ASP.Net I'm using DropDownLists to enable the user to select a starting hour and a finish hour. The calculation I'm using is (12 - startTime) + finishTime I'm sure I should be using the DateTime object but that's where I'm lost. Should I be using DateTime objects What values would I use for the DropDownList Value property Any help / advice would be greatly appreciated. Thank you. Jake OK, I've actually try this in a winforms app: The ...Show All

  • Daffodils Beginner questions about Serial.IO.Ports and multiple forms

    Hello everybody, I'm currently learning C# using Visual Studio 2005 and still have a hard time to get the big picture in this (new to me) object oriented world. I hope you don't mind answering me some questions that might be pretty basic in your point of view. I managed to write an application that reads commands (text strings) of a serial port and does certain things. I'm now in the need to make this serial port reader a background task that is always running, regardless which form is currenlty visible. I would also like to move the serial reader into a seperate class to keep the code a little cleaner. I read about the background worker task but I'm still confused whether or not this is the way to go or if there is an easier and ...Show All

  • Jason N. Gaylord How Do I Show User Accounts on the Computer in a Combo Box?

    I need help detecting User Accounts on the Computer that the program is being run on and showing them in a ComboBox. Anybody have any ideas sorry its taking this long, I was actually thinking about this on how to respond a couple of minutes ago. I'm still on the case! I asume you are talking about windows user accounts... try this: using System.Security.Principal; string a; a = System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString(); MessageBox.Show(a.ToString()); Change GetCurrent and apply it on a ComboBox with a loop Oh, thank you. It worked well. :) But is there any way that we could get the other accounts to not show up such as - ASPNET, SUPPORT_388945a0, IWAM_AARON, IUSR_AARON, HelpAssistant, and ...Show All

  • bengz How can I code this?

    I am writing a text editor. I would like to have a combobox with all the fonts, and I would like the font to change in the rich text box to the one the user selected. How can I code this Matt Error 10 Operator '&' cannot be applied to operands of type 'System.Drawing.FontStyle' and 'bool' C:\Documents and Settings\HP_Owner\My Documents\mRibbon\Sample\Form1.cs 85 17 Sample Thats what I get. Something seems to be wrong with this line: if (style & FontStyle .Bold == FontStyle .Bold) Matt Something like this: public class MyForm : Form {   private readonly int [] FontSizes = new int [] { 8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 24 }; & ...Show All

232425262728293031323334353637383940

©2008 Software Development Network

powered by phorum