Questions tagged [msdn]

Microsoft Developer Network

The Microsoft Developer Network (MSDN) is the portion of Microsoft responsible for managing the firm's relationship with developers and testers, such as: hardware developers interested in the operating system (OS), and software developers standing on the various OS platforms or using the API and/or scripting languages of Microsoft's applications. The relationship management is situated in assorted media: web sites, newsletters, developer conferences, trade media, blogs and DVD distribution. The life cycle of the relationships ranges from legacy support through evangelizing potential offerings.

1089 questions
-2
votes
1 answer

How to take screenshot of complete desktop Windows c#

Below code is taking screenshot of desktop window only. My expectation is to take screenshot with taskbar and everything visible to the user. Any help would be appreciated ''' { //Creating a new Bitmap object Bitmap captureBitmap = new…
-2
votes
1 answer

GetModuleFileName() not giving the correct path of DLL

I'm using two directories to run the application, I have placed the EXE file in one directory and DLLs in another; after executing the EXE, I want to load another DLL at run time, so I'm using GetModuleFileName() to get the working DLL path to load…
Vipin
  • 27
  • 1
  • 5
-2
votes
2 answers

How to exclude inherited members from Microsoft online api/class documentation

When browsing Microsoft class documentation, I would like to be able to hide inherited members (i.e. inherited properties and methods). Often, I find myself looking at intermediate abstract base classes to see what specific functionality they add,…
-2
votes
1 answer

Check if letter clicked and left button mouse is down win32 API

I want to listen if left mouse button is clicked and a letter too for example 'a' I already did that for only the mouse click, I can't listen for both I tried the following code but didn't work for me case WM_LBUTTONDOWN: hdc = GetDC(hWnd); …
shrouk mansour
  • 381
  • 3
  • 16
-2
votes
2 answers

Why is GetMessage exiting my program without sending any message?

here is my problem. I'm trying to create a windowless program that still uses trayIcon and Hooks, so I need to use messages (or not?) but when I use them, I don't know how to free my memory when I kill my process. Even classes's destructors aren't…
bachinblack
  • 150
  • 12
-2
votes
2 answers

Roundup using math

I have a amount 100001, i want to round it up to nearest 10000. my expected output after roundup would be 110000. How to do that using c#??
-2
votes
1 answer

Signup with Microsoft developer account

I want to publish UWP app to store. For this user must have sign-in with Microsoft developer account. I am trying to sign-up process from last 2 weeks but each time it throws an error Something went wrong and we can't sign you in right now. Please…
avinash
  • 41
  • 1
  • 10
-2
votes
1 answer

How to Run Test cases one by one in Visual Studio

I wanted to run the test cases one at a time through the automation. How to do that through the command prompt? I wanted to run "AccountGroupTests"
-2
votes
1 answer

SetMaxThreads property of threadpool seems to has no impact, then why it is here?

Here is the simple program where I am testing threadpool.setmaxthreads property, but it seems it has really no impact class Program { static void Main(string[] args) { ThreadPool.SetMaxThreads(2, 0); for (int i = 0; i < 5;…
Iqra.
  • 685
  • 1
  • 7
  • 18
-2
votes
7 answers

Time - Two times at once difference

I have a doubt about this code. I would check if two times have a difference lower than 7 seconds. static void Main(string[] args) { List logDates = new List(); //Define regex string string pattern =…
nonac
  • 35
  • 7
-2
votes
4 answers

Error when deleting rows from a database

I am using this code to attempt to delete data from my table: SqlConnection con = new SqlConnection(str); SqlCommand cmd = new SqlCommand("delete * from login", con); con.Open(); cmd.ExecuteNonQuery(); When I run this I receive this error: An…
M7off
  • 137
  • 1
  • 9
-2
votes
1 answer

How return number of the word in text onclick or tap

How can I return the number of the word in text onclick or tap? I was thinking of using Find.HitHighlight Method (Word) - MSDN(or something similar) but I don't how. For now I can count words in the text I have and store them in collection but how…
Nikita Chernykh
  • 270
  • 1
  • 4
  • 18
-2
votes
1 answer

memmove (MSDN) - the quick brown fox/dog

I read the MSDN article on memmove here: http://msdn.microsoft.com/en-us/library/aa246469%28v=vs.60%29.aspx and I cannot tell from their example how memmove differ from memcpy. they both give the same outcome though the example is to show the…
CaTx
  • 1,421
  • 4
  • 21
  • 42
-2
votes
1 answer

Windows Forms: Unmanaged code calls an internal thread that causes 'Access violation'

So I'm using some native code (only access to the DLLs; no source code) that causes my program to crash. Essentially, I try to connect to a server which initially connects fine. There is a connection object provided by the API which is used as the…
furssher
  • 83
  • 8
-2
votes
2 answers

Bringing closed app to the foreground in Windows phone 8

I am trying to bring a closed app in windows phone 8 using LaunchUriAsync() and Package.Luanch(). I see that the problem with LaunchUriAsync() is that it has to called from a foreground application and it wont work when it is called from a…
golldy
  • 1,279
  • 1
  • 15
  • 31
1 2 3
72
73