Posts by Denis • 944 points
68 posts
-
1
votes1
answer253
viewsQ: Drag and drop + Scroll
I am developing an application one I have 2 lists with droppable areas and a side menu with draggable items. When I use scroll the position of the item I’m dragging is changed by adding scroll…
-
0
votes1
answer33
viewsA: Drag and Drop item about components
1 - When I drag the item from the side menu, the item is shown only on the menu, when I move the mouse out of the menu it is not shown (Example in image 2) R- .sidebar-container { overflow: visible;…
-
0
votes1
answer33
viewsQ: Drag and Drop item about components
I’m developing a drag and drop feature from a side menu to a list. I have 2 problems: 1 - When I drag the item from the side menu, the item is shown only on the menu, when I move the mouse out of…
-
0
votes1
answer18
views -
0
votes1
answer18
views -
2
votes0
answers54
viewsQ: SQL Group BY SELECT CASE
I have the query below to select some records and a Boolean "Isbranch" that indicates whether to select the branch or not. The problem is that when it is false the results are not getting grouped.…
-
0
votes1
answer378
viewsA: Oracle Where case
Solved with the clause below: ((boolean = true and ConfirmedVolume > ExpectedValue) OR (boolean = false))
-
1
votes2
answers49
viewsA: SQL Latest Record FROM segnda table by Id
After a while I decided to run the first query and then retrieve the table data Stage item by item in a Loop.
-
1
votes1
answer378
viewsQ: Oracle Where case
I need to create a condition in the where according to a boolean. If boolean = true then I will select the lines with higher end values than expected (ConfirmedVolume > ExpectedVolume, etc) if it…
-
0
votes2
answers49
viewsQ: SQL Latest Record FROM segnda table by Id
I have two tables (Opportunity and Stage). I need to pick for each Opportunity the table row Stage where the StageTypeId is the same as input parameter. Table Opportunity Id, etc Table Stage Id,…
-
1
votes0
answers22
viewsQ: SELECT Invalid Identifier
I’m in trouble where I use {Routes}.[Qualquer] us subselects. The error returned is "ROUTES"." COLUMN": invalid Identifier. I tried to expose the column on select but I still have the same mistake.…
-
0
votes1
answer25
viewsQ: Subselect Orderby first line
I’m doing the select below but in the last subselect (Mileage) I’m having problems with the ORDER BY "ORA-00907: Missing right parenthesis" error, if I remove the ORDER BY it works. SELECT /* DATE…
-
0
votes1
answer43
viewsQ: Error when executing select with alias
When executing the query below using "AT" in place of "T" as alias of Join is returned the following error: "Ierrorinfo.Getdescription failed with E_FAIL(0x80004005)." OleDbDataAdapter da = new…
-
0
votes1
answer83
viewsA: Disappearing image
The problem is in the images, I changed the icons and is working normally now.
-
1
votes1
answer83
viewsQ: Disappearing image
I have 3 buttons with images that I position in the upper right corner of the screen. If I maximize the screen for only one monitor the images appear correctly, but when I maximize for two monitors…
-
0
votes1
answer215
viewsA: WPF C# datagrid create multiple column header
<DataGridTemplateColumn> <DataGridTemplateColumn.Header> <Grid> <Grid.RowDefinitions> <RowDefinition Height="*" /> <RowDefinition Height="*"…
-
0
votes1
answer178
viewsA: WPF C# Outlook Mailitem insert image in email body
I was overwriting the file. Microsoft.Office.Interop.Outlook.Attachment attachment1 = msg.Attachments.Add(@"D:\Users\chart.jpeg", OlAttachmentType.olEmbeddeditem, null, "Some image display name");…
-
0
votes1
answer178
viewsQ: WPF C# Outlook Mailitem insert image in email body
I am using the code below and can insert an image into the body of the email. How would you add more images? Is it necessary to create multiple "imageCid"? The code below only shows the last image.…
-
1
votes0
answers40
viewsQ: Modern UI Metro Chart - Mile Separator
I’m generating some graphics using Modern UI Metro Chart, but in one of the graphs the number would need to be shown with mile separator. Researching I found this discussion: Add Thousand separator…
-
0
votes1
answer41
viewsA: Different layout on the last datagrid line
I created another property with the settings I needed, so, as the others are not populated in this case, the value adjusted well. <TextBlock Text="{Binding Officer1Percentagem}"…
-
0
votes1
answer41
viewsQ: Different layout on the last datagrid line
I have a datagrid where I show values referring to the beginning and end of a period. For this, I created the columntemplate down with 2 textblocks, but in the last line, I show a value that is the…
-
0
votes1
answer215
viewsQ: WPF C# datagrid create multiple column header
I’m dynamically creating columns for a datagrid, but I need to create headers as below, some hint on how to do using c#? --------------------------------------------- | Person 1 | Person 2 | |…
-
0
votes1
answer11
viewsA: MS ACCESS Subselect "At Most one record can be returned by this subquery."
Fixed by adding PK in order by. (SELECT TOP 1 J.observacao " + " FROM tblPendenciaHistorico J " + " INNER JOIN tblPendenciaPendenciaHistorico JH " + " ON J.historicoId = JH.pendenciaHistoricoId " +…
-
0
votes1
answer11
viewsQ: MS ACCESS Subselect "At Most one record can be returned by this subquery."
Would someone know to tell me the pq of this subselect is causing the error: "At Most one record can be returned by this subquery."? (SELECT TOP 1 J.observacao " + " FROM tblPendenciaHistorico J " +…
-
0
votes1
answer1504
viewsQ: C# excel format column
I am trying to format an excel column for currency format. excelWorksheet.Range["S1", "S" + linhas].NumberFormat = "R$ #.###,00" But this causes it to format this way "RR$ 3500,00". In the cell is…
-
1
votes3
answers190
views -
1
votes3
answers190
views -
9
votes5
answers1461
views -
0
votes4
answers7923
viewsA: How do I give Enter and Run my SEARCH button
private void SetDefault(Button myDefaultBtn) { this.AcceptButton = myDefaultBtn; }
-
3
votes1
answer60
viewsA: How to create verification that will validate if Reportviewer is installed?
You can check in the register: public bool IsInstalled() { RegistryKey registryBase = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, string.Empty); if (registryBase != null) { return…
-
1
votes1
answer803
viewsA: Change path linked table ms access
// the following code requires that the project have a COM reference to: // "Microsoft Office 14.0 Access Database Engine Object Library" // create the DBEngine object var dbe = new…
-
1
votes1
answer86
views -
1
votes1
answer86
views -
1
votes1
answer276
viewsA: Where is pom.xml?
According to @M8n’s reply I changed the outlook to Java.
-
4
votes2
answers2427
viewsA: Exclude element from an array
var foos = new List<Foo>(array); foos.RemoveAt(index); return foos.ToArray(); You can try with extension method: public static T[] RemoveAt<T>(this T[] source, int index) { T[] dest =…
-
1
votes2
answers25163
viewsA: Numbers in Ascending Order C
You are checking errors? For ifs will give error for popping the array at "[a+1]" and "[b+1]": numeros[a]>numeros[a+1] and numeros[a]>numeros[b+1]. You reversed the value assignment:…
-
1
votes3
answers730
viewsA: Insert data into a vector to then print and multiply
Vc is initiating its vectors with only one value {0} instead of having 10 values: {0,11,22,31,48,54,62,71,84,99}. You better put the length of the array instead of 10: for(b = 0; b <…
-
0
votes2
answers277
viewsA: Time execution in time
TimeTrigger trigger = new TimeTrigger(10, false); TimeTrigger ^ trigger = ref new TimeTrigger(10, false); Source:…
-
4
votes0
answers197
views -
0
votes1
answer67
viewsA: What is this about Stringbuffer being synchronized ? What is the advantage of Stringbuilder?
Stringbuilder vs Stringbuffer Both are much faster for concatenating values than the common string and do exactly the same function. The main difference is that Stringbuffer is synchronized, while…
-
0
votes4
answers2496
viewsA: Do not open more than one form at the same time in C#
Using Singleton: public partial class Form2 : Form { ..... private static Form2 inst; public static Form2 GetForm { get { if (inst == null || inst.IsDisposed) inst = new Form2(); return inst; } }…
-
0
votes1
answer389
viewsA: Problem creating a database diagram in Visual C# 2010 Express
Creating a new SQL Server database To add a new database for the project click on the Project->Add new item menu. Select Service-based Database from the list of available templates. Type…
-
1
votes1
answer1044
viewsA: Convert Html to readable text using MVC C#
Try the options below: 1 String result = Regex.Replace(htmlDocument, @"<[^>]*>", String.Empty); 2 HtmlDocument doc = new HtmlDocument(); doc.LoadHtml(Properties.Resources.HtmlContents); var…
-
2
votes3
answers684
viewsA: How to correctly scroll through all items in a checkedListBox C#?
The problem is that you are not checking all the items because your "for" stops on the first try as it falls into the "if" or "Else if"; Suggestion: bool isChecked = false; private void…
-
3
votes4
answers922
viewsA: How to make a combo With the days of the month?
You can do this in two ways: Adding the 31 days: List<int> dias = new List<int>(); for (int i = 1; i <= 31; i++) { dias.Add(i); } Adding the amount of days of a specific month: int…
-
3
votes2
answers1660
views -
4
votes3
answers1090
viewsA: In programming, what is the actor model?
Actor model The Actor Model, which was started by Carl Hewitt (Mavadatt, 2002) is used in some programming languages as a method of concurrent programming. Initially, the model proposed by Hewitt…
-
9
votes3
answers8073
viewsA: How is the Global Unique Identifier (GUID) generated?
There is an article describing how Guids are generated (https://blogs.msdn.microsoft.com/oldnewthing/20080627-00/? p=21823) and also why the substring of a Guid is not guaranteed to be unique.…
-
1
votes0
answers97
views -
-1
votes1
answer421
viewsA: Currency Value to Double Conversion
If vc is using for display vc can put as in the example below: <DataGridTextColumn Header="Valor Fator" Binding="{Binding PendenciaValorFator, Mode=TwoWay, StringFormat=N,…