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

Set a custom object's value using reflection

Hii have an application that uses a dll and executes the methods inside the dllinside the dll i have public class DllObject { UnknownType custObj; public void UseCustObj() { Send(custObj); } } public...

View Article


How does compiler work?From source code to a executable PE file..

How does compiler work?From source code to a executable PE file..There are so many files in a solution.a .sln file (what is this for?)a .resx file (what is this for?)a .xml file  (what is this for?)a...

View Article


Autoscroll is not painted on a panel used inside a C# user control

The panel was used inside a C# user control and whenever resize the user control and the panel also get resized with my logic. however the autoscroll is not painted properly when i resize the user...

View Article

i want to remove member from group in AD

i want to remove member from group in AD using C# currenlty referring the code avliable on MSDN msdn.microsoft .com/en-us/library/windows/desktop/aa772133(v=vs.85).aspx but getting error on line...

View Article

How focus on winform if already opened?

I need to focus on form if it is already opened else i want to open new form.I am trying but not working. foreach (var item in Application.OpenForms) { Form form1 = item as Form ; if (form1 != null) {...

View Article


Error Occur when run from EXE The type initializer for...

Hello Everybody,this error is displaying when I run my application from EXE but everything is working properly when I run from SourceCode.The type initializer for 'System.Data.SqlClient.SqlConnection'...

View Article

Binded CheckBox List

How can I show my Binded Checkbox List(from code behind) to jquery and display the object?(ASP.Net)Jesher Espejo

View Article

What's is the minimum angle of Rotatetransform?

I need to make the picture less than 1 degree (0.25 degree) of angle.In WIN 7 OS, it can work.But in XP OS, Rotatetransform doesn't make any rotate.What can i do to make the a 0.25 degree rotate?

View Article


error in lightswitch application report (targetinvocationexception was not...

after running the application when i click the report screen the  error in lightswitch application report (targetinvocationexception was not handled by user code and disassembly open in tab... 

View Article


Entity Frame work use for child parent

HiI have two table in db that has parent/child relation.I want to use two windows form data grid to bind every one to a grid as if iselect different  parent then child change.How i could reach to child...

View Article

Control Scanner with WIA in C#, which property is necessary and some is not...

Im learning WIA to control scanner.But i found there is a lot of properties, and i just want to fast use.Does anyone have some experience on this part?Thanks.

View Article

Dynamically generated Excel chart in C# with multiple series

Hi all ! I'm trying to generate Excel charts using C#. I'm using Excel.Range to set a range(series of values) to plot.However, I'd like to plot two series that are not next to each other. For example,...

View Article

[Need help] cannot get a connection to my MySql database

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; namespace WebApplication1 {...

View Article


How to forced focusing on child form?

How to force fully focus child form when we click on client area of parent form.  i.e  like Messagebox or error message have such focus so we must click on Ok button of messagebox.

View Article

Out of Memory Exception while reading large file

Hi All,I want to read the large XML fiile (500 MB). I am using below code... but I am facing  Out of Memory exception...        public static byte[] Compress(XElement xml)        {            string...

View Article


Container for Jagged Arrays?

I am looking for a way to put all of my jaggedArrays into a container with a length property. I can then usethe length instead of the static int 5 shown below. It will also allow me to add more jagged...

View Article

Using environment PATH variables with System.Diagnostics.Process.Start

Hello,I try to run an application in my code. Looks like:System.Diagnostics.Process.Start(@"C:\Windows\SkeletonApp.exe");Unfortunately I don't get it working with class variables...

View Article


How to sign EXE using signtool with Verisign SPC and PVK on the command line?

I have a newly-minted Verisign certificate in the form of a SPC and PVK file, and I can sign EXEs and CABs flawlessly using the wizard.  How can I do the same from the command line?  I use the follwing...

View Article

How can i replace string with StringBuilder ?

private StringBuilder MakeRandomwords(string theWord) { Random rand = new Random(); StringBuilder jumbleSB = new StringBuilder(); jumbleSB.Append(theWord); int lengthSB = jumbleSB.Length; for (int i =...

View Article

SoapClient XElement

I would askyou for your help!     DateTime date = Convert.ToDateTime("1900-01-01");     VisionSoapClient vsc = new VisionSoapClient();     XElement xdata = vsc.GetCikkek(date);     string path =...

View Article
Browsing all 31927 articles
Browse latest View live


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