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

Software Development Network >> Visual C#

Visual C#

New Question

Cannot implicitly convert 'type' to 'type' error
NetworkStream doesn't support seeking
Cross-working between two or more Forms
How easy is this in C#?
How do I code for this?
Which coding convention do you use?
help with treeview
visual C# or atleast C# on linux.
Exclamation Icon cursor in IDE
Getting Initial DLL reference

Top Answerers

*.asm
andrewdobson1
ultek
Fata1Attack
A.F.B
Misbah Ahmad
Timski72
Jedlicka
NeederOfVBHelp
Wolfgang12345
Serokurov, Sergey
Only Title

Answer Questions

  • GraemeE How Do I Show User Accounts on the Computer in a Combo Box?

    I need help detecting User Accounts on the Computer that the program is being run on and showing them in a ComboBox. Anybody have any ideas I'll see what I can dig up and get back I asume you are talking about windows user accounts... try this: using System.Security.Principal; string a; a = System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString(); MessageBox.Show(a.ToString()); Change GetCurrent and apply it on a ComboBox with a loop sorry its taking this long, I was actually thinking about this on how to respond a couple of minutes ago. I'm still on the case! Ok thank you. Yeah thats what we're talking about, I'm waiting for him to answer back to me... If you read all of the posts you'll se ...Show All

  • Jean LeFrancais switch constructs

    I am working with Switches and I just am wondering: Suppose a switch construct has 4 cases and the default. Also suppose the 2nd case is true. If the switch construct does not have a break statement which of the following is true Hi, C# switch doesn't support code fall-through, except when the case is empty. So you need to place breaks in your case if the case contains a code. Example: switch(myBool) { case 1: x = 100; case 2: x = 200; break; } The statement above is not permitted. switch(myBool) { case 1: case 2: x = 200; break; } The statement above is permitted and would cause a fall-through. cheers, Paul June A. Domag If it didn't have a break, then it woul ...Show All

  • reshadi library source code

    Is there a possibility to read the source code of the .net class library I'd need to know how a certain method of the webBrowser control works because I want to replace it. You can use things like ildasm and Reflector . Wow, thanks alot! That Reflector thingy is really great! ...Show All

  • Danny C. McNaught Update DataGridView?

    I have following code for the form closing event: private void CurrenciesList_FormClosing( object sender, FormClosingEventArgs e) { dataGridView1.EndEdit(); if (dsCurrencies1.HasChanges()) { DsCurrencies chngs = ( DsCurrencies )dsCurrencies1.GetChanges(); sqlDataAdapter1.Update(chngs); } } Now, problem is the current cell: when I close the form changes on the current cell are not updated if I do not leave the current row. If I close form while I am still in the row all changes to this row are not accepted. It is like this that method EndEdit does not saves the curent row. How can I save current row in the DataGridView Yes! ...Show All

  • tawm Visual C# 2003 + Framework 2 SDK?

    Hi - I hope this is the appropriate forum to post this to... I'm writing an app that is to target framework 2.0. I have an older copy of C# 2003 Standard, and after installing the framework 2 sdk I tried switching the target runtime, but it only lets me change it from 1.0 to 1.1. I have two questions. 1) Is there any way to target framework 2 using the 2003 IDE 2) I have not seen C# 2005 being sold as a standalone product, will I need to purchase the entire Visual Studio in order to only get C# Thanks for your help, Joshua   jhansen wrote: Hi - I hope this is the appropriate forum to post this to... I'm writing an app that is to target framework 2.0. I have an older cop ...Show All

  • niallhannon New Project Wizard

    Hi all I’m very new to C# and I have to make a new project form(dialog) where I create some directories and set some paths variables. Later on it should be possible to add the functionality of specifying project type and go through some kind of wizard for the selected project type. My question is - do any have some links to some good tutorials/articles doing this - I guess there must me some component which offers this kind functionality, well I hope. Have tried searching but I get various wizards for doing something else. Thanks in advance, chris Examples are some of the best way to learn... Check out the 101 Samples for Visual Studio 2005 which is a robust, initial development tasks t ...Show All

  • Anthony Bellissimo Security threat while adding project item from Item template

    Hi, I am adding new file as a project item to my existing VSTA project from a Item template. But there are two issues that are hammering on my app. First one: The file opens in designer mode since the class has been derived from a FORM class partially but there is no actual form there. Is theere any way i can open that in code editor for first time itself when it is added. I tried setting OPEN propert of the peroject item. bbut it does not work for first time. Second Issue. When I am adding the file using file template using ADDFROMTEMLATE , there is warning that the following template is trying to open a file that may pose security threat. Do you trust this template. So I need to click Trust to make it open. Is there any ...Show All

  • Ashish.Net For Statement Help please

    I'm translating a project from VB6 to C#.NET 2.0 and having a bit of trouble with this For statement for some odd reason... Error 1 Operator '<=' cannot be applied to operands of type 'int' and 'string' for (i = 0; i <=ClientList.Text; i++) tlistView1.Items.Equals(0); // This is the VB6 Code Below: For i = 0 To ClientList.Text ListView1.ListItems(i).SmallIcon = 2 Hi, agree with Brendan except that for converting string to int you should use parse static method like this: try{ Int32.Parse( ClientList.Text ); } catch(Exception e){ //cannot convert . . . } cheers There actually no difference between Convert.ToInt32(string) and I ...Show All

  • VernonRhoda Logging to windows.

    Hello This is my first thread on this forum. And I want to say Hi to everybody J And I have question. When I’m logging to windows(XP,2k3) I must enter user name and password. When i do this i click OK. When password or username is wrong, I get message that something is wrong. My question is: How to hook to this button I want to get my messages(not from windows). And when username and password is good but additional condition isn’t fulfilled i want other message and to not allowed user to log on. Application whose check additional conditions and give my messages probably must run like service to do this, but I cant find any info about hooking OK button. Is there some API to do this Can You give me some l ...Show All

  • Art Walker Reversing Rows of an Image in a Byte Array

    My core dilemma is to read each line of an image and then flip those rows bottom to top while keeping the columns of the image the same. I know that Array.Reverse() is close to what I need, but it messes up the columns. The reason why I need to do this, is because .bmp images are apparently "bottom up" and my other functions don't understand that the image data is "bottom up", so I need to find a way to account for this "bottom up" structure. The only general advice that I received was there should be 2 for loops and for each column (0 to width) do (row * linedelta + column) and swap that with (height - current row -1). But I'm still confused on how to write the code. My Code: int Line; long LineDelta ...Show All

  • mta37 How to decrypt encrypted information

    Hello, I need the ability to encrypt and decrypt information. I have a database with customer demographic information (First name, Last name, Address etc) that we want to encrypt. We need to be able to later decrypt this information if a CSR or, Tech Support agent pulls the customers account records. How can this be accomplished Thanks, Quilnux Thank you, I will review the information tomorrow when the project is reopened again. Thanks for your assistance. Quilnux This how-to is for .NET 1.1, but it should get you started... http://msdn2.microsoft.com/en-us/library/aa302405.aspx ...Show All

  • ManjuVijay Can anyone convert a code from VB6 to C# and VB.NET?

    Hi guys! i'm flash.tato a young developer. I have a problem to convert this code from VB6 to C# and VB.NET. Can anyone convert this code from VB6 to C# and VB.NET rivate Sub cmdBIN2GIF_Click() Dim sInput  As String Dim iIndex  As Integer Dim lPos    As Long Dim lLen    As Long Dim Fine    As Boolean Dim sDestinazione   As String         On Local Error Resume Next         If cdlBrowse.FileName <> "" Then         Label2.Caption = "Estrazione GIF in corso..."                 Open cdlBrows ...Show All

  • CraigCody 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

  • John Turnbull Running native code on C#

    Hello, I know the basic things how to run native code dll's with C#, bus I have harder case. The function which is in native dll requires such parameters as structures and void * pointers. I have tried to use managed structures and objects as pointers, but nothig have worked. So how I can pass structures and void* pointers to unmanaged native functions Thanks in advance. Best regards, alpha Hello, Thanks for answer. I will try to use this and see how it works. Best regards, alpha Hello, It hasn't worked. I think it is becouse VARIANT type is not the same size as OBJECT. The unmanaged function uses VARIANT type's fields and it uses like a structu ...Show All

  • karen_tgha Why can't an interface method be internal?

    When I try to make a method in an interface internal I get a compile error.  Why is this   Thanks in advance, Per Rasmussen. I realize that I have the possibility to make the entire interface internal. But that does not change the fact that I cannot make the method internal. Consider this example: internal interface ImyInterface { void f1(); } class MyClass : ImyInterface { public void f1(); } In this example it is impossible for me to declare the function f1 internal (because this will result in my class not implementing the interface). Is it in any way possible for me to make the function internal If not, why not A inte ...Show All

454647484950515253545556575859606162

©2008 Software Development Network

powered by phorum