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

Get Extensions Help !!

/* exten save all extensions (40) but for example in 4 array have same extensions , anyone have idea how todisplay all different extensions , without foreach and something else THANKS */ static void...

View Article


How do I set an icon for my new exe file I made?

Ok so I made a file and I used a new icon. It will display on the Top left corner and the Taskbar (if opened) but it won't display it by default. I made this program and if people download my file,...

View Article


raw hand' Puzzles about call C++ dll from C#

  A function of my dll has a  PVOID parameter , and it is seen that when using dllimport , the PVOID must set to IntPtr, and We can use the Marshal class do the convertion . But ,  I want to use the...

View Article

Link to Image Resource by Path?

Hello everyon I am in my program trying to load an image in picturebox from Path.I know I am can do it like thismyPictureBox.Image = MyProgram.Properties.Resources.MyImage;But I am trying to do like...

View Article

Image may be NSFW.
Clik here to view.

Error using streamwriter with saveDialog

I am getting an erro that I am unable to resolve.  Check out the debug screen shot below:Other automatically suggested solutions by this forum to not quite hit the mark and don't offer any real...

View Article


Simple Chat(Server&Chat) doesn't want to work((

Hi there!With "Youtube"-s help I wrote a console chat app, but when I run it in VS, the chat doesn't work(((Here is the code:Client :using System; using System.Collections.Generic; using System.Linq;...

View Article

Multiple Fonts in a single Label/TextBox Control

Is it possible to set 2 or more fonts for a single Label or TextBox control?Suppose I have a string: "Times New roman, Verdana, Lucida Handwriting" like this. This string contains different types of...

View Article

Coin Loss

Write a program that simulates a coin toss. Generate a random number between 0 and 1. If that value is less than .5, make it heads. Otherwise, output tails. please help I don't how to write the code

View Article


my SQL database is not updating, even after successfully saved but database...

i CAN retrieve data its mean conection is ok, i think following  method have problem public static void ExcuteNonQuery(String ConectionString, String Query)        {            SqlConnection...

View Article


How do i make in paint event pixels i draw to blink ?

In my paint event im doing:foreach (PointF pt in clouds) { e.FillEllipse(Brushes.Yellow, pt.X * (float)currentFactor, pt.Y * (float)currentFactor, 2f, 2f); }And its just painting/cloring the pixels in...

View Article

How do i add Point coordinate as item to listView1?

This is the code:for (int i = 0; i < CloudEnteringAlert.PointsInt.Count; i++) { listView1.Items.Add(CloudEnteringAlert.PointsInt[i]); }PointsInt is a List For example in index 0 i see: {X = 120 , Y...

View Article

Does Entity Framework 4.0 support role base security?

We have a number of applications we are attempting to convert from Oracle Forms to C# and we are using the ODT.NET and ODP.NET so we can make use of Entity Framework 4 (even though we are leaving...

View Article

Event Breaks

I converted VB program to C#.  Both use a dll that raises an event.  C# works but for only a few hundred events before it breaks.  The VB program is stable. Any common reasons why?  I know this may not...

View Article


Wrapper Class

I'm a novice (so please be gentle with me!).I've come across a wrapper class for using huge integers (multi-millions of digits).The class is from Emil Stefanov. Apparently there is a pretty standard...

View Article

how to make dynimc validitionin wpf gridview?

Hey, i have gridview in wpf with number of entity tables that can be his source and it chinge by code. I would like to make validtion that well be dynamic as can to the current view  columns and...

View Article


Combobox selectedvalue issue with event firing

Hello,I have a combobox that I populate with data from a database.  For this issue there are only 2 items in my drop down.I populate the dropdown and then I want to set the selected value to a value...

View Article

the read() method doesn,t work with multiple tables in sql datareader

hi guysI'm trying to access 2 tables from sql in c# when I tried thisstring mycommand = " select * from mytable1";sqlcommand com = new sqlcommand();com.comandtext = mycommand;sqldatareader reader =...

View Article


Controlling max occurs of sequence element in wsdl

I have a schema with Sequence element whose max occurs value is defined as 30 . But when i generate the WSDL , it shows the max occurs property for the element shows as unbounded. When i referred...

View Article

Can not install Microsoft® SQL Server® 2012 Express on Win7, 64 bit, used on...

I had a Win7 Ultimate 64bit, Intel(R) Core(TM) 2 Duo, 4GB SDRAM, 500GB HDD. I have been used  Visual studio 2010, SQL Server 2008 R2 (SQL Management Studio), SQL Server Express2005, SQL Server...

View Article

How to stop ManagementEventWatcher?

Hi All,I have made an windows application, It fire the Event Arrived event of ManagementEventWatch. I have started the Watcher,But when user closed the application or form, then i want to stop the...

View Article
Browsing all 31927 articles
Browse latest View live


Latest Images

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