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

C# object navigator for events, a la VB.NET

Here's VB:http://i.imgur.com/CUWhHJS.pngWhich allows you to select the object's events. And then you get this:http://i.imgur.com/1FOk4iy.pngWith C#, all you have access to is what is already...

View Article


Hope to loop through text files in a folder, find 'LINE COUNT', and delete...

How can I loop through a bunch of text files in a FTP folder, opens each, finds 'LINE COUNT', and deletes this row?I definitely want to read the contents of the text file and delete the entire line...

View Article


How to update controls of startup form from another form?

Hi, I have a C# problem.I created startup form as following:Application.Run(new Form1());Then I added on form toolstripstatus label   and one MY user control. I am doing some manipulation within this...

View Article

Parent View Model populate Children View Model Collection using MEF

I have CountryViewModel which contains collection of RegionViewModel, which wrap Region Model as per next code: public class CountryViewModel { readonly ReadOnlyCollection<RegionViewModel>...

View Article

About writing outputs to documents...

I have a query about the user inputs and file outputs! I am trying to create generators for some projects of mine which include numbers, randomized variables, and brackets! How would I be able to...

View Article


Pong problem

Hello  I would like to fix upcomming problems with my application pong.There you can download it.http://uloz.to/x7U57YPv/pong-rarThere is a problem if you move paddle 1,2 down or up it will run out of...

View Article

Convert GIF to Image Strip?

For the past 12 hours or so I have been trying to get image conversion to work with GIF images. For some reason I can't quite figure out how to convert a image strip to a GIF image. I've got GIF to...

View Article

Compare (string) content from 2 datasets -- a dataTable and an array -- do I...

Lets' say I pull data from a sql server table into a local data tablefld1   fld2   fld3  a1    a2     a3  b1    b2     b3  c1    c2     c3Here is the data content from my array  a1    a2     a3  b1...

View Article


How are Performance Counters meant to be used?

I was recently introduced to creating performance counters in C#. It seems very enticing, but upon exploring the classes available to me, I realized that I don't understand what I am doing.I have been...

View Article


Attempted to read or write protected memory. This is often an indication that...

hi developers, i have the next problem, i'm migrating an application from vb6 to c# .net, the situation is that i have a form and when i try to move from this form to another window with ctrl-tab...

View Article

Game Launcher + File Sync

Hello, I am making a game launcher, currently it will launch the game. But I hit a rock....I need help, links, Tutorials, demo type help. This launcher will have to download game files that are being...

View Article

ASP Login and Logout Help for Ultra-Beginner (C#)

Hello everyone! Okay, I have no idea how to do this :) **Question 1:** Login page - I want a popup to occur that says to re-enter credentials if the user puts in the wrong info. **Question 2:** Logout...

View Article

two grid two bindingsource

Hi every bodyi have two grid as master details. for example dgCar and dgCompany they are related as below:bsCompany = new BindingSource(EntityCollection.CompanyEntity, ""); bsCar = new...

View Article


dynamically call C# functions when Hyperlink from code behind is clicked

Hi I have a requirement to create or open a form if it exist in the database. I tried using below code but the form creates and assign on load time itself. I want to call "CallCreateorOpenForm" when...

View Article

I cannot get files to open my application unless they are in the same folder

I am trying to open up my application with a file (I know how to associate a file to the app!) but for some reason the file has to be in the same folder as the exe file! I know that I have made this...

View Article


What do I need to make this class to be able to Send Updates back to SQL Server?

Hi everybody,We have the following class: public class DataTableHelper { public Int32 RecordCount { get { if (null == table) return 0; else return table.Rows.Count; } //private set { } - no need for...

View Article

inserting double number into data table

i use this query to insert data cmd = new OleDbCommand("insert into avoir_note values ('" + comboBoxA.Text + "','" + comboBoxCM.Text + "','" + comboBoxCE.Text + "','" + textBoxMat.Text + "'," +...

View Article


'.' hexadecimal value 0x00, is an invalid character. Line 1, position 1.

Hi I recently installed Visual Studio 2012And I'm trying to do an assignment using MVC however when I create the project as soon as it is created I get the error message:'.', hexadecimal value 0x00, is...

View Article

Click Form does not call C# functions

I have a CS file requirement where I have web service and sql server database data which is returning correct url in the C# function CallNeworOpenFormURL();   However the href does not call C# function...

View Article

Regarding Control+C handling in C# Program.

I am creating a tool which is doing some stuff and I want if a user press ctrl + C in the middle of an execution, tool should detect this, cancel the further execution and come out gracefully. Can you...

View Article
Browsing all 31927 articles
Browse latest View live


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