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

Software Development Network >> Visual C#

Visual C#

New Question

writing into *csv file: inconsistent result
"OUT of Memory" String construtor
Chess in C#
Samba share security.
MessageBoxIcon.Hand not working as expected
Window blocked from opening after debugging
property or Indexer may not be passed as an out or Ref Param (Help Please)
using the Len Property ?? (Help Please)
Detecting service pack?
Best practice in multilingual applications (Resource Files)...

Top Answerers

Candela
Shirvo
SoccerDude
Alexey Rokhin
Pradeep Gupta
Rick Thomas
Blake81
Mike Turner - MSFT
iamme
Info-Minister
sitemap
Only Title

Answer Questions

  • Bill Reiss An example of a Messenger toast is the message that appears on a user's desktop when one of the user's contacts signs in.

    An example of a Messenger toast is the message that appears on a user's desktop when one of the user's contacts signs in. Another example of Messenger toasts is the messages displayed when a user receives an alert from the .NET Alerts service. The following are examples of typical toasts:     Could you please tell me how to catch the screens above If i clcik the "chage" in the screen and how to respond this event. Thanks in advance. Thanks, i will go ahead there for the info. I belive that i will find the answer there. hi, jacob. do you mean how to detect a toast pops up ...Show All

  • Aleniko29139 Application.Exit(); not working in the form constructor, why?

    Hello, I'm using Application.Exit(); in the form contructor to terminate the application if certain condition is met... but it's not working! Why and what can I do Thanks... really shouldnt be terminating the application in a constructor but in a different area/method if at all possible. Tried doing Environment.Exit(-1); doubt this would make any difference: Application.Exit(new CancelEventArgs(false)); does that work Perhaps there is something else preventing the application from exiting I don't know, I find that wierd. difference between the 2: Application.Exit() -> informs all message pumps that they must terminate then closing all application Windo ...Show All

  • amir_rad Returning an array

    I still need help understanding what is happening here: class ParamArrayWithReturn { public static void Main() { F(3, 2, 15); } public static int[][] F(int n, int m, int value) { int[][] x = new int[ n ][]; for (int i = 0; i < n; i++) { x[ i ] = new int[m]; for (int j = 0; j < m; j++) x[ i ][j] = value; } return x; } } I see that we are going to dimension array to 3 indexes. Then I see what happens after that is that we then create two internal array indexes inside those 3. I also see that in this case, we will end up having the value of 15 at each index. I believe it will look something like this: 15, 15 15,15 15, 15 Now why would we return x here And what happens to it when it returns to the method call I am confused by that part ...Show All

  • SCRunner writing into *csv file: inconsistent result

    string cur_drive = c2.const2 ( ); // this is just the current drive ("D:") string pathq = cur_drive + " \\VFP_Projects\\Data\\Stoxx\\ " + symbol + ".csv"; File.Delete ( pathq ); using ( StreamWriter sw = new StreamWriter ( pathq ) ) { sw.Write ( response ); sw.Close ( ); } response is a string variable that contains a whole *.csv file downloaded from Yahoo. The trouble is: I find the file (a) deleted, (b) created, and (c) the very first line filled in 100% of cases. The rest of the file appears EMPTY in about 50%. I have to look into the file and repeat the operation which is a great inconvenience. Is there a way to improve performance Why does it happen How can I get a feedback as to th ...Show All

  • Tonnie which is the best way to desgin a bussiness model, class or struct?

    i develop a B/S project which include below: WEB - web project - UI BLL - class library - Business Logic DAL - class libaray - Data Access Model - class library - Business Model when i design the business model, for example BookInfo, i am confused for create it with class BookInfo or struct BookInfo. who can give me a guide thx in adv Furthermore, the diff between class and struct are not only restricted in stack from heap. When you use class, you can inherit ,implement interface and also able to be abstract...on the other hand, you cant use ref this or out this in class while struct can...many diffs Here is a useful references about it: http://www.jaggersoft.com/pubs/StructsVsClasses.htm I'm pleased to do so. : ...Show All

  • New-Bee Subtracting Times with Date

    I thought this might have been a simple task...I need to subtract 4 hours from the current datetime that is input.  The datetime format is mm/dd/yyyy hh:mm and the hours are a 24 hour clock.  After it's input, I then take and parse this string into a strDate array and strTime array by doing args[0].split('/') and args[1].split(':').  After this is where I try to subtract the 4 hours, but there's a whole lot to account for as in if the hour is 1, you'd have to go to the previous day and if the day is the first day of the month, going back one day would take you back another month, etc.  Is there an easier way to do this   The month is really what's throwing me.  Thanks in advance for the help! ...Show All

  • Paarul simulating keystrokes

    After piecing together some code I gathered from several forum posts, etc I have the code below. What I was hoping it would do is when the form loads it would fill the textbox with the letter A simulating that the A key had been pressed. It doesn't cause any errors but nothing seems to happen. My ulimate goal is to be able to simulate key presses on other applications to help automate processes (like product imports into our company CRM). What am I doing wrong using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Runtime.InteropServices; namespace VKTest { /// <summary> /// Summary description for Form1. /// </summary> public ...Show All

  • Mr_Z Question about Windows Services ??

    I don't know if this question belongs here, its more of conceptual question. What is the use of Windows Services I have a business layer and a data layer which has to somehow run with that service and have a client application that will call that and do some functions. How can I accomplish this task Any examples or tutorials, highly appreciated. Thanks, Harsimrat Hi the real advantage here would be that your business logic is contained in one place... so, if your business logic would change you would only have to change the service, instead of all the clients Hi the value of a windows service is that it is an application that is running continuously, without the need ...Show All

  • shivali.sadavarte VS 2003 C# and M Access Database using together

    Hi,  maybe someone can help me to understand what advantages and disadvantages gives VS 2003 C# and M Access Database using together  Are these tools good 'partners'  Maybe someone knows where I can read about it. you could use Xml and store data from that and into a Dataset for example http://msdn2.microsoft.com/en-us/library/system.data.dataset.aspx well there is no advantage or disadvantage, you can work with MS Access/SQL Server or any other database packages. Do you have a specific question the only disadvantage of MS Access would be the fact that its not designed or built for commercial environments meaning large amounts of data calculations/retrievals/data working ...Show All

  • Linda Call Sending struct in C# to server written in C++

    Hi, everybody. I have written a C++ server for receiving data of the type, struct node , using TCP. struct node{ int id; int data[256]; }; Now I want to write a client-side code that sends a node structures to this server. However, this client program has to be written in C#. Is the memory arrangement of struct in C# and C++ the same Could I declare the same struct in the client C# program and using MemoryStream and IFormatter to serialize the struct and send to the C++ server Thanks. push. ...Show All

  • Eric Liprandi My enumerator is not returning the count??

    Hi, I have created a class using the KeyedCollection: public class RobotPartKeyedCollection<T> : System.Collections.ObjectModel.KeyedCollection<string, T>, System.Collections.Generic.IEnumerable<T> where T : RobotPart { private RobotPart partToSearch; internal RobotPartKeyedCollection() : base(null, 0) { } public RobotPartKeyedCollection(RobotPart robotPartToSearch) : base(null, 0) { partToSearch = robotPartToSearch; } protected override string GetKeyForItem(T item) { return item.Name; } internal void ChangeKey(T item, string newKey) { base.ChangeItemKey(item, newKey); } public new T this[string name] { get { ...Show All

  • Dave Matsumoto Custom Business Objects as Data Sources

    I've built a class library and it builds fine. I go into the Data Sources of my client windows application but it doesnt appear in the data sources object list even though I've referenced it. I've done a couple of tests with building dummy class libraries and I get this problem intermitantly. I'm new to C# and so I think it could be something I'm doing wrong. Can anyone point me in the right direction. Thanks for the fast reply. I'm glead the problem is solved, can you please give us your solution so other members can find this solution as well You need to add it to the data sources first, before it appears there. In visual studio, go to Data/Add New Data Source and follow the wizard... ...Show All

  • Tanmaya Database error reading Access database

    Ok, this is a new one on me and I cannot find any reference to it in the V.S. docs. I've used this code to connect to three other Access databases with complete success, I must've missed something this time but I'm not aware of what it is. I've stepped thru this code for the last hour and I can't find anything out of place. Can anyone please tell me what it is I may have missed While attempting to connect to my Access database, the below error occurs: IErrorInfo.GetDescription failed with E_FAIL(0x80004005) Stack trace: at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object&executeResult) (the rest of the message refers to the line the error occurred on which is shown below: ...Show All

  • Imrankhan how to use switch to judge range values

    How to use switch to judge range values like if(a>10&&a=15) ... if(a>15&&a<20) .... how to change if statement above to switch statement No problem I have a lot of number so I think use switch is simple Unlike VB, I don't think there's exist such way to do that in C# ( using switch ), is there any problem to use if .. else if.. else to accomplish that Hi You can also use Ternary operator to minimze your code like ((a>10) && (a > 5)) "True" : " False"; "True" means the stamente here will be executed when the condition is true other wise the staments in ...Show All

  • BobInIndy Copying a parent classes values into a child class

    Shape Text TextEffect Embossed The above is the inheritence tree, with shape being the daddio and embossed being the child. I want to create an embossed object which copies all the data stored in a different text object Embossed em = new Embossed(); em = (Embossed)textObj; but i get an InvalidCastException. I would have thought that this was possible as the embossed object would contain everything that was in the text object and more. Is there a way to do this without having to do it all manually ie em.name = text.name; em.position = text.position cheers em = (Embossed)textObj; This statement is used in the wrong way. You're trying to cast a TextObject to an Embossed object which is not possible bec ...Show All

565758596061626364656667686970717273

©2008 Software Development Network

powered by phorum