28.12.12

Kill the Window Process




Hi Everybody,
I would like to explain one of faq within this essay , how we kill the window process .
If any question, please feel free to contact me yenerturkeli@v-basic.net.

A Process component provides access to a process that is running on a computer. A process, in the simplest terms, is a running application. A thread is the basic unit to which the operating system allocates processor time. A thread can execute any part of the code of the process, including parts currently being executed by another thread.

The Process component is a useful tool for starting, stopping, controlling, and monitoring applications. Using the Process component, you can obtain a list of the processes that are running, or you can start a new process. A Process component is used to access system processes. After a Process component has been initialized, it can be used to obtain information about the running process. Such information includes the set of threads, the loaded modules (.dll and .exe files), and performance information such as the amount of memory the process is using.

You can use the code as below

Imports System.Diagnostics
dim my_process_name as string
Dim all_process As System.Diagnostics.Process
        For Each all_process In System.Diagnostics.Process.GetProcesses()
           Dim selected_process As String = my_process.Split("-").Trim()
         
            If all_process.ProcessName = selected_process Then
                all_process.Kill()
            End If
        Next

Have a nice day,
Yener Turkeli



18.12.12

Build your apps fast with great tools


Build your apps fast with great tools
Windows Phone SDK provides Visual Studio Express 2012 for Windows Phone and the assets to build epic apps faster using what you know. Use .NET to build your apps or take full advantage of the platform for your games with DirectX/C++. .NET apps and games can reuse their business logic across Windows 8, the web (ASP.NET), and Windows Azure so developers can move faster.
Windows Phone apps
The Visual Studio 2012 integrated development environment (IDE) simplifies the development of phone apps so you can focus on delighting your users.
Windows Phone Emulator
Once you’ve built your app, test it using the Windows Phone Emulator. You’ll see it the way users will see it in a simulated, real-world environment.
Blend for Windows Phone
Seamless integration with Blend for Windows Phone means you can create unique and compelling apps that will shine in the Windows Phone Marketplace.
Use with your existing Visual Studio
With the Visual Studio Add-in you can create end-to-end solutions. Create continuous services to power your apps with cloud-based services. Or share business logic across Windows Phone, Windows 8, or ASP.NET.
System Requirements
Supported operating systems
Windows 8 (x64)
Supported architectures
64-bit (x64)
Hardware requirements
1.6 GHz or faster processor
4 GB of RAM
4 GB of available hard disk space
Windows Phone 8 Emulator
Windows 8 Pro edition or greater
Requires a processor that supports Second Level Address Translation (SLAT)
If your computer meets the hardware and operating system requirements, but does meet the requirements for the Windows Phone 8 Emulator, the Windows Phone SDK 8.0 will install and run. However, the Windows Phone 8 Emulator will not function and you will not be able to deploy or test apps on the Windows Phone 8 Emulator.
Notes
To start Visual Studio Express for Windows Phone, click the application in the Apps list. If you have Visual Studio Professional, Premium or Ultimate installed on the computer, the Visual Studio Express for Windows Phone shortcut won't appear. Instead, start your Visual Studio instance as usual and then create Windows Phone SDK 8.0 projects using the installed Windows Phone templates.
If you try to run a project in Windows Phone Emulator and Hyper-V is not enabled, you will be prompted to turn on Hyper-V. Turning on Hyper-V requires you to restart your computer.

Download address:

http://www.microsoft.com/visualstudio/eng/downloads#d-express-windows-phone




2.12.12

VB.NET Working with Webcam

Hi Everybody,
I would like to explain one of faq within this essay using webcam.

If any question, please feel free to contact me yenerturkeli@v-basic.net.

We need to  Framework 4.0 and WPFEncode. in order to use the Webcam please add webcamcontrol and Imports statement . 

Imports Microsoft.Expression.Encoder.Devices
Imports WebcamControl

You can easily takesnapshot and record.

The WPFEncode application demonstrates how to encode a file from a user interface (UI) application when displaying the progress of the encoding process. To use the application, click the Browse button to point to a file that you want to encode, and then click the Encode button to encode it. When the file is being encoded, a bar displays the encoding progress.

When you press the Encode button, the application creates a thread to perform the encoding to make sure that the UI thread is not blocked. The progress events are called from a non-UI thread. Consequently, Microsoft Expression Encoder uses the Windows Presentation Foundation (WPF) Dispatcher to marshal the updates to the UI thread.

If you try to close the application when the encoding is still occurring, the application prompts you to confirm that you want to stop the process. If you confirm, the application stops the encoding thread but delays closing the application until the thread actually stops.

Have a nice day,
Yener Turkeli