elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.


Tema destacado: Estamos en la red social de Mastodon


  Mostrar Mensajes
Páginas: 1 ... 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 [898] 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 ... 1254
8971  Programación / .NET (C#, VB.NET, ASP) / Re: Scroll de Imagenes? en: 16 Junio 2013, 20:28 pm
El primer código es el formulario de un proyecto...

El segundo código es una Class que contiene un control extendido...

...Ya te lo dije, si no aprendes lo básico yo no te facilitaré códigos (Ni a nadie que siga el mismo camino),
si para ti ha sido imposible ver o entender la diferencia entre esos dos codes (No me extraña, no lees) aquí tienes algo de información para empezar a leer y entender como se puede usar el segundo code:

Google + VBNET + User controls



Saludos
8972  Programación / .NET (C#, VB.NET, ASP) / Re: Librería de Snippets !! (Posteen aquí sus snippets) en: 16 Junio 2013, 20:13 pm
Me he fijado y NovLucker también ha ayudado. ;)

Si leyeras sin prisas verías que NovLucker no ha aportado Snippets porque él no tiene Snippets (Como dijo en los comentarios del principio de este hilo), símplemente comentó para ayudarme a intentar perfeccionar la manera en la que yo codeaba las cosas.

Saludos
8973  Programación / .NET (C#, VB.NET, ASP) / Re: Librería de Snippets !! (Posteen aquí sus snippets) en: 16 Junio 2013, 20:05 pm
Aparte de tu y yo, quien más ha participado? :o :P

ABDERRAMAH
8974  Programación / .NET (C#, VB.NET, ASP) / Re: Librería de Snippets !! (Posteen aquí sus snippets) en: 16 Junio 2013, 19:50 pm
Tema: Librería de Snippets !! (Posteen aquí sus snippets)  (Leído 10,100 veces)

Anda! 10k de visitas! Enhorabuena :)

Las visitas me dan igual ...pero es una situación crítica que de 10.000 lecturas sólamente 3 personas (incluida yo) hayan participado a contribuir.
8975  Programación / .NET (C#, VB.NET, ASP) / Re: Librería de Snippets !! (Posteen aquí sus snippets) en: 16 Junio 2013, 19:42 pm
 Abre un archivo o una carpeta en el explorador de Windows

Código
  1. #Region " Open In Explorer "
  2.  
  3.    ' [ Open In Explorer ]
  4.    '
  5.    ' // By Elektro H@cker
  6.    '
  7.    ' Examples :
  8.    ' Open_In_Explorer("C:\Folder\")
  9.    ' Open_In_Explorer("C:\Folder\File.txt")
  10.  
  11.    Private Sub Open_In_Explorer(ByVal File_Or_Folder As String)
  12.  
  13.        If File_Or_Folder.EndsWith("\") Then File_Or_Folder = File_Or_Folder.Substring(0, File_Or_Folder.Length - 1)
  14.  
  15.        If IO.Directory.Exists(File_Or_Folder) Then
  16.            Dim FileInformation As IO.FileInfo = My.Computer.FileSystem.GetFileInfo(File_Or_Folder)
  17.            Process.Start("explorer.exe", " /select," & IO.Path.Combine(FileInformation.DirectoryName, FileInformation.Name))
  18.        ElseIf IO.File.Exists(File_Or_Folder) Then
  19.            Dim FolderInformation As IO.DirectoryInfo = My.Computer.FileSystem.GetDirectoryInfo(File_Or_Folder)
  20.            Process.Start("explorer.exe ", FolderInformation.FullName)
  21.        Else
  22.            Throw New Exception(File_Or_Folder & " doesn't exist")
  23.        End If
  24.  
  25.    End Sub
  26.  
  27. #End Region



 Abre un dialogo y selecciona un proceso para ejecutar un archivo.

Código
  1. #Region " Open With... "
  2.  
  3.    ' [ Open With... ]
  4.    '
  5.    ' // By Elektro H@cker
  6.    '
  7.    ' Examples :
  8.    ' Open_With("C:\File.txt") ' And select "Notepad.exe" in the Dialog...
  9.  
  10.    Private Sub Open_With(ByVal File_Or_Folder As String)
  11.  
  12.        Dim OpenWith As New OpenFileDialog()
  13.        OpenWith.InitialDirectory = Environ("programfiles")
  14.        OpenWith.Title = "Open file with..."
  15.        OpenWith.Filter = "Application|*.exe"
  16.  
  17.        If OpenWith.ShowDialog() = DialogResult.OK Then
  18.            Process.Start(OpenWith.FileName, " " & """" & File_Or_Folder & """")
  19.        End If
  20.  
  21.    End Sub
  22.  
  23. #End Region
8976  Programación / .NET (C#, VB.NET, ASP) / Re: Librería de Snippets !! (Posteen aquí sus snippets) en: 16 Junio 2013, 19:40 pm
Unos snippets que hice para usarlos con ListViews:


  • Auto scrollea un Listview hasta el último Item.
Código
  1.   ' Scroll ListView
  2.    Private Sub Scroll_ListView(ByVal ListView_Name As ListView)
  3.        ListView_Name.EnsureVisible(ListView_Name.Items.Count - 1)
  4.    End Sub



  • Deshabilita el menú contextual si no hay ningún Item seleccionado.
Código
  1.    ' [ListView] Auto-Disable ContextMenu
  2.    Private Sub ContextMenu_Opening(sender As System.Object, e As System.ComponentModel.CancelEventArgs) _
  3.    Handles Listview1_ContextMenu.Opening
  4.  
  5.        If ListView1.SelectedItems.Count = 0 Then e.Cancel = True
  6.  
  7.    End Sub
  8.  



  • Copia el contenido de un Item al portapapeles
Código
  1. #Region " [ListView] Copy Item To Clipboard "
  2.  
  3.  
  4.    ' [ [ListView] Copy Item To Clipboard ]
  5.    '
  6.    ' // By Elektro H@cker
  7.    '
  8.    ' Examples :
  9.    '
  10.    ' Copy_Selected_Items_To_Clipboard(ListView1, 0)    ' Copies Item 0
  11.    ' Copy_Selected_Items_To_Clipboard(ListView1, 0, 2) ' Copies SubItem 2 of Item 0
  12.  
  13.    Private Sub Copy_Item_To_Clipboard(ByVal ListView_Name As ListView, _
  14.                                       ByVal Item As Int32, _
  15.                                       Optional ByVal SubItem As Int64 = 0)
  16.  
  17.        Clipboard.SetText(ListView_Name.Items(Item).SubItems(SubItem).Text)
  18.  
  19.    End Sub
  20.  
  21. #End Region



  •  Copia el contenido de los items seleccionados al portapapeles
Código
  1. #Region " [ListView] Copy Selected-Items To Clipboard "
  2.  
  3.    ' [ [ListView] Copy Selected-Items To Clipboard ]
  4.    '
  5.    ' // By Elektro H@cker
  6.    '
  7.    ' Examples :
  8.    '
  9.    ' Copy_Selected_Items_To_Clipboard(ListView1)    ' Copies all SubItems of selected Items
  10.    ' Copy_Selected_Items_To_Clipboard(ListView1, 2) ' Copies only SubItem 2 of selected Items
  11.  
  12.    Private Sub Copy_Selected_Items_To_Clipboard(ByVal ListView_Name As ListView, _
  13.                                                 Optional ByVal SubItem As Int32 = -0)
  14.  
  15.        Dim text As String = String.Empty
  16.  
  17.        For Each Entry As ListViewItem In ListView_Name.SelectedItems()
  18.  
  19.            If SubItem = -0 Then
  20.                For Each Subi As ListViewItem.ListViewSubItem In ListView_Name.Items(Entry.Index).SubItems
  21.                    text &= " " & Subi.Text
  22.                Next
  23.                text &= ControlChars.NewLine
  24.            Else
  25.                text &= ControlChars.NewLine & ListView_Name.Items(Entry.Index).SubItems(SubItem).Text
  26.            End If
  27.  
  28.        Next
  29.  
  30.        Clipboard.SetText(text)
  31.  
  32.    End Sub
  33.  
  34. #End Region
8977  Foros Generales / Foro Libre / Re: KickAssTorrents está Offline? en: 16 Junio 2013, 19:37 pm
http://www.kat.ph/  está offline o es mi red? Quien me puede confirmar!?

Parece que símplemente se han movido: http://kickass.to/

Saludos.
8978  Programación / .NET (C#, VB.NET, ASP) / Re: Visual basic studio (WTF?) fallo del ide en: 16 Junio 2013, 02:34 am
ver si pruebo con el uninstall tool o algo así porque no funciona el desinstalable.

¿Aún no lo has probado?

He pasado por lo mismo que tu (mas o menos), si no utilizas el programa que te dije (o uno dedicado a lo mismo) no vas a poder desinstalarlo, y una vez lo desinstalas con el uninstalltool no queda ni rastro, y puedes volver a instalarlo de nuevo sin problemas.

Pero eres libre de hacer caso de mi consejo,
Saludos!
8979  Programación / Scripting / Re: Necesito un script para convertir un conjunto de TXT-ANSI a TXT UTF-8! en: 15 Junio 2013, 19:36 pm
¿En que lenguaje?.
8980  Sistemas Operativos / Windows / Re: Automatizar programa en: 15 Junio 2013, 16:24 pm
Como hago esto?

Hola.

Pues según de la forma en que lo planteaste, eso no puedes hacerlo.

Lo que te sugiero es que escribas un archivo de lista multimedia (por ejemplo una lista de tipo "m3u"), y ahí escribas los videos que deseas reproducir, se reproducirán uno detrás de otro.

...Símplemente eso, escribir el M3U y ejecutar el M3U a "X" hora.

Para ejecutar una accion a cierta hora puedes usar el programador de tareas de Windows, puedes hacerlo así, o usando Batch, o con miles de programas que sirven precísamente para eso.

Saludos!
Páginas: 1 ... 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 [898] 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 ... 1254
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines