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

Software Development Network >> Visual C#

Visual C#

New Question

Voice Chat,Audio Streaming
create exe of the program
Assigning By Reference
Disabling network adapter from C#
Calling an unmanaged C-language function from C#
Update with parameters works in SQL, but not in OleDb to MS Access
Logon windows
pass word help!!
Strings
Get MAC address of client machine using C#

Top Answerers

Han Qiao
connect2sandeep
exal
chrisanderson
kymaita
Belgarion2
Arnoh
Josh Smith
_lew_
Zhao_Gil
Equinox software
Only Title

Answer Questions

  • dni {"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."}

    So i have method which is executing in loop, there is this method: public void Play() { MemoryStream tempStream = new MemoryStream (memStream.GetBuffer()); //everytime i create new memorystream try { applicationBuffer = new SecondaryBuffer (tempStream, applicationDevice); //create directsound secondary buffer to play data in stream } catch ( Exception ex) { MessageBox .Show( ex.ToString()); } if (applicationBuffer != null ) applicationBuffer.Play(0, BufferPlayFlags .Default); //play data //tempStream.Flush(); //tried this //tempStream.Close(); //and this tempStream.Dispose(); tempStream = null; //GC.Collect(); //this didn'd help //GC.WaitForPendingFinali ...Show All

  • mblas Handling encryption at the application level

    The development of an application that handles encryption (AES) of data stored in a database (SQL server 2005) at the application level through C#. So in practice I would in C# do some simple data handling and then encrypt these data and then insert these data in the corresponding DB tables. This is what I am trying to develop, but I am just in a researching face for the moment, hence my question. Can anybody reply me on the how difficult this should be to accomplish and where to concentrate my researching and if any body as any form of input to this I am very pleased to receive this too. Thank you Kenn Kikkenborg Ahan OK, See the first point of Chunk S, The length of the encryp ...Show All

  • Donaghy Problems with Adding new Data Source Connection

    I just go Data>>Add New Data Source...>>New Connection>> Change>> but all i see is only 2 options Microsoft Access Database File and Microsoft SQL Database File. I need Microsoft SQL Server (sqlclient). Any ideas how to add to the list Microsoft SQL Server (sqlcleint) Hi Also check that is the SQLServer service is running, you can run if installed from Admin tools > Services Have you installed SQL Server, or do you have access to a SQL Server server Hi Microsoft sql server supports sqlclient. ...Show All

  • Jiffy C# DLL from Javascript?

    Is it possible to call a C# DLL from server-side Javascript Or would that be too much of a security issue Thanks in advance, Chris Hi, It is possible but note that you need to have ActiveX enabled in your browser. This setting is mostly not set. So if you are planning to use .NET dlls, you need to make sure that ActiveX is enabled AND that the correct version of the .NET framework is installed on the client pc. Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog Completely possible, You probably want to access properties of a .Net based windows control in Web Browser. Search google for IE Hosted Control etc. There is a lot of stuff on it. ...Show All

  • joeydj ( ), { } and [ ]??

    Hi, Can someone please provide a detailed explanation of ( ),  { } and [ ]  and when each one should be used I have some knowledge of what they mean as I see them used quite often in different parts of the code. Sometimes I see them used in a rather confusing way but because the compilers never complained I had to assume that they were used correctly. Is there a standard for using them   Thanks in advance hi thanks anyway, there are quite a few ways of referencing / calling methods, values, variables, index, strings etc through the use of ( ), [ ] and { }. I am not sure how many ways there are but I think many of them have not been clearly documented. I ...Show All

  • mrhoads Math: Round up number. eg 1234 / 50 = 6

    I have a dataGrid and i wish to produce page buttons for next and back. Therfore i need to know how many pages i will need to for my data Eg, i have 1234 rows of data and each page will contain 50 rows. So 1234 / 50 = 24.68. So I need 25 pages How do i round up a number so 1234 / 50 = 25 . Thanks. Paul When you use the .Round method, you can specify how many decimals to round to - and other things, check out the overloads decimal d = 1234M / 50M; d = decimal .Round(d, 0); MessageBox .Show(d.ToString()); Mike Indeed there are many ways to crack a nut. But what I don't understand is why someone would deliberately choose one of the least efficie ...Show All

  • yogaboy Widechar type to C# Language

    Hi I'm trying to exchange a Delphi function to C# function. Delphi function uses a WIDECHAR type buffer. Which type I should use in C# language what is "WIDECHAR" can you explain this so we can give you the correct type From a quick search, looks like a character type, in C# a character is: char   so...   char theCharacter = new Char(); or... char theCharacter = 'h' //not double quotes like string "" ...Show All

  • rhansen Generic: how to cast to the type specified by a type parameter?

    Hi, If I have a generic class like this: public ClassA<T> { private T val; ... } The T can be some numeric types. Now, if I want to add a constructor, which contains: val = Math.Pow(2.0); The compiler will complain "can't implicitly convert 'double' to 'T'". So how to do it correctly here Thanks in advance, Shu Thanks a lot, Mattias! Try it like this val = (T)Convert.ChangeType(Math.Pow(2.0), typeof(T)); Also, Math.Pow takes two arguments, but that's another issue. ...Show All

  • Sundaar why (Object reference not set to an instance of an object)?

    I am using this code but getting "Object reference not set to an instance of an object.". This is the code and below it is the error message: private void generate_report() { npg_connection = new NpgsqlConnection ( "Server=www.db.2connectbahrain.com;Port=5432;User Id=jassim_rahma;Password=731004167;Database=billing;" ); npg_connection.Open(); // npg_command.CommandText = "Select category_title FROM reports_category ORDER BY category_title"; npg_command.CommandText = "select * from cdr where local_gateway_start_dt between '2006-08-01 00:00:00' and '2006-08-01 23:59:59' and originator_ip = '80.88.247.115' and dest_reg_id = '2connect_pbx' and called_num_e164 in('165 ...Show All

  • Claudes How to use ActiveX in a Windows Service

    I developed a Windows Service, which will create instance of ActiveX, but I got an error: System.Threading.ThreadStateException: Could not instantiate ActiveX control 'b0b25446-7656-456c-8d3c-60a0ac6eac49' because the current thread is not in a single-threaded apartment. at System.Windows.Forms.AxHost..ctor(String clsid, Int32 flags) at System.Windows.Forms.AxHost..ctor(String clsid) at AxJDSMSCtrl.AxJindiSMSControl..ctor() at SMSPlatForm.MainService.start() [Code] AxJDSMSCtrl.AxJindiSMSControl ocx = new AxJDSMSCtrl.AxJindiSMSControl(); This service log on as Local System, and "Allow service to interact with Desktop". This service communicates with serial port, the functionality is provided by a third party OCX ...Show All

  • Wicket How can I stop the illumination of the form ? GDI+

    Hi, wile I was trying to draw on the form every 100 ms , I had a problem that the form illuminates like the flash light every time I tried to draw on it, I know that I mustn't clear the form that much but I have to because I'm trying to let the form take a shape I've drawn in a PNG file . what can I do to stop this Illumination or if you know a better way to shape the form as I want please write it here . and I want to tell you something great : I have taken 98% in my high school final exam ( the one before the university ) which means I can choose to enter any faculty I want in Damascus University . sorry I didn't understand it " Avoid it by painting the form area not covered by the bitmap &quo ...Show All

  • pblecha How to invoke command line from C#?

    Hi, I wish to know is there anyway to invoke command line from C# programatically Regards, Leo Thanks. I will try it out. I got this problem when I use standard output. Ok I got this batch file with the content identify -format "%%w|%%h" %1 And it is use to identify the width and height of an image And when I use fileSize = System.Diagnostics. Process .Start(proc2); System.IO. StreamReader processOutput = fileSize.StandardOutput; fileSize.WaitForExit(20000); if (fileSize.HasExited) { result.exitStatus = processOutput.ReadToEnd(); } I got this identify -format "%w%h" test.jpg 160|120 All I want ...Show All

  • Emre &amp;#199;etinkaya can any body help me in reversing strings

    this fuction help me to convert the arabic words to hexa .. and it doing the job 90% because it convert it in reverse   this means that the true hexa for example is (062F0645) but the function returns it like this (0645062F) and this makes each word come in reverse order   for example ... I love you becomes uoy evol I   how can fix that     public string ArabicHex( byte [] b) { string temp,s="",h=""; int i=0; while ((i <= b.GetUpperBound(0))) { temp= "00"+b .ToString("x2"); h = temp.Substring(temp.Length-2); if (h == "000D") { h = ""; } s = h + s; i += 1; } return s; }   thanks in advance ...Show All

  • Robert3234 Weird one - Router Death by Vista

    Here's a weird one. It seems that Vista RC2 is routinely killing my ADSL router I have a dual boot system (patched up XP Pro vs Vista RC2). Vista seems to be killing my D-Link DSL-500 like...., several times a day while Vista is running. Has anyone else noticed this I'm thinking.... some sort of weird network plug and play thing (which is disabled - by the way) RickW hi, Yeah it D/C'ed for me too. Also found that when i start/shut down vista it resets the router. Haven't found a solution yet but i'll keep searching. I also think it has something to do with vista sending a signal to the router that causes it to reset. cheers, bb10 ...Show All

  • nothingmag logout issue

    HI We are experiencing a very annoying issue. Our web application is using SQL Server sessionstate management and forms authentication. When a user is using the logoff functionality if the app, this is what our code does Session.RemoveAll(); Session.Clear(); Session.Abandon(); FormsAuthentication .SignOut(); FormsAuthentication .RedirectToLoginPage(); So let's assume that I'm doing the following Open a new browser browse page http://localhost/UI/test.aspx I'm redirected to the http://localhost/login.aspx Once I'm logged I'm redirected to http://localhost/UI/test.aspx Click the logout button Browse to msdn.com Browse to http://localhost/UI/test2.aspx I'm NOT redirected to login.aspx... This i ...Show All

373839404142434445464748495051525354

©2008 Software Development Network

powered by phorum