When I click button it should start generating random numbers and every time I press button I should stop generating letters in each textbox separatly.I made it like this but when I start program and click button nothing happens.
Anything can be done given enough time and resources.
And you start by taking a "big" task, and breaking it down into a bunch of simple-to-understand "little" tasks, and then you tackle those one at a time; so that everyone else can understand what you are talking about.
I have the following SQL Server query:
requirements SUM and GROUP column SOLUONG AS SL , if TRAHANG = true then bring positive column opposite quantity quantity column value is negative, no team and no columns SL sum is, if I would give TRAHANG column in the SELECT statement error. Can you help me ?
//Query warning eror
SELECT TABHDBHCT.MAVACH_SP, TABHDBHCT.TENSP, SUM(TABHDBHCT.SOLUONG)*CASE WHEN [TRAHANG] = 0 THEN 1 ELSE -1 END AS SL
FROM TABHDBHCT INNER JOIN
TABHDBH ON TABHDBHCT.MASOPHIEU = TABHDBH.IDSOPHIEU
WHERE (TABHDBH.TTTHANHTOAN = 1 OR
TABHDBH.TTTHANHTOAN = 2) AND (TABHDBH.NGAY BETWEEN '11/01/2016' AND '11/30/2016')
GROUP BY TABHDBHCT.MAVACH_SP, TABHDBHCT.TENSP
ORDER BY TABHDBHCT.TENSP;
No, because that means nothing to me.
Perhaps instead of a query that you don't explain - so we have no idea if it does what you want, or if not what it does wrong - you could give us examples of your input and what you expect as an output.
And then explain what the query does that you didn't expect or doesn't do that you did.
But most important of all is that this has nothing at all to do with C# - it's an SQL problem and shouldn't be here at all, regardless of how well or badly you try to explain it.
I'd suggest that you post here: Ask a question[^] and give sample data and a good explanation when you do.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
I use a property grid to set and display a button's properties, I want to get the file name when I changed the button's background image. how to override the click eventwhen click the open button of a popup file selection diaolg?
I can't save any changes to the text file settings.txt , but reading the file works.
The code is
private async void LedShow_Loaded(object sender, RoutedEventArgs e)
var path = @"settings.txt";
var folder = Windows.ApplicationModel.Package.Current.Installed Location;
var file = await folder.GetFileAsync(path);
var lines = await Windows.Storage.FileIO.ReadLinesAsync(file);
sliderDelay.Value = Convert.ToInt32(lines);
textBlockDelayValue.Text = lines + " seconds";
buttonSave.IsEnabled = false;
and the error message is
An exception of type 'System.UnauthorizedAccessException' occurred in System.Private.CoreLib.dll but was not handled in user code
Access is denied. (Excep_FromHResult 0x80070005) occurred
Can someone help me?
This would be right. A program normally does not have rights to write to the Program Files folder. In order to do so, you will need to elevate the rights of the application and gain administrative privileges.
The recommendation would be to use the AppData folder. Your best option would be to try and read the file from that location, and if not there, then copy it from the program files folder. Then you can read and write the file to your heart's content.
It doesn't matter how often or hard you fall on your arse, eventually you'll roll over and land on your feet.
I can not compress.I will be mad.I am not good in c#.This is my senior project.Please any body contact with me.İf you want help me please write maila address and ı will send mail my problem with my project