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

Software Development Network >> Visual C#

Visual C#

New Question

simple console question
issue converting generics list to array and back
Directory.GetFiles does not return files that have non-English names
Problem with trendline in c# .net for exporting to a chart in excel
error message: An object reference is required for the nonstatic field ....
Custom app crashes with 0x800736b1
How to handle control + click event?
Closing a C# App
I need a textbox to recall the last entry before it closed last.
Issue with ConsoleTraceListener and Web projects

Top Answerers

lympanda
Guy Ronen
Soe
cdun2
GMS0012
heartly4u
Weston Hutchins - MSFT
i3baid
TheJet
davros51
Data Research Group
Only Title

Answer Questions

  • dev75040 URL Verification

    Pretty simple solution I would think, I just can't seem to find a way to get it done. I'm trying to find a way to verify/validate a URL address. Just the syntax is all I need to validate, not whether the site is real or not. I know it can be done through regular expressions but I've been told to use that only if another way can't be found. I've also been told that there should be a way to do it through the URI class. So far I can find a way to setup a WebRequest/WebResponse to make sure the the site exists but nothing to just check the syntax. Anybody know if there is a way to do this through something built in to .net Also, we are doing all of this in a class library so nothing we are checking is related to a GUI interface otherwise I wo ...Show All

  • Michael Barrett events.

    hi all I have a method like following.. public void something() { string label1 = "myname"; string label2 = "myplace"; I have a checkbox p in here. p.CheckedChanged + = new EventHandler(pBox_Changed); } public void pBox_Changed(Object sender, System.EventArgs e) { I want to access the values of label1 and label 2 HERE. } As I said above I want to access the values of label1 and label two inside the event.. Could you pass these to the eventhandler Thank you in advance, cheers, prasad.. No, the event args are passed by the code firing the event, which exists in the CheckBox class. Your best bet is to move the declarations of label1 and label2 out of the something method and make th ...Show All

  • boothwine Method Overloading

    I am new to .Net and am learning as I go. The .Net framework guidelines (and a few articles) encourage the usage of method overloading and ParamArrays. What is the motivation for this  I have found that overloading makes it difficult to provide new functionality in systems... for example, lets say some interface has a single method that takes an integer arument interface ISomeInterface { void Foo(int bar); } Some time later we need to add an additional parameter, a string... interface ISomeInterface { void Foo(int bar); void Foo(int bar,string ooh); } Using ParamArrays seems ambiguous to me. What is it about using structs/objects that is discouraged   ...Show All

  • NeilL Create a new object through the property grid

    My apologies if I didn't label this subject appropriately. I couldn't think of anything better to put as the title. I don't know if this is even possible, but I figured this forum would be the best place to find out:) I have a property: [ BrowsableAttribute ( true ), ReadOnly ( false ), TypeConverter ( typeof (System.ComponentModel. ExpandableObjectConverter )), Category ( "Inherited Physical Values" )] public Shapes. Shape Shape { get { return _shape; } set { _shape = value ; } } The Shape property is from a parent class, "Physical" and is inherited in many child classes. The Shape class is obviously an abstract class which has m ...Show All

  • Karrar Why? WSE910: An error happened during the processing of a response message.

    Hi, I am using Saml token for web service authentication. I have a problem it runs fine when server and client is my own machine but it i get error when server and client are seprate machines. --------------------------- --------------------------- Microsoft.Web.Services3.ResponseProcessingException: WSE910: An error happened during the processing of a response message, and you can find the error in the inner exception. You can also find the response message in the Response property. ---> System.InvalidOperationException: Security requirements are not satisfied because the security header is not present in the incoming message. at Microsoft.Web.Services3.Security.SecureConversationClientReceiveSecurityFilter.ValidateMessageSec ...Show All

  • Alexey Rokhin How to use the controls from another form in form I working in.

    I have problem, I was using the Visal Basic, and now have to migrate to the C#. Its not a problem. But in first steps with C# I have found a few diferences from VB. One I cant solve. For example in Form1 I have a TextBox1 and a Button1. I enter in TextBox1 "sviec", and click the Button1. Then opens the Form2 with Label1 on it and label says "sviec". In VB the Form2 code looks like this: Public Class Form2 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Me .Label1.Text = Form1.TextBox1.Text End Sub End Class So how I can translate this Me .Label1.Text = Form1.TextBox1.Text from VB to C# Thank You! ...Show All

  • VikasAgr keyfile instead of AssemblyKeyFile

    Help. I have the following in my AssemblyInfo.cs file: [assembly: AssemblyKeyFile("mypubprivkey.snk")] Every time I Run a Code Analysis -- Build/Run Code Analysis on my project it produces a warning: Warning 1 Use command line option '/keyfile' or appropriate project settings instead of 'AssemblyKeyFile' How do I resolve this warning I've tried several examples that I found online but get the same error or different errors. Any ideas Thanks. that's fine; any ideas why the error occurs I did just that and still get the error. This warning is not a Code Analysis warning, it is issue by the compiler s ...Show All

  • Walter Luszczyk Why do we need Interfaces?

    Hi, I am not able to understand the significance of the interfaces. Interfaces exposes some behavior through methods, but classes can also expose its behavior through public methods directly, then why do we want to use the interfaces is it just for an assurence that all the methods in the interfaces are inplemented in the class Is there any other reason like performance I guess interface object will/can not be created at runtime, is it correct if so then how does the communication happen at runtime any thoughts/links to understand "what an interface is ". Thanks and Regards, Benin. Thank you. Now I could think of the uses of Interface somewhat. I got one more doubt, How does it differ from an Ab ...Show All

  • install Intellisense Failure In VS.NET 2005 TS

    This is the third time this has happened this year and usually a full re-install is required to get it functioning again. This particular time this will not even work. Intellisense has completely stopped working in ALL project types (C#) inside of Visual Studio. All of the previous methods of fixing it have not worked. Here is what has been tried already: Deleted all of the obj and bin directories and recompiled the solution. Cleared out the VSWebCache directory in Documents and Settings\%Username%\ Cleared out the Temporary ASP.Net Directory under the Windows\Microsoft.Net\%Version Number%\ folder There are no syntax errors listed in the solution and it compiles with no errors and no warnings. Unfortunately this occu ...Show All

  • Nilesh Meshram VS ComboBox missing display

    I while back I wrote a C# program using (among other things) a downdown combobox with items loaded using the .Items.AddRange() function. All works fine on my computer, but on other computers (without the VS Developer software installed), the dropdown box comes up blank. One can still select the different items through the mouse scrollwheel, so I know the data is being loaded, but the dropdown window is blank. Some of our computers have both .NET Ver 1.1 and 2.0 installed, others don't (mine specifically doesn't). The program was developed with VS .NET 2003 software. All the computers are running XP Pro, similiarily configured (though mine's the only one with the VS software), and all have the latest OS updates (I just checked). Any i ...Show All

  • cpaesano [C#]conversion from time to double

    Hi all :) I would like to know how can i solve this little problem: i've a string like: "32.30" i need to convert in: "32.50" I mean that i need to convert the time rapresentation from 60" in 100". Thanks at all in advance. RaouL. I'm a bit lost. The output for 208:30:00 should be 208:50:00, or just the seconds need to be changed The input is using ':' or '.'. This code should give you an idea of the solution. string input = "208:30:30" ; string [] parts = input.Split( ':' ); string hours = parts[0]; string mins = parts[1]; int secs = int .Parse(parts[2]); int newSecs = secs * 100 / 60 ; string result ...Show All

  • pkazaria Process the messages for ALL the applications

    In C# The WndPro method proccess all Windows messages for MY Application, but How can I make a method to process the messages for ALL the applications Thanks Thanks for your answers. I'm just looking for a way to change the cursor when it is over other application (i.e. windows calculator). I don't believe that C# can't do something that is possible in C/C++. You can't with C# alone. You need a dll for a global hook(s). There are a couple of examples on codeproject. Won't be a walk in the park tho. The most reliable third party control I've seen for that undertaking is Desaware SpyWorks. It's not a limitation of C#, it's a limitation of .N ...Show All

  • BarrySumpter Simple Form writting to a csv file.

    Ok to all of you windows CSharp Gurus...... I have a simple form that I want to write to a csv file in a hand held scanner device. In the on Submit I am not sure what to write in order to create the CSV for the given data that is in the form. any help will be of great assistance. Thanks in advance. -------------------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using PsionTeklogix.Barcode; using PsionTeklogix.Barcode.ScannerServices; ...Show All

  • Alexei_shk Difference in two ways of registering an event handler

    Hi, Does anybody knows the difference (if any) of the next two ways of registering an event handler button.buttonClick += new EventHandler(button_click); and button.buttonClick += button_click; Is the new EventHandler added at compiler time to the second way Thanks in advance, Pedro this  a new feature in c# 2  called delegate inference the compiler can  infer the type of delegate when adding or removing a target method "Delegate inference allows you to make a direct assignment of a method name to a delegate variable, without wrapping it first with a delegate object." http://msdn.microsoft.com/msdnmag/issues/04/05/C20/ ...Show All

  • KvRaji How to sort rows in DataTable

    Hello! I have a DataGridView which is binded to DataTable. For database I simply use XML file. This xml file is updated (via DataTable) according to changed which are made on DataGridView. Application also works in other way - data is loaded from xml file into DataTable and populates the DataGridView. My problem is that I would like to sort data (rows) in my own way. I saw DataGridView has a Sort() function. But it is binded to DataTable so sorting rows in DataGridView is not possible. Then I tried to sort rows in DataTable but it has no sorting function... Sorting data in XML file would be to complicated... Does anybody knows the way of sorting rows (for example in DataTable) or any other way Thanks for any idea, Ziga ...Show All

373839404142434445464748495051525354

©2008 Software Development Network

powered by phorum