Lecco
Lecco
CC#
Created by harelc2005 on 5/12/2024 in #help
✅ Help with a project
hey @harelc2005 I am a software developer. I can work with you.
11 replies
CC#
Created by harelc2005 on 5/10/2024 in #help
✅ adding a search option to a gridview table
nice
9 replies
CC#
Created by harelc2005 on 5/10/2024 in #help
✅ adding a search option to a gridview table
can you explain more detail. I can't catch anything from your post.
9 replies
CC#
Created by Ares on 2/28/2024 in #help
✅ [ASP.NET CORE] Error when trying to run docker image i pushed to dockerhub
how is about?
135 replies
CC#
Created by Ares on 2/28/2024 in #help
✅ [ASP.NET CORE] Error when trying to run docker image i pushed to dockerhub
me too.
135 replies
CC#
Created by Ares on 2/28/2024 in #help
✅ [ASP.NET CORE] Error when trying to run docker image i pushed to dockerhub
or try it :all of your code rewrite in Main method
135 replies
CC#
Created by Ares on 2/28/2024 in #help
✅ [ASP.NET CORE] Error when trying to run docker image i pushed to dockerhub
okay.then let me know.
135 replies
CC#
Created by Ares on 2/28/2024 in #help
✅ [ASP.NET CORE] Error when trying to run docker image i pushed to dockerhub
I think if you add static Main method in your code you can fix error like: public partial class Program { public static void Main(string[] args) { // Entry point of the program } }
135 replies
CC#
Created by Ares on 2/28/2024 in #help
✅ [ASP.NET CORE] Error when trying to run docker image i pushed to dockerhub
but in your code there is node Main function
135 replies
CC#
Created by Ares on 2/28/2024 in #help
✅ [ASP.NET CORE] Error when trying to run docker image i pushed to dockerhub
all program begins with Main function
135 replies
CC#
Created by Smoothy on 2/28/2024 in #help
How do i handle an event
Change your code like: private void BotDisconnected(object sender,Events.BotStringEventArgs e){ Console.Write("Disconnected");} bot.OnDisconnected+=this.BotDisconnected();
10 replies
CC#
Created by Pandetthe on 2/28/2024 in #help
WPF custom click event
In WPF, you can achieve this by handling the PreviewMouseLeftButtonDown or PreviewMouseRightButtonDown event at the container level and then determining which control, if any, is at the specific coordinates you are interested in.
2 replies
CC#
Created by !Rushaan on 2/28/2024 in #help
Out of memory error
How is about?
19 replies
CC#
Created by !Rushaan on 2/28/2024 in #help
Out of memory error
How is about?
19 replies
CC#
Created by !Rushaan on 2/28/2024 in #help
Out of memory error
try this code.
19 replies
CC#
Created by !Rushaan on 2/28/2024 in #help
Out of memory error
private void VideoSource_NewFrame(object sender, NewFrameEventArgs eventArgs) { try { using (Bitmap bitmap = (Bitmap)eventArgs.Frame.Clone()) { Application.Current.Dispatcher.Invoke(() => { cameraImage.Source = BitmapToImageSource(bitmap); });
BarcodeReader barcodeReader = new BarcodeReader(); Result result = barcodeReader.Decode(bitmap);
if (result != null) { string downloadsPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); string initialDirectory = Path.Combine(downloadsPath, "QR Codes");
if (!Directory.Exists(initialDirectory)) { Directory.CreateDirectory(initialDirectory); }
DateTime currentDateTime = DateTime.Now; string fdt = currentDateTime.ToString("yyyy-MM-dd HH_mm_ss"); string fileName = "QRCode " + fdt + ".png";
fileName = CleanFileName(fileName);
string path = Path.Combine(initialDirectory, fileName); bitmap.Save(path, System.Drawing.Imaging.ImageFormat.Png); videoSource.NewFrame -= VideoSource_NewFrame; videoSource.SignalToStop();
System.Threading.Tasks.Task.Run(() => { Application.Current.Dispatcher.Invoke(() => { cameraImage.Source = null; videoSource = null; videoDevices = null; myframe.frame.Content = new Scanned(bitmap, path, false, false); }); }); } } } catch (Exception ex) { MessageBox.Show($"Error: {ex.Message}", "An Exception occured"); } }
19 replies
CC#
Created by !Rushaan on 2/28/2024 in #help
Out of memory error
code :
19 replies