Quantcast
Channel: Visual C# forum
Browsing all 31927 articles
Browse latest View live

Delete a node in Binary Tree failed

I am going to delete a node from a Binary Tree but it failed. The program seems to be fine, however when I traversal the tree, the deleted node is still there. Why? BinaryTreeNode...

View Article


MVC4: Currency Validation

Hi,I'm developing an application with asp.net c# (pattern MVC4). I set the culture "it-IT". I haven't problems when I display the price value .... It appears in right format "€ 1.500,00" ... with...

View Article


How do you make a message box that will input and then process and output?

I've tried to find it but my codes don't seem to work. Does anybody have an IPO example using an input message box?Input: Enter a number.Processing: Number*2Output: Message Box to display the number.

View Article

Passing object by ref to COM not working

Guys,Newbee just getting into C# needs to help:I'm trying to call a dll functions which looks like this:public double[,] Correl(string action, ref object returns, double observation_frequency);Issue is...

View Article

How do i make zoom in/out for a drawn rectangle over a pictureBox1 ?

The idea is that im drawing a rectangle over the pictureBox1 and then when i move the mouse wheel up/down it will resize like zoom in/out the area of the image in the pictureBox1 that i drawed the...

View Article


Questions about the Random Class

So I'm wondering about the Random class and why Microsoft decided to create it the way they did. When looking at it, my initial thought was that each method called from the instance created a new seed...

View Article

Why my Searcher App crash and how to handle it ?

I wrote a File-Searcher Windows Application (with .NET 4.5) and use Async technique to search faster without locking the GUI.It tracks it's directory to find files with the given name and extension.I...

View Article

Can't add MS Access databases datasource with queries.

HiI'm using the wizard to add the datasource from MS Access 2010.  I see the checkbox option for "Tables" and "Views".  However, when I select the "Views" it doesn't add them to the dataset. When I go...

View Article


How to maintain height of panel on webpage in case of dynamic controls...

I am using a panel on the web form to hold some more hidden panels onto it. But when I am making those hidden panel visible panel size remains same and footer goes down and page looks ugly then.How to...

View Article


Code Genarator ?

HelloWhich code generator is best ?Can you give me advice ?I researched lightswitch. It's presentatioun layer is silverlight. Can we put buttons and code at lightswithc too ? For example put a buttun...

View Article

'System.Drawing.Font' does not contain a constructor that takes 1 arguments

Hi,I have this private void cboFonts_SelectedIndexChanged(object sender, EventArgs e) { string fName = cboFonts.SelectedItem.ToString(); try { lblChar.Font = new Font(fName); } catch { lblChar.Font =...

View Article

WPF DataGrid C# - Check if certain column has a value even if it has rows -...

Hi,I have a DataGrid on a WPF window.The window code contains a method that calculates the total value of a column.The only problem is if the DataGrid has rows but one or more of the cells in that...

View Article

Image may be NSFW.
Clik here to view.

Control Parent Class Properties From Derived Class

Hi,I have BaseClass with some properties, that take values after creating its object inForm2 class(Windows Form).BaseClass baseClass = new BaseClass(button1, button2, button3, button4, SongName,...

View Article


DirectXException with no name. What's causing it?

Alright. Long story short, I am building a media player that uses the Microsoft.DirectX.AudioVideoPlayback.Audio class.The problem is on the line with the call to Audio.Open(), it throws a...

View Article

Buying Visual Studio 2008 Professional

Hi, now when I have learned a lot, I am ready to go "live" and start selling some apps, created with VS.But I decided to stay with VS 2008 edition, which already includes Crystal Reports (which I...

View Article


Enable Device as Admin in Android (coding in c# using Xamarin)

i have an android app that i write in c# by downloading xamarin tools (i love c# and i wanna code using this instead of writing it in java..hehe.). this app uses one thread only and needs to lock the...

View Article

Type 'System.String' is not supported for deserialization of an array.

Hi i have a problem retrieving the json out it gives me Type 'System.String' is not supported for deserialization of an array. below is my code and json public void getDetailFlight() { try { var...

View Article


Passing non-primitive or "Composite" type in wcf service reference method.

I'm having issues passing POCO as input parameter in a WCF service. To simplify, i've tested this with the "out of the box" item generated code and have the same issue.When you create a wcf service the...

View Article

Image may be NSFW.
Clik here to view.

Opening a WebBrowser with an IRC Command

Hi All,i have a problem! I'm trying to make a Simple IRC Bot and i'm going to write different commands! One of these is the command to open a webbrowser and so a site! But wheni Try to inizialize the...

View Article

Error: A reference to Microsoft.VisualStudio.TestTools.UITesting already...

I was getting this error, which some blogs go into great depth on and which another user from the linkA reference to the component 'System' already exists in the ... had the same issue and it looks...

View Article
Browsing all 31927 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>