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

is it possible to call a particular function from the vbscript using c#.net?

in c#.net, i can execute a VBScript by using the System.Diagnostics.Process Class.but is it possible to call a particular function from the vbscript?

View Article


writing to Foxpro ADO where data contains special characters e.g. ' &

The code below reads data from datatable into a Foxpro table.I am getting errors when the data contains ' or &.The error is like 'Variable 'Q617P78' is not found' - where Q617 is the datarow and...

View Article


What are the must read msdn blogs for C# language latest developments?

What are the must read msdn blogs for C# language latest developments and to know internals of C# language?Mani

View Article

Have the details of the way

Hi, I am to show the form that is from one other compiled .dll file. Is there one example to do this, within one VS project?Many Thanks & Best Regards, Hua Min

View Article

IntPtr to array of managed structures

I have an API call that returns a array of structures as an IntPtr.I won't post any of my current code because it's a nightmare! I just need input on how I might do this:Currently Marshaling the...

View Article


How do i can remove annotation (pen) from powerpoint slide ?

I am recording powerpoint slideshow. User can use powerpoint pen to draw something on slide. In my application there is an option for re-recording. Now what i want is that when user click on...

View Article

PROBLEM DISABLING/ENABLING THE NETWORK ADAPTER WHEN RRAS IS ENABLED

hello all, I am using the following code to disable/enable the lan card:SelectQuery wmiQuery = new SelectQuery("SELECT * FROM Win32_NetworkAdapter WHERE NetConnectionId != NULL");...

View Article

Image may be NSFW.
Clik here to view.

Textbox, arrays - get information, display and put in array to use in other...

hello! I am trying to do the following:1. The user sets the numebr of the objects for which he/she wants to start an evaluation. Then he/she presses the ok button. The software keeps the number .2....

View Article


Image may be NSFW.
Clik here to view.

Reading multiple XML files and displaying it in DataGridview

Hello,There're two things I'm trying to accomplish here. 1. Upload an XML file from a folder, read the file and show the output in the DataGridview.2. Upload all the XML files from a folder, read the...

View Article


Using C++ dll in C# project

Hi everybody,In C# code I need to use C++ dll. I have a test console project that works fine when I build it as exe. However, when I try to run it form VS by pressing F5 I get these errors:...

View Article

SSL Problem: Trust Security Relationship Issue

Is there a  solution that could not be potential security threat if I turn off the SSL certificate validation. This is production code, I understand that there will be the risk of the server that I...

View Article

Basic Diffrence between ==,object.ReferenceEquels and Equels

 Hello This is the basic diffrence between ==,ReferenceEquals(), .Equals()string s1 = "test";            string s2 = "test";            string s3 = "test1".Substring(0, 4);            object s4 = s3;...

View Article

How to flip monitor image (not rotating) ?

Hello everyone,I have a problem and need your help.i have a computer with two monitors. I run my app on the computer, the app normally displays on primary screen but it will be flipped (vertical or...

View Article


KeyDown Space Event in C#

I have one textbox in that whe I write word in English it will convert to Hindi.Now when the user presses space "the English Word" that the user has written will convert toHindi Word.I am using KeyDown...

View Article

Image may be NSFW.
Clik here to view.

Mayday! C# Guru urgently required, for love and glory from all the community!

Mayday! Mayday! A distress signal is being sent out to all past, present and future Gurus!We need more of your awesomeness!The TechNet Guru Competitions have become BIG news within Microsoft circles,...

View Article


How to add the prompt text for the TextBox of a WinForm in C#?

Hi,friends I want to add  the prompt text for the TextBox of a WinForm for getting User-friendly input interface in C#.But i don't know how to do it. Please tell me, thanks very much!

View Article

how to backup a service based database with dbcontext

I'm creating a winform application with c#, and I use the service-base database to create a local database, and use entity framework to manipulate it, and my questinn is how to backup and restore this...

View Article


Operating ARM CAN Bus Drivers Using C#

Hello, I am doing my MSc project and I am having a problem driving my CAN bus using C#. I am using this ARM based HMI and the supported BSP source files for Windows CE 6.0 coming from the...

View Article

Why is this XPath query returning null?

strQuery = String.Format("AFX_RIBBON/RIBBON_BAR/CATEGORIES[CATEGORY/NAME='{0}']", eTransCategory.strSourceText); Have I formatted it incorrectly?

View Article

Most preferred method for querying remote windows event logs

From my research, I find that there are 3 methods to obtain the Windows event logs of a remote machine (including the event message):Using EventLogQuery and EventLogReaderUsing...

View Article
Browsing all 31927 articles
Browse latest View live
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>