Posts by Lucas Pedro • 297 points
23 posts
-
0
votes0
answers22
viewsQ: FFMPEG cannot read filename that contains "..."
I have a problem reading videos that contain two or more "." points followed in the name of one of the folders or in the name of the video itself. Ex: C://pasta 1/pasta 2/meuvideo1... parte2.ts. The…
-
0
votes0
answers15
viewsQ: Command only works if you edit the code while the program is running
Xaml <ItemsControl ItemsSource="{Binding Foldres}" FontSize="14" Foreground="{StaticResource SecondaryTextColorSolidColorBrush}" ScrollViewer.HorizontalScrollBarVisibility="Disabled"…
-
0
votes0
answers43
viewsQ: I Can’t Create Bitmapimage "interface that was marshalled for a Different thread"
Error: System.Exception: 'The application called an interface that was marshalled for a Different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD))' I’m trying to get a BitmapImage…
-
1
votes1
answer49
viewsQ: Download with Httpwebclient only works outside of Parallel.Foreach
I am developing a class for downloading C files#: Filedownloader. The problem is occurring in using it. I am trying to make simultaneous downloads, it is working normal when it is running outside…
c#asked Lucas Pedro 297 -
0
votes1
answer49
viewsQ: How to prevent all items from exiting the screen when animating using Translate?
I need to limit the advance when pressing the "move button". The way it is if you keep pressing the button there will come a time when the items will disappear from the screen. I wish that didn’t…
-
0
votes0
answers25
viewsQ: Best Way to Implement Inotifypropertychanged
The traditional way would be to create a class where implements INotifyPropertyChanged and then inherit where you use it: public class NotifyPropertyChange : INotifyPropertyChanged { public event…
-
1
votes0
answers73
viewsQ: Change property of a XAML control by changing value of a property in viewmodel
I have a Page with this style: <Border Padding="{Binding InnerContentPadding}" > <Border> <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">…
-
1
votes1
answer143
viewsQ: Picturebox with round corners without serration?
What I need to do is a PictureBox that has rounded corners, but the problem is that I can’t make them round without serrations. One of the ways I found it was by using the property Region: Private…
-
0
votes1
answer39
viewsA: Delete files inside folder
'Caminho da sua pasta Dim pasta As String = "C:\...\Desktop\Nova pasta" 'Pega todos os arquivos dentro dela For Each arquivo In FileIO.FileSystem.GetFiles(pasta,…
vb.netanswered Lucas Pedro 297 -
0
votes0
answers180
viewsQ: Why Attempt to read or write in protected memory.?
What I’m doing is taking a frame of some videos, but whenever I try to access the saved images I get Read or write attempt in protected memory. I can’t use them after "saving". What I’m doing wrong?…
vb.netasked Lucas Pedro 297 -
1
votes1
answer44
viewsQ: Why can’t "If" verify equality between Ctype(double, int32) with int32?
I have a function that returns me a Double and need to check if the result is equal to 5000. I am using If CType(resultadoFunção as double, Int32) = 5000 Then, but though he shows 5000, he does not…
-
1
votes0
answers29
viewsQ: Change Maximize behavior with Wndproc or Override
I have a form without edge and need to maximize and restore it, but as you already know if I use Me.WindowState = FormWindowState.Maximized He stays on Full Screen. I already have a way: Dim tela As…
vb.netasked Lucas Pedro 297 -
1
votes0
answers30
viewsQ: Upload that data faster?
Hi! What I would like is to display Windows directories on a ListBox. In my Form I have a button just above the ListBox that serves to return (previous directory) and the event SelectedIndexChanged…
vb.netasked Lucas Pedro 297 -
1
votes0
answers52
viewsQ: How to resize from a form to the left?
I was needing to change the size of one Form no edges with the mouse, I looked for some ways to do this, but all of them when the mouse left the Form the resize stop. So I decided to do it this way:…
vb.netasked Lucas Pedro 297 -
4
votes1
answer92
viewsQ: Error opening form inside panel
I would like to open a form inside a panel, but when it opens, it is always the same size and in the same place regardless of the size of the form or the location. Dim rv As New formRV rv.link =…
vb.netasked Lucas Pedro 297 -
0
votes1
answer51
viewsQ: How can I exchange the part ( "*.jpg", "*.mp4", "*.doc") for a variable?
How can I change the part "*.jpg", "*.mp4", "*.doc" by a variable? I tried some things like: Dim var As String = "*.jpg, *.mp4, *.doc" or Dim var As String = ".jpg .mp4 .doc", ..., but I couldn’t.…
vb.netasked Lucas Pedro 297 -
2
votes1
answer290
viewsQ: How to read XML in Vb.net?
I created a program that generates a XML as is: <Pastas3> <Grupos pasta="C:\...\Arquivos\Videos"> <Video>C:\...\Arquivo 1</Video> <Video>C:\...\Arquivo 2</Video>…
-
1
votes1
answer88
viewsQ: How do I use threads or something in that code?
Guys I was needing to use the Threads (or something that doesn’t lock the program while the code doesn’t finish running) in that code, but always gives a different error, so I need your help. I was…
-
0
votes0
answers49
viewsQ: how to add images to a Listviewgroup
Let’s suppose that way: C:\...\imagem have 3 folders: fotos, wallpaper and ferias. What I’d like to do and leave them like this: Photos imagem1 imagem2 imagem3 imagem4 imagem5 imagem6 Wallpaper…
-
1
votes1
answer95
viewsQ: How to fix image with "low quality" in Listview
Guys I was using the code below to create video thumbnail and show in a Listview: Dim cont As Integer = 0 Dim thumbnail As New ImageList With {.ImageSize = New Size(200, 200)} Dim caminho_saida As…
vb.netasked Lucas Pedro 297 -
0
votes0
answers118
viewsQ: Show videos from a Vb.net folder
Guys I was using the following code to show several images in a listview as if it were a library. For Each arquivos In FileIO.FileSystem.GetFiles(caminho,…
vb.netasked Lucas Pedro 297 -
1
votes1
answer259
viewsQ: Close file used by visual basic . net
Guys I’m using the following code to grab images from a directory and put in a Listview: For Each arquivos In FileIO.FileSystem.GetFiles(caminho, FileIO.SearchOption.SearchAllSubDirectories,…
vb.netasked Lucas Pedro 297 -
0
votes1
answer1779
viewsQ: How to grab and save many data entries in python?
Guys I’m starting to program and so far the data inputs were like this: dado_1 = str(input('Seu nome: ')) dado_2 = int(input('Sua idade: ')) dado_3 = str(input('Sexo: ')) But I was left with a…