Posts

Showing posts from November, 2013

Load Images from Web with Xamarin iOS EN

Image
Hi Everybody, today I´m going to show you how to load images from the web in Xamarin in an iOS project, to do this first we need to follow these steps: Create a New Solution of Single view in Xamarin, if you don´t know how to do it please click here to see how to do it in a previous post Now edit your .xib file to add an Image View and three UIButtons Now let´s link our objects with their variables, when you have done this you can close your xCode Now in Xamarin go to [Name of your project].cs file create the following method: UIImage   FromUrl   ( string   uri ) {      using   ( var   url   =   new   NSUrl   ( uri ))          using   ( var   data   =   NSData . FromUrl   ( url ))              return   UIImage . LoadFromData   ( data ) ; } Now on your  [Name of your project].designer . cs  file and add the following code on your respective areas, I'm going to paste all my class so in that way you can see how to implement this code using  MonoTouc

Cargar Imagenes de la Web con Xamarin iOS ES

Image
Hola a todos, hoy les voy a enseñar como cargar imágenes de la Web en un proyecto de iOS con Xamarin, para hacer esto hay que seguir los siguientes pasos: Crear una nueva solución en Xamarin del tipo Single View, si no saben como hacerlo, porfas denle click aquí , para que vean como en el post previo Ahora hay que editar nuestro archivo .xib , les agregaremos un Image View y 3 UIButtons Ahora hay que vincular nuestros objetos, cuando hayan hecho esto pueden cerrar su xCode Ahora abran su archivo  [Nombre de su Proyecto].cs  y creen el siguiente metido: UIImage   FromUrl   ( string   uri ) {      using   ( var   url   =   new   NSUrl   ( uri ))          using   ( var   data   =   NSData . FromUrl   ( url ))              return   UIImage . LoadFromData   ( data ) ; } Ahora en su archivo  [Nombre de su proyecto].designer . cs  Agreguen el siguiente código, pondré toda mi clase y ya así ustedes elijan la parte de código que les sirva using  MonoTouch . Foundation

Crear un nuevo Libro de Excel con VBA ES

Image
Hola a todos, hoy les voy a enseñar como crear un nuevo libro de excel con VBA; ustedes lo pueden crear desde Excel o PowerPoint u otro programa de Office, solo necesitan tener la referencia necesaria. Ok antes que nada sie stamos en excel no necesitamos ninguna referencia ya que estas se agregan automáticamente, pero si no lo estamos necesitamos añadir la referencia de la siguiente manera: Click en Herramientas->Referencias Encuentren y seleccionen la librería: Microsoft Excel 14.0 Object Library Click en Ok Ahora crearemos el nuevo Libro, Yo lo voy a crear desde excel y bueno antes de empezar necesitamos tener nuestro ambiente de programación, si no saben como llegar a este paso solo denle click aquí para que vean en el post previo como llegar a esta parte, Ahora empecemos: Click derecho en This Document->Insertar->Modulo Ahora escribamos el siguiente código: Sub createNewWorkbook()     Dim newBook As Workbook     Dim newSheet

Create a new Excel Workbook with VBA EN

Image
Hi Everybody, today I'm going to show you how to create a new workbook with VBA; You can create a workbook from Excel or PowerPoint or another program of Office, you just need to have the reference. First of all If we are working on Excel we don't need any reference because the references are set automatically but if you are not in Excel you need to add the references as following: Click on Tools->References Find ans Select the library: Microsoft Excel 14.0 Object Library Click on Ok Now let's create the new workbook, I'm going to create it from Word and well before I start I should have my programming environment, If you don´t know how to get to that just see the previous posts, this  could help you. Well now let's start: Right click on This Document->Insert->Module Now Write the following code: Sub createNewWorkbook()     Dim newBook As Workbook     Dim newSheet As Worksheet     Dim name As String     nam