Posts by VBobCat • 394 points
21 posts
-
1
votes1
answer53
viewsA: *ngIf is rendering two blocks
If the only difference is maxlength, would be more succinct to do this: <div> <input [maxLength]="form.get("id_banco")?.value === codigo_y ? 5 : 11" minLength="5" formControlName="conta"…
-
1
votes1
answer31
viewsA: How to filter form options by foreign key? - Django Admin
Use two underscores to reference the foreign key (more on the subject here): def get_queryset(self, request): return Resource.objects.filter(user__company=request.user.company)…
-
1
votes1
answer46
viewsA: How to reach a dropdown element through partial text in Selenium - python
For more complex filters than those provided natively, I suggest doing it manually, something like this: for option in select.options: if 'Terrano II 2.7' in option.text:…
-
1
votes1
answer43
viewsQ: How to create and maintain a separate repository for the subfolder of another repository?
Currently, I have a git repository with multiple folders, for example: /pasta1 /pasta1/subpasta1-1 /pasta1/subpasta1-2 /pasta2 /pasta2/subpasta2-1 /pasta2/subpasta2-2 /pasta3 /pasta3/subpasta3-1…
-
0
votes1
answer94
viewsA: Error 1064 Mysql Workbench
It seems that the parentheses are unbalanced in the filter conditions. Try select avg(fn_media(NotaP1, NotaP2)) as "Media Exame" from notas wherer DisciplinaId = Var_DisciplinaId and…
-
1
votes3
answers101
viewsQ: My Javascript code to change visibility does not work
I wrote a form with these elements: <div> <label for="radio_pessoa_fisica" id="label_cpf_req"> <input name="pessoa" id="radio_pessoa_fisica" type="radio" value="fisica" required>…
-
1
votes2
answers1475
viewsA: How to access a value that was placed via Javascript from a site via VBA?
The problem, in this case, is that values are placed on the page by a script executed afterward that the page loads, by the browser engine. Then, you will have to use a browser. Luckily, there is…
-
0
votes2
answers172
viewsA: Compare datagridview VB
Roughly speaking, that would be it: Sub Extrair(dgv1 As DataGridView, dgv2 As DataGridView, dgv3 As DataGridView) Dim todosOsCodigos = dgv1.Rows.Cast(Of DataGridViewRow).Select( Function(dgvr)…
-
2
votes2
answers1130
viewsA: Webservice consumption only runs in debugging under the Visual Studio IDE
The friend Julio Borges warned me that I should distribute the file app config. together with the executable to solve the problem. This is correct and therefore I will mark as answer. But next to…
-
0
votes2
answers1130
viewsQ: Webservice consumption only runs in debugging under the Visual Studio IDE
My Winforms VB.NET application consumes a webservice to perform some queries. When running in debug or release mode under the Visual Studio IDE, it works perfectly, but once it’s distributed on the…
-
0
votes1
answer23
viewsA: Strip Status Label does not display image in Image Margin (Context Menu Strip)
The question is just the different type of object. Only objects ToolStripMenuItem have access to the differentiated menu Arja to place your images. If you want this behavior, you should use this…
-
1
votes1
answer234
viewsQ: Databinding for JSON.NET objects: how to implement?
My application handles a lot of HTTP requests that return JSON data. I use the JSON.NET library to manipulate them. Here is a simulated and quite summary example of the information (there are…
-
1
votes3
answers11310
viewsA: Extract text with VBA
Suppose all your entries are in column "A" from row 1; Suppose all your Entries are in column "A" Starting at Row 1 Put the following formula in cell "B1": Place the following formula in Cell "B1":…
-
0
votes1
answer89
viewsA: Datagridview - Sum If (Sum If)
There are several ways to do this, however your question does not make very clear some details, for example how your Datagridview is populated. Is it linked to any data source, for example a…
-
1
votes1
answer193
views -
0
votes1
answer110
viewsA: How to display a database image in a Vb.net form
If your image is already stored in a hidden column of your DataGridView1, like Bitmap or Image, you just need a Picturebox: info.PictureBox1.Image = DataGridView1.SelectedRows(0).Cells(6).Value Like…
-
2
votes1
answer1317
viewsA: Import Excel data to a Visual Studio Listbox
If you are not afraid to work "in the dark", that is, without the help of Visual Studio error detection and Intellisense, you can refer to the Excel application as Object and use the same methods…
-
2
votes2
answers488
viewsA: Convert string array to string in VB
Catharina, it is not very clear the situation you have, so it is difficult to give a categorical answer. To concatenate items from an array into a single String, without separators, you can use the…
-
4
votes3
answers10165
views -
1
votes1
answer66
viewsA: Help in basic visual programming
Does your Datagridview allow the insertion of lines? You cannot hide the line that is pending for inserting new data. Property testing allrow.IsNewRow to prevent this. I don’t understand why you’re…
-
1
votes1
answer101
viewsA: Datagrid for textbox
If I understand correctly, what you want can be obtained by manipulating the event Defaultvaluesneeded: Private Sub DataGridView1_DefaultValuesNeeded(sender As Object, e As DataGridViewRowEventArgs)…