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

Software Development Network >> Visual C#

Visual C#

New Question

Database INSERT Statement
foreach usage with arrays
dateTimePicker = DateTime.Now & "Time"
Query regarding compressing Folder in ASP.net
Writing to multiple files
How to use static class in Class Library (C#)
Is there an equivalent to web.config for C# executable?
How to insert a table into HTML page with doc.execCommand() method ????
Could not load type '_Default'
Multi Interface inheritance

Top Answerers

ZopoStyle
BortNE24
AlexHardenburg
Prashant Tholia
alex.tabac
Programm3r
Mark Benningfield
Any ole Joe
Leandro Loureiro dos Santos
Mnkylord
sitemap
Only Title

Answer Questions

  • swagatika_m reinterpret_cast in c#

    Hi I am converting a visual C++ application to C# and there is a code that i don't know what i should do with BitmapData img_buf = image.LockBits(rect, ImageLockMode.ReadWrite, PixelFormat.Format8bppIndexed); unsigned char* pData = reinterpret_cast<unsigned char *>(img_buf->Scan0.ToPointer()); Does C# have somethign equivalent to reinterpret_cast in C++ Thanks a lot for your help Best regard Duong For the most part reinterpret_cast is only there to satisfy the compiler when you are doing an inherently unsafe conversion and an analog in C# would depends on what the actual types are as it is ultimately up to the CLR to decide if the type conversion can and will occur. How much control do you have over the code that the ...Show All

  • Prabagarane ReportGeneration Application

    I have to create a web app. that prints out the statistics for student applicants in a .txt file. The data in form of Tables resides in a SQL server. Now, the user provides a date range(for eg. from 12/1/2006 to 1/1/2007) and the outputted text file will have the following: - The Number of applications received - The number of applications approved - Number of students with a criminal background and the type of background - Number of applicants who applied last year. I was wondering that from a design standpoint, what would be an elegant and effecient way to extract the data from the server, store it in some kind of data structure and output the contents in a text file. I was looking at Enterprise library and interfaces but ...Show All

  • boldeagle toolStrip and splitContainer problem

    I have a splitContainer which is set to Dock=Fill but when I added the toolStrip which is Dock=Top I have noticed the top part of the splitContainer moved below the toolStrip s ho can I make the toolStrip Dock=Top and the rest of the size assigned to the splitContainer Hi, this is most likely the Z-order issue. Try clicking on the splitContainer with the right mouse button and select Bring to Front. Andrej You Should Frist Add ToolStrip, Then add SplitContainer... To acomplish this right now, In InitializeComponent Remove SplitContainer1.Panel1.Controls.Add(this.SplitContainer1) After this.Controls.Add(this.SplitContainer1) Add this.Controls.Add(this.SplitContainer1) It have to be AFTE ...Show All

  • MartijnP Passwords

    Hello, I have a few questions relating to passwords. For starters, how do you make the password application so that it will recognise both the password and the username (ie. if the username is valid but the password isn't (or vice versa) how can you make it object until both are valid) My second (and final) question is: if the user wishes to change his/her password or username, how can he/she do it with out it reverting back to the old one next time he/she needs to enter it Thanks. Eragon. Hi Where are you storing the user credentials Is it in a database, Active Directory or some other data store This will need to be established before a proper suggestion can be given as the techniques used would be different. If it is ...Show All

  • Kamii47 System Time

    Hi all, I am using C# in windows form ( VS 2005 ). I would like to know how do i add system time into the windows form. Your help will be appreciate. Thanks! =)) DateTime.Now    there are methods like .ToShortDateString  and . ToShortTimeString and . ToString ...Show All

  • David S. Anderson Help on creating a generic singleton class

    I am on the process of creating a generic class for the singleton pattern. My implementation as follows: public class Singleton<T> where T : new() { public static T getInstance() { if (this_ == null) this_ = new T(); return this_; } private static T this_; } Sample use would be: Singleton<Logger>.getInstance().someMethodHere(); The problem with this implementation is that the target class that would be converted into a singleton must have a public constructor, which is in the first place I am preventing it. I have implemented a simliar approach in C++, however I've used a "friend" class that sould also be declared on the user class. Please advice. Thanks. (BTW, th ...Show All

  • Lee Cascio best way to do file watcher/file validator

    I need to create a program that will watch a directory to see when a new file is placed in it. When there is a new file, certain error checking will be done and certain fields will be populated in a SQL table. The error checking will be done in C#. Then the file will be moved to another directory to signify that it has been validated. I am just wondering what the best way to do this is - can the file watching be done in C# or is SSIS the best way to do this Is there something that can watch the directory up until a certain time - say I want to do all checking from 8-9am and then stop. Would I need to schedule something, or can this be programmed in code Thanks for any help. Saeed I'm not an expert on ...Show All

  • Martin Smyth How to open Excel in the current folder using C#

    Hi all, Please help me!! I have my .exe in the "Debug" folder and I also have an "ExcelFiles" folder in the "Debug" folder as well. What I want is: workbookPath="./ExcelFiles/Gen.xls" Instead of the long path as shown below. Please help me on how to do that. Thanks Jason Sample Code: string workbookPath="C:/Documents and Settings/Administrator/Desktop/C#/TestLab/CopyFiles/CopyFiles/bin/Debug/ExcelFiles/Gen.xls" Excel. Workbook excelWorkbook = excelApp.Workbooks.Open(workbookPath, false , false , 5, "" , "" , false , Excel. XlPlatform .xlWindows, "" , true , false , 0, true , false , false ); Why the dup ...Show All

  • Ed Hintz FileNotFound Exception when trying to invoke compiled Assembly

    Hi! I'm making an application that requires loaded scripts, and for this, I'm using the CodeDom namespace to write my own compiler. The problem I'm having is that when I try to invoke methods from the compiled assemblies, I get a FileNotFound Exception with a constant path (my windows temp directory) that ends in a dll name that changes for every build. The line I get the error on is this one: <source>object Instance = Results[Counter].CompiledAssembly.CreateInstance( ExtractFilename( TempScript.Name ) );</source> My classes for compiling and loading script files looks as follows: <source> using System; using System.Collections.Generic; using System.Text; using System.I ...Show All

  • ComPro save richtext in database

    i have some text in a richtext control how could i save this in a database if i pass control.text from C# to the database the richtext properties are not stored. When i try to viw the text i stored none the rich text formatting are displayed. Save the richTextBox.Rtf property to the database instead of richTextBox.Text. Of couse, when loading, use the Rtf property also. ...Show All

  • Jo&amp;#227;o Cunha Lopes why my try/catch statement "loops"

    hi! i have three succeeding try-catch-finally statements but it sort of "loops" when i run the program. this is basically the code.. . try { insert1.Connection.Open(); insert1.ExecuteNonQuery(); } catch ( OracleException ex) { MessageBox .Show(ex.ToString()); } finally { MessageBox .Show( "insert1 done!" ); insert1.Connection.Close(); } try { insert2Connection.Open(); insert2.ExecuteNonQuery(); } catch ( OracleException ex) { MessageBox .Show(ex.ToString()); } finally { MessageBox .Show( "insert2 done!" ); insert2.Connection.Close(); } try { insert3.Connection.Open(); insert3.ExecuteNo ...Show All

  • Novelle Keyboard Input

    I am working on a 2D game. I am wondering how to use the keyboard arrow keys to move a sprite around. By the way they are sprites from files. If your form has focus, you can handle the KeyDown event as followings: private void Form1_KeyDown(object sender, KeyEventArgs e) { switch (e.KeyCode) { case Keys.Up: case Keys.Down: case Keys.Left: case Keys.Right: MessageBox.Show(e.KeyCode.ToString()); break; } } Hi, Cavetroll As Jared TW described, but you must add the keydown event in form_load first, the example follows:             private void Form1_Load( object sender, EventArgs e)      & ...Show All

  • flypp3r How do I disable the breakpoint highlight?

    If I changed the Fonts & Colors -> Breakpoint (Enabled) color to black foreground and white background, it change the entire line, overriding the keyword colors for example. How do I make it to work like in C++, where only the breakpoint circle is displayed without the highlight ...Show All

  • Marlun Make a File readable only by my application

    HI, I'm developing a windows application in c# and i use video with DirectX. My problem is that i don t want the video to be readable by classic players and only by my program. I ve try to use cryptography but it take to long to charge the video. If anybody as an idea... Sorry for my english, and happy new year, Laura. Hi, 1. I am not sure how above method can work, but try using the following link, http://support.microsoft.com/default.aspx/kb/307010 Other good links for crypto, http://www.codeproject.com/csharp/FileEncryptDecrypt.asp http://www.codeproject.com/dotnet/DotNetCrypto.asp it will guide you how to encrypt, decrypt a file. 2. If you know about header info which will be typ ...Show All

  • TheQuietShadow Mixed lanugue

    HI I look for two days for this issue and did not found a lead. I i use mixed lanuge like hebrew and english when i concating thoes two string it concating according to RTL and not to LTR. My quiestion hwo can i control it. Best Regrads, Yuval ABraham Hi Yuval, Have you tried the string.Format something like these: string .Format( "this is in english {0} and this is in hebrew {1}" , "guy" , " " ); Let me know if that help, Hi, It is a known fact that when concatenating hebrew and english, the order does not appear as requiered. The problem is when you need to display this text to the user interface. If you need to query the data ...Show All

121314151617181920212223242526272829

©2008 Software Development Network

powered by phorum