milosev.com
  • Home
    • List all categories
    • Sitemap
  • Downloads
    • WebSphere
    • Hitachi902
    • Hospital
    • Kryptonite
    • OCR
    • APK
  • About me
    • Gallery
      • Italy2022
      • Côte d'Azur 2024
    • Curriculum vitae
      • Resume
      • Lebenslauf
    • Social networks
      • Facebook
      • Twitter
      • LinkedIn
      • Xing
      • GitHub
      • Google Maps
      • Sports tracker
    • Adventures planning
  1. You are here:  
  2. Home

Inheriting Windows Forms with Visual C# .NET

Details
Written by: Stanko Milosev
Category: Windows Forms
Published: 23 November 2010
Last Updated: 29 June 2020
Hits: 6122

Start new Windows Forms Application, for example, name it MyInheritance.

In solution explorer right clink on MyInheritance, like on picture:

Then, in project properties under Output type choose Console Application like on picture:

Save it. Put a button on a form (add form if it doesn't exist), build project.

 

Then, to test it, go to the File -> Add -> New project... Then choose Windows Forms Application, in the solution explorer right click on References, go to the project tab and choose MyInheritance, then right click on this new project -> Add -> New item ->Windows Forms -> Inherited Form -> Ok and this is it.

 

If you want to change a component in your inhertited form, then choose property Modifiers from MyInheritance and change it to Public.

 

Taken from here.

The type or namespace name 'WindowsAzure' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

Details
Written by: Stanko Milosev
Category: Azure
Published: 10 March 2013
Last Updated: 07 November 2021
Hits: 26984
  • visual studio

If you are receiving error like in the title, then you have to change your target framework, because console application is targeted to .Net Framework 4 Client Profile by default.

Right click on the project, and then properties:

and then change target framework to .NET Framework 4:

The certificate with thumbprint xxxxx was not found.

Details
Written by: Stanko Milosev
Category: Azure
Published: 23 February 2013
Last Updated: 23 February 2013
Hits: 11128

If you want to deploy application to windows azure, with remote desktop enabled, like on the picture:

 

 

Then you have to upload a certificate, otherwise you will receive thee error like:

 

 

So, go to the settings, there you can choose which certificate you want your application to use:

Then open Certificate Manager by clicking the Start button , typing certmgr.msc into the Search box, and then pressing ENTER.‌   If you are prompted for an administrator password or confirmation, type the password or provide confirmation.

This information I took from here. 

Click with right button on the certificate and export it, like on the picture:

 Then, go to azure -> cloud services:

Click on instance on which you want to install certificate, go to certificates:

and upload certificate.

 

Now you are ready to deploy your application with remote desktop enabled.

Deploy MVC3 project

Details
Written by: Stanko Milosev
Category: Azure
Published: 17 February 2013
Last Updated: 07 November 2021
Hits: 7257
  • visual studio

Using Visual Studio 2010, first, lets create an application:

 

Then choose MVC3 application

 

 

Then right click on the project and add windows azure:

 

 

Now right click on Azure project and choose package:

 

and with this you will have packages which has to be uploaded to Azure.

 

Now, lets go to cloud services:

 

 

Create one, in my case I name it stanko:

 

 

Choose package files and configuration files:

 

 

Check "Deploy even if one or more roles contain a single instance":

 

Otherwise you will receive error "The uploaded configuration file has at least one role that has only one instance. We recommend that you deploy at least two instances per role to ensure high availability in case one of the instances becomes unavailable. If you want to use the current configuration, please retry the operation and select the "Deploy even if one or more roles contain a single instance" option in the dialog box.":

 

 

After deployment if you go to http://stanko.cloudapp.net/ you will see the web site.

  1. Service bus and topic creation
  2. Check locks
  3. WadLogsTable
  4. Copy database

Subcategories

C#

Azure

ASP.NET

JavaScript

Software Development Philosophy

MS SQL

IBM WebSphere MQ

MySQL

Joomla

Delphi

PHP

Windows

Life

Lazarus

Downloads

Android

CSS

Chrome

HTML

Linux

Eclipse

Page 39 of 164

  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43