274 questions
0
votes
0
answers
10
views
How to convert a sender object to a ListItens object?
In my code convertion of VB.NET to C#, is error in convertion...
"Cannot implicitly convert type 'object' to 'demoComp.ListControlItem'. An explicit conversion exists (are you missing a cast?)&...
-1
votes
3
answers
570
views
The system cannot find the path specified error Vs Code-Unity C#
My CodeHi I am working with Unity and Vs code and I tried to debug my code and I got "The system cannot find the path specified." error. My path is "c:\Users\UMUT\Desktop\Projects\...
0
votes
0
answers
39
views
Cannot add together different variables, even though values have changed
So I'm REALLY new to coding, so I'm learning as I go. I'm doing an assignment for a course, where I have to create a party booking program for a company. The idea is simple, just selected some ...
0
votes
1
answer
1k
views
How to get row from CellClick event?
I need to get access to all the values in a DataGridViewRow, once the user clicks on a cell of that row. I would like to do that from the CellClick event for the DataGridView
0
votes
1
answer
280
views
Programmatically edit a large word document using C#
I am trying to copy paste certain fields from one large word doc file into another programmatically.
The file to copy from was converted to word from a pdf image file. It has the following format:
...
0
votes
1
answer
26
views
How to pack code and folder become a installer
I creating an windows forms application to configure IIS website application and also copy folder to selected location by user using visual c# 2010 express.
I want to pack the folder and application ...
1
vote
0
answers
150
views
C# 2010 Child form not showing inside MDI
I'm trying to open child form inside MDI Form it's not working in visual studio 2010. I've written following code.
private void dashboardToolStripMenuItem_Click(object sender, EventArgs e){
...
4
votes
2
answers
75
views
Accessing certain instance of a Winform control
In this program im writing I use a function to create multiple instances of a PictureBox. This is the code:
public void serverCard()
{
//Definitions
PictureBox cardBack = new PictureBox();
...
0
votes
1
answer
64
views
Not sure why I'm getting "An object reference is required for the non-static field"
My code is below. Any help would be appreciated. I apologize in advance if it's a simple mistake - I'm still a beginner at C# (and object oriented in general).
public class Game1 : Microsoft.Xna....
1
vote
0
answers
275
views
Winform Dynamic Alignment
I'm attempting to dynamically add a series of controls to a form, but the primary problem is that they are completely misaligned. I've tried updated the control information and fixed minor problems ...
0
votes
1
answer
129
views
Hey has invalid arguments
I am doing some homework and I got stuck, almost everything seems to be working right except 2 lines at the end, I have switched stuff around a bunch and i just cant seem to get it right.
The ...
-1
votes
3
answers
268
views
validation: '@' cannot be more than one character
I can't get the logic of this problem from my mind. Will you help me, pls?
I make a manual email validation for practice. So, in email validation there's a validation that states: "@ is cannot be ...
-1
votes
2
answers
51
views
I'm having issues makin a simple input and output program
Okay So I work visual c# when i want to put this line
enter code here
static void Main(string[] args)
{
Console.ReadLine a, b, c, max;
}
}
}
but it says this error ...
0
votes
0
answers
31
views
Receiving the error: "Cross-thread operation not valid: Control 'ddlReportType' accessed from a thread other than the thread it was created on" [duplicate]
Not entirely sure what this error means. In the code below, I am using a FileSystemWatcher to wait for a file with a ".gz" extension to appear in the directory, to which will then perform the "...
1
vote
1
answer
3k
views
Waiting for a file to exist in a directory C#
I am creating a Visual C# application and part of its functionality is to extract a .gz file once it appears in a directory. The .gz file appears in the specified directory once a command line ...
0
votes
2
answers
3k
views
Unable to read decimal numbers from XML [duplicate]
I have a problem, when I try to read XML file, which has decimal values, like 24.5478785 - it gives back error:
There is error in XML document
Can someone please advise, why is this happening? ...
0
votes
0
answers
146
views
Error adding xmlns atribute to a starter tag in a XML using C#
Good afternoon. I have issues adding a especific atributes to 2 starter tags in a xml using c#. The 2 tags should look like this:
<EnvioDTE xmlns="http://www.sii.cl/SiiDte"
xmlns:xsi="...
0
votes
4
answers
1k
views
C# Increment for loop every time button is pressed
I googled a few things before posting, but I couldn't find anything like this. Basically, I want to take text from a textbox, save as a variable (say history1) to then be able to call that in the ...
0
votes
0
answers
819
views
Missing d3dx9_43.dll file
I am making a game in Visual Studio and when I try to run it I get this error:
Unable to load DLL 'd3dx9_43.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
I have ...
0
votes
1
answer
5k
views
Connecto to SQL Server with c# and JDBC
I have this program in java to connect to a SQL Server
server = "ZF-SQL-MTRAZDB.NIS.LOCAL"
dbName = "MRAZ"
nameBaseDatos = "CD_LO"
table = "dbo.CD_LO_DATA"
user = "user"
password = "Pass"
url = "jdbc:...
12
votes
7
answers
54k
views
Can't run program because it asks me to attach on process
I'm new to C# Programming, and instead of just letting me run the code by pressing F5, "Attach..." appears where the Run button should be and it won't let me run the code.
This has happened me twice ...
0
votes
1
answer
48
views
How to execute batch file from visual c# application
This might be a very specific question, but how do I execute a batch file in a sub folder above the c# application; I am trying to reference the batch file using a button:
private void ...
0
votes
1
answer
283
views
Which Control to use in an Invoice System
I need help regarding my project:
I am trying to make a Billing system like this
https://www.youtube.com/watch?v=cKDvSnL1nFE
but a windows desktop application.
the idea is: when the user enters ...
1
vote
1
answer
79
views
Spec explorer state numbering
i am new to visual studio spec explorer, need some help regarding the link image (http://i.msdn.microsoft.com/dynimg/IC432170.gif) Can anyone explain to me how are the different states being numbered? ...
1
vote
2
answers
82
views
XNA Class library
Seems a simple task but despite google and looking at all the menus I cannot find how to look at documentation of classes or objects in XNA.
In unity you just press ctrl and ' what is is in visual ...