-
- MapPoint FindNearby
by BlindChristian
- 1 Replies
- Last post
by Peter Ritchie
- Is there any way to use FindNearby to retrieve information about more than one EntityType at a time I am trying to find all of the points of interest (POI) within two kilometers of a given point. Right now, it seems that I need to iterate through every separate EntityType, is there any way I can do this as a bulk process
-
- Adding users in stand alone computer ?
by C#_Starter
- 2 Replies
- Last post
by C#_Starter
- Hi ,
Can you plz guide me to how to add/delete/modify privilages of user on stand alone computer in C#
Like getting all current user accounts , adding new one user , changing password etc.
And can I force logoff current logon user , And can I also force restart of shutdown computer in C#
How to do this
Thanks
-
- Get the MD5 hash from all file from current folder/ another folders
by KiMi21
- 1 Replies
- Last post
by OmegaMan
- I have the current directoy in which the application is. This Main directoy contains another 2 directories and 2 files in each of them. Also the Main Directory has some files in it. How can i get the MD5 hash of each file from each folder+subfolder of Main directory, and put them in an array/List After this i want to compare the each file's md5 with the one i will give, so i know that the file is
-
- ServerProtocolViolation, .Net2 and <httpWebRequest useUnsafeHeaderParsing = "true" />
by mvkorobkov
- 3 Replies
- Last post
by mvkorobkov
- Why the configuration section <system.net> <settings> <httpWebRequest useUnsafeHeaderParsing = "true" /> </settings> </system.net> in .Net 1 help me to pass the HttpWebRequest problem "The server committed a protocol violation. Section=ResponseStatusLine" but not help in .Net2 Seems this is the bug in .Net 2 Framework Michael
-
- Using [x] button in Windows forms or Web Applications
by Andrew Mercer
- 2 Replies
- Last post
by Andrew Mercer
- Hi,
Is there a reliable way to catch the Action of a User when they decide to use the [x] button to shut down a Browser.
With Windows Forms its is nice and neat via the Dispose method - here it allows me to do any closing actions as required...
I have tried catching the [x] action in the past using javascript and then calling a Servlet (Previous Java Application I was on) to do the action
-
- Drawing on an Image issues.
by FrustratedDude
- 6 Replies
- Last post
by decyclone
- Hi All,
Im hoping someone can point me in the right direction here as i have wasted too much time on this already for something i thought was simple.
I have a winforms control that will eventually dynamically load a series of diagrams (jpgs) into a picture box. I then want the user to select from a series of brushes and styles etc and draw onto the image which can later be saved with the
-
- regasm
by MichaelJHuman
- 1 Replies
- Last post
by Karthikeya Pavan Kumar .B
- I am doing some COM Interop work, and in a number of places on MSDN it mentions that I should be able to place my assembly in the application directory (avoiding the GAC.)
One option I found was /codebase. It avoids the need for the GAC, but hardcodes the assembly path in the registry - not what I was looking for.
There's also the poorly documented /asmpath option, but I am not sur
-
- Error When passing long value to int
by NarasimhaTheGreat
- 5 Replies
- Last post
by NarasimhaTheGreat
- Hi,
I have a COM component which exposes 2 methods called GetInfo() and ReadAvay(). Both functions take long as parameter. This dll is converted to interop to use it in .NET using tlbimp.exe. Now, when I call these functions in .NET it expects me to pass int value. I want to pass big enough value that exceeds int capacity.
If I convert data to Int32 using "Covnert" it throws an exc
-
- Problem with if and else statements within a For Looop. Error CS0201
by don06van
- 8 Replies
- Last post
by micvos
- Hi I've been developing a Queue for customers. The user can enter the customer's information into text inputs and add them to the queue, the user can also remove customers from the queue which is where im having problems. I've created array's for all my customers informations and then when they "add to queue" i add it to the datagrid table I have created in the form.
anyways for
-
- PrincipalPermissionAttribute not working
by Milan2007
- 1 Replies
- Last post
by OmegaMan
- This is probably really simple. Maybe I'm not understanding the concept.
Based on what I understand, if I am currently logged in under a user profile that requires a username and password and I am part of the Administrators group the following should work; however, when it is run under my profile which is part of "Administrators" I receive an exception stating that "Request
-
- Writing a 16-bit grayscale image
by InfiniZac
- 11 Replies
- Last post
by 123SB
- I have a byte array containing pixel values for a 16bpp grayscale image. I need a solution for converting said array to a bitmap image. So far I've come up with this:
internal static Image imageFromArray(byte[] array)
{
const int WIDTH = 1472;
int height = (array.Length) / WIDTH / 2;
Bitmap bitmap = new Bitmap(1472, height, PixelFormat.Format16bppGrayScale);
for (int x = 0; x
-
- Finding condition failure when using the ||/OR operator
by GrantThomas
- 4 Replies
- Last post
by IsshouFuuraibou
- Hello,
Im not sure if there this is going to be possible but take this code for instance:
if (variable_one != null || variable_two != null )
{
//....
}
Would there happen to be a technique of determining which of the variables failed the condition
Thanks for any help in advance.
Grant
-
- Retrieving URL from IE
by Taffy11
- 9 Replies
- Last post
by Sheng Jiang (?κΙ)
- Hi All,
I am developing a windows application that will retrieve the url address from a internet explorer window, using c# within the .net environment (2.0). Is this possible and can you provide me with either examples or references. Thanks,
Kelvin
-
- Is there a C# and .NET reference for non morons?
by baldmountain
- 7 Replies
- Last post
by ShellShock
- Hi, Spent a good amount of time today browsing in Barnes & Noble for a decent reference to learn C# and the .NET framework. I don't think one exists. There are tons of those really fat books that have huge amounts of whitespace and chapters that are so simple that it is insulting to read. I've gotten to a point in my career where I buy the thinest book on a subject because the fat ones are jun
-
- String compa Cannot implicitly
by NoEgo
- 9 Replies
- Last post
by James Curran
- I cannot get the syntaxt to work on the string compare here. I don't know why I keep getting a message saying it's trying to conver an integer to abool in my String.Compare:
foreach (string excelDescription in exceldata) &
-
- Only 1st char of string passed to DLL gets passed?
by dl0haus
- 3 Replies
- Last post
by dl0haus
- I have a DLL that is C++ and I'm using it through C#'s DllImport mechanism. It is working fine but I'm having issues with the parameter passing. I'm attempting to pass 2 strings to the DLL. In the DLL they are defined as LPCSTRs and internally they are treated as a WCHAR* (after some conversion).
The problem is occurring when I'm passing strings (or StringBuilders in this case) to the funct
-
- Converting from unsigned char* to Bitmap
by Annyms
- 3 Replies
- Last post
by Peter Ritchie
- Hello all,
I'm having trouble converting an unsigned char* into a Bitmap image. I have an unsigned char* in managed c++ code, which points to a 1280x1024 image with 8bppIndexed as the pixel format. When I display the image using the raw unsigned char* I'm getting the right image.
In order to display the image on a C# console window, I need to convert the image from my C++ code in a Syste
-
- Command Prompt window as Desktop's child
by Paulo_Amaral
- 3 Replies
- Last post
by Paulo_Amaral
- I would like to make a command prompt window child of desktop, but my code didn't work:
PromptInDesktop.CS
using System; using System.Diagnostics; using System.Runtime.InteropServices;
namespace PromptInDesktop { public class PromptInDesktop {
[DllImport("user32.dll", CharSet=CharSet.Auto)] public static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewPare
-
- Getting cpu usage...PerformanceCounter not working!
by Hypnotoad
- 5 Replies
- Last post
by Hypnotoad
- Hello all,<br>I'm trying to get the cpu usage using the PerformanceCounter class as described in the thread: <br> http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=774833&SiteID=1 <br> The problem is, whenever I run the program, it throws an exception stating that the category is not found. I don't seem to have the Processor or Memory categories on my system.&am
-
- confused in populating array!
by Anonymousaaaaaaaaaaaaaaaahhhh
- 14 Replies
- Last post
by sirjis
- hayy everybody,
samll problem i bet for you guys but a big one for me! i cant get my head around populating arrays! i know how arrays work but when it comes to populating them my head goes blank! please help me understand!
i have this in a textbox that i need populating!
08:22:39 , 8.20E+01
08:22:41 , 1.00E+03
08:22:43 , 1.00E+03
on the left its the xdata for the
-
- StackOverflowException with TypeDescriptor.GetProperties(...)
by windsim
- 6 Replies
- Last post
by Mark Dawson
- Hi, I have a project based on .Net 1.1 and VS 2003,now I am trying to upgrade it to .Net 2.0 and VS 2005.The project passes the 'Build Solution',but When I start Debug, it suddenly comes StackOverflowException and Debug stops. The main Exception point is the function below: public System.ComponentModel.PropertyDescriptorCollection GetStatefulPropertyDescriptors() { DataObject.StatefulPropertyAtt
-
- dynamic selection of connection strings
by Kamranshehzad
- 14 Replies
- Last post
by TaylorMichaelL
- Hi I want to add multiple connection strings like a liveConn and 2 test connections. But what happens when I change the app.config file, it doesn't react the way it should be. It keeps using the old string. Any idea or suggestion.
-
- Appdomain - Exception Management
by h1
- 3 Replies
- Last post
by Friendly Dog
- Hello,
I was under the impression that an exception inside the appdomain doesn't cross the appDomain. But it is not happening for me.
Here is my setup:
My default app domain contains an EXE (container).
The container creates a new appDomain (newAD).
The container adds an event handler for newAD. UnhandledException
the container loads an assembly into the newAD.
the container i
-
- WebRequest.BeginGetResponse is blocking
by Display Name&#42;
- 4 Replies
- Last post
by Display Name*
- Question: Is it my code, or a secret setting somewhere that is making this code blocking. Before request (instant) EndDownload (after a few seconds) https://cars.graceland.edu/cgi-bin/public/crsschd.cgi (instant) After request (instant) Before request (instant) EndDownload (after a few seconds) https://cars.graceland.edu/cgi-bin/public/crsschd.cgi (instant) The program '[1136] ParserUI.vshost.exe:
-
- How do I get list of holidays dates of various cultures ?
by Geshem
- 3 Replies
- Last post
by Peter N Roth
- there is probably a way to get it from outlook, but i don't want my application to depend on outlook existance in the target computer.
thank you...