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

Software Development Network >> Visual C#

Visual C#

New Question

Where should I store passwords?
Return / finally -- which one will execute Last in a method?
automagically adding "" {} () [] etc...
How to decrypt encrypted information
Reflection Related query
Custom toolbars lost
How to Create Installer Programmatically
Using a class as a parameter
xml document file in vs2005 website
Dll Import Problem In Loading two C++ Assemblies with Same Name

Top Answerers

dakota367
robinjam
Jagadeesan
smogit
esamsalah
T-Smooth
Java Q
dto
d.cosentino
Vikash Sharma
Intel
Only Title

Answer Questions

  • Swaykid Need Help in developing MS WORD like application

    Dear All, I have seen applications that has tool bar, with different buttons which are same like MSWORD 2003 look like, and when click on one button suppose table button , a list popup which also same like MS WORD 2003, and there are increase and decrease indent buttons, center align, lift align or right align buttons, and its functionality is also same like MS WORD. I want to implement such functionality in my own application, but remember please don’t refer me to MS Visual Studio Tools for Office Development, show me some other way by which I could do so. Refering me to code for downloading office like application will be highly appretiated. thanks most likely you would need to creat ...Show All

  • WoodrowS video buffer

    Hi.. im developping a client-server application in which i stream video.. i take 5 frames every second and send them to the server like this.. private void timer_snap_Tick(object sender, EventArgs e) { byte[] bpic; MemoryStream ms = new MemoryStream(); pictureBox_snapshot.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); bpic = ms.ToArray(); if(bpic.Length <5001 && bpic.Length >800) m_VideoSocket.Send(bpic); ms.Close(); ms.Dispose(); } Try importing quartz.dll as a reference. at the top of the class, private QuartzTypeLib.FilgraphManager manager; private QuartzTypeLib.IVideoWindow videoWindow = null; private QuartzTypeLib.IMedia ...Show All

  • Aneela_B mscorlib internal exception ANY IDEA ?

    System.InvalidOperationException was unhandled Message="The Undo operation encountered a context that is different from what was applied in the corresponding Set operation. The possible cause is that a context was Set on the thread and not reverted(undone)." Source="mscorlib" StackTrace: at System.Threading.SynchronizationContextSwitcher.Undo() at System.Threading.ExecutionContextSwitcher.Undo() at System.Threading.ExecutionContext.runFinallyCode(Object userData, Boolean exceptionThrown) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteBackoutCodeHelper(Object backoutCode, Object userData, Boolean exceptionThrown) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuarant ...Show All

  • Liam .net Substract 2 Dates, DateTimePicker, DateTime, TimeSpan

    hi, how can i substract 2 dates from 2 dateTimePicker's, i tried all these methods like TimeSpan, DateTime, Substract, but it doesent work. Here's how i tried to do it : dateTimePicker5.CustomFormat = "yyyy,MM,dd"; dateTimePicker6.CustomFormat = "yyyy,MM,dd"; DateTime d1 = new DateTime(long.Parse(dateTimePicker5.Text)); DateTime d2 = new DateTime(long.Parse(dateTimePicker5.Text)); TimeSpan d = d1.Subtract(d2); i know problem is in LONG type but i don't know what to do now..... and one more question, the result from this ( number of days ) i have to send to textBox, but when i tried this code without dateTimePicker it worked, but besides number of days, i got time too time, (like d = 30 , 00 ...Show All

  • Philip Coupar The correct way to Windows service

    Hi all, This is some kind of philosophy question. What is the correct way to build windows service And what exactly do I mean My WS (windows service) have timer and every 1 minute it execute method that need to do something. the method need to run on different thread, and it can be stopped during executing. So, Whet is the correct way using timer thread timer timespan and wait and how can I stop executing Let me try explane again my problem: My service is running just fine. I can stop it (I'm using system.Timer - As RAM say), and while it not on the executing section every thing is just fine. Where is my problem in the executing secion. inside the executing method I create new class and ...Show All

  • Jop jopper C# no header files. All code is written inline - why?

    Hi, Can someone explain "C# code does not require header files. All code is written inline" what is the advantage in going for inline how does it affect dynamic linking why dont we have header files as in C++ Thanks, Benin. How do you mean C# doesn't do any linking, there are no lib files. It just generates MSIL files, the linking occurs long after the source code is gone, when you have assembly references and the final exe goes looking for them to call into. I think the question should be turned on its head. Why does C/C++ have header files You'll see that header files are an answer to a problem that no longer exists - faster hardware and more memory means that a compiler can directly access all ...Show All

  • toniSQL How a derived class' SET method reuses base class' SET method?

    Hi All, I have two classes A and B: public class A<T> { T myData[100]; public T this[int theIndex] { get{ return myData[theIndex]; } set{ .... // Do something. myData[theIndex] = value; } } } public class B : A<double> { public new MyType this[int index] { get{ return new MyType(base[index])); } set{ // I simply want to reuse base class's implementation here. How } } } My question is how to reuse base class' SET method implementation in the derived class' SET method I failed to find any solution with Google. Please help me. Thanks in advance. Shu Mark, I must use &q ...Show All

  • Gary Pronych How to Iterate through List or IList

    i can add the values to the IList or List, if I need to get these values in the way they went it...Say I added 5 addresses to the list and I want them one by one... I can use foreach and get all, but I need a way to only get one at a time or two at the max as I need to update some textboxes... are you referring to the generic type if so then.... theList [ Index ]; index being the position you wish to obtain the value from in the list collection. Say if I do something like this : foreach ( Phone phone in ContactPhoneNumbers) now phone has everything I need....How can I get index from there........ or How I can do this if(theList[0]) // This gives me an exception.... ...Show All

  • anu_ooo Importing resources

    Hi! How can i add existing resource file to a C# project in VS2005 without breaking the connection Lets say that i have a resource file, "MyStrings.resx", with one single string resource MY_STRING = "Hello!". When i create this file, VS will automatically add another file to my project - "MyStrings.Designer.cs". Because of this extra file, i can write code like this: MessageBox.Show(MyStrings.MY_STRING); But when i import (Add existing item) these two files to another project, somethig goes wrong: i can add new string but the class file don’t update automatically. What is the correct way to import resources thx Kimmo Laine Hi Anson! Thx for your reply - it works like a ...Show All

  • Rashar Problem with QOSAddSocketToFlow

    I have a problem with Vista OS build 5536 and Vista windows SDK 6.0.5472.2.1.WindowsSDK_Vista_idw.DVD.Rel.img With such version, the QOSAddSocketToFlow returns an error code ERROR_NOT_FOUND, which says that Invalid FlowID specified. Howeve, I set the parameter Flowid with 0 as the API domument described. Thanks for any help... My Enviroment Vista OS 5536, PlatForm SDK:6.0.5472.2.1 API : QOS_FLOWID FlowId=0; BOOL b=AddSocketToFloe(Socket,DestAddr,QOSTrafficTypeControl,0,(PQOS_FLOWID)&FlowId); chunkai, can you tell us more about your setup and the parameters you specified to the API call thx. Mathias I am also h ...Show All

  • wencey reg-datagrid

    is it possible to turn off the multiselect in a Datagrid if yes, how (By DataGrid I assume that your talking about DataGridView ) You have a property called Multiselect,set it to false; DGV.MultiSelect=false; ...Show All

  • jk67 How can I burn a CD using C#?

    Like WMP, not using the Wizard like in similar posts. Thanks, you need to look at the software API that is provided by the manufacturer drivers and so on - there is no direct way of doing this in C# unless maybe some API here is a code sample/link for using IMAPI in XP and Server 2003: http://msdn.microsoft.com/vcsharp/downloads/samples/xpburn/   its a component made by a few people over at gotdotnet.   ...Show All

  • Andre.Ziegler How to get mem-size of a structure?

    Is there a way to get the memory size used by a structure (say a 2-dimensional array of type String) I need to compare implementations mem-wise, but I can't find what I need to know. I hope this isn't a too dumb question :x You won't necessarily be able to extrapolate from the memory size of individual types to the run-time memory usage of an application, if that's what you're getting at. The run-time memory characteristics will depend heavily on how you use the memory and when the garbage collection decides to run. Can you be more specific about the comparison you're trying to do -Tom Meschter Software Dev, Visual C# IDE I am representing a polygonal 2D structure (mapped onto a grid) into m ...Show All

  • One from why am i getting this error?!!

    I have an application which monitors a database table and it works fine for more than 48hours sometime but then I will get this error on my desktop.. See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject ...Show All

  • silkkeng A question of OO structure...

    Hello All, I'll do my best to explain what I'm trying to accomplish and look forward to any and all suggestions you have for the "proper" way to do this (realizing there is no 100% correct way, but some methods are more optimal than others). I apologize in advance for my n00bness. For this example, I'll use football (american) players. I want my Player class to have a List<Stat> collection of my Stat class. Each Stat, which is an indicator of how well a player plays a particular position, should have a base value but be able to return a "true" value which is a calculation of the base value plus a percentage of one or more other stats. For example: a Player's Halfback stat might be base value plus 50% of the Fullba ...Show All

92939495969798990123456789

©2008 Software Development Network

powered by phorum