Member Avatar
I have a `List<double> MyList` something looking like this: 4.75/1.01/5.66/NaN/42.42/3.33 I’d like to get the minimum value of 1.01 out of it, but I get d = NaN when doing `double d = MyList.Min();` Tried, after some long internet strolls, something with LINQ to no avail. Some LINQ afictionados around …
by ddanbe 2,429 in Software Development ()
Member Avatar
The Membership table for our ASP.NET site has the encrypted passwords and password salts stored when a user logs in. The site is already served over an HTTPS connection, but we would like to give our clients the ability to download and save certain files and documents. We would like …
by zachattack05 56 in Software Development ()
Member Avatar
Hi all, I have a lot of long boring work ahead of me, unless this long shot comes up roses. I have a lot of classes I need to add a ToByteArray() method to, and I'm wondering if Visual studio 2015 has any tricks up its sleeve where I can …
by Suzie999 245 in Software Development ()
Member Avatar
show slow textbox array ie display the item and wait a few seconds to display the following c # , its gonna be like a process roundd 1 //wait a few seconds to dislplay another line for (i = 1; i <= r; i++) { label3.Text += ("round " + …
by Jose_12 in Software Development ()
c#
Member Avatar
I am having a wrapper for example. public class Student{ public string Name{get;set} public int IDNumber{get;set;} public ObservableCollection<SubjectWrapper> Subjects{get;set;} } public class SubjectWrapper{ public string SubjectName{get;set;} public bool IsSubjectSelected{get;set;} } How can I bind this to Datagrid effectively.There could be any number of subject.All students will have all subject column …
by akhil_3 in Software Development ()
c#
Member Avatar
When working with TCP client sockets I often find myself frustrated with the lack of event-driven support. I usually end up writing a whole bunch of code to determine disconnects, reconnecting, etc and I figuired it's time to just write my own class for this stuff. I figuired I'd share …
by skatamatic 371 in Software Development ()
Member Avatar
Hi all. I'm working on a client server application, eventually to be a POS (point of sale) system. The model is something like, client (till) does not have access to the database, instead it sends data to the server application, which in turn deals with the database and any other …
by Suzie999 245 in Software Development ()
Member Avatar
Hi guys i am busy developing a chat zone but currently it works if users are connected to the same network but how do i make it not run on the same network? and i developed it using c#.
by Masood_3 in Software Development ()
c#
Member Avatar
So I'm reading from a text file, that contains numbers, but i can only read as string, how can i contain it as int? string[] lines = File.ReadAllLines("C:\\Users\\Temp\\Desktop\\WriteLines.txt"); for (int i = 0; i < lines.Length; i++) { Console.WriteLine(lines[i]); }
by Callum_3 in Software Development ()
c#
Member Avatar
I am doing an application in c# and in my application I am opening some exe file like MS word, calculator so when I open the application and then I hide it I would like to create a sort of shortcut in the app so that when I click on …
by Jim_11 in Software Development ()
Member Avatar
I'm looking for a way to get the coordinates of a polygon offset x pixels within a known polygon. This seems to be a non-trivial problem, but I thought of a trick - What if I have the original polygon drawn by Windows with a thick line, the inside edges …
by JeffBennett in Software Development ()
Member Avatar
How can I freely obfuscate an Android App that I am creating with Xamarin? Proguard only works for trimming the app size, but not obfuscation. Thanks, John
by John_122 in Software Development ()
Member Avatar
Hello everyone. So I've been working on an small tool, that is using httpwebrequests, its not a bad so far I've got login function and list view loading data from site. But problem is now cookie container so i can do other things than just loading, like editing data. Uri …
by Trle94 -3 in Software Development ()
c#
Member Avatar
Hi all. I've had a good look around for info, and come up short. Does anyone know of a way to get the thread id under which a service is running, from either safehandle or unsafe handle properties of the object? wmi with Win32_Service does not appear to provide it, …
by Suzie999 245 in Software Development ()
Member Avatar
error is::Error 1 The name 'InitializeComponent' does not exist in the current context Please help me in system manager: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Net.Mail; using System.Web; using System.IO; using Microsoft.Win32; using System.Diagnostics; namespace System_Manager { public partial …
by Usman_10 in Programming ()
c#
Member Avatar
Hello, I was able to show the notepad in the Winform by using a panel and inserting it in the form like this code below and using SetParent API: [DllImport("user32.dll", SetLastError = true)] static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent); Process proc = Process.Start( new ProcessStartInfo() { //here I put …
by Jim_11 in Software Development ()
Member Avatar
Hye I'm new to c++ language. Can anyone suggest me what is the best programming software should I learn ? And how I'm gonna learn coding ?
by Azim_1 in Software Development ()
Member Avatar
Hi Guys. First of all is it possible to detect a file copying/moving within the system, I'm sure this is done in lower languages like C++ but I've tried searching but I don't seem to find not even en example, maybe it because I don't know how it correctly called. …
by Mr.M 32 in Software Development ()
Member Avatar
inheritance error is::Error 1 Inconsistent accessibility: base class 'person' is less accessible than class 'employee' using System; using System.Collections.Generic; using System.Linq; using System.Text; //person class public class person { public string name; public double CNIC_no; public void Information() { Console.WriteLine("Enter your name"); name = Console.ReadLine(); Console.WriteLine("Enter your id"); CNIC_no =double.Parse( …
by Usman_10 in Software Development ()
Member Avatar
Hi all, hope you are well. I'm trying to make my code as efficient as possible, and currently regarding logic I have a question. Is there a way, in the following single "if" query, to determine which of the conditions are true? if (mystring.Contains("left") || mystring.Contains("right")) { //which is it …
by Suzie999 245 in Software Development ()
c#
Member Avatar
Hi. I invoke method from other thread which did not create ui. Appears to work well... DVG.Invoke((MethodInvoker)(() => dgv.Rows.Add(DGVR))); But I need return value from Add method, so I do... int Index = (int)DVG.Invoke((MethodInvoker)(() => dgv.Rows.Add(DGVR))); Unfortunately I get an error... "Object reference not set to an instance of an …
by Suzie999 245 in Software Development ()
Member Avatar
Hi,my name is yawar i am a student learning c#.I have combobox,when i select an item in combobox there comes data which i want to display on labels,but my problem is there comes many data,i want to display only 3 labels when only 3 data rows comes from database and …
by yawar260 in Software Development ()
Member Avatar
Can someone give me some programming ideas to keep my knowledge up-to-date? I received a masters degree in computer science back in December and been job searching since then. I want to tell an employer something.
by Chris_38 in Software Development ()
Member Avatar
Hello Friends, Thanks for helping me for my last queries. Right now I am facing problem on how to implement Auto Update function for my WPF Desktop Application. team decided to use NetSparkle rather than ClickOnce. Any One have Information and Detail about how to use NetSparkle. Please give me …
by Gopal_4 in Software Development ()
Member Avatar
I got this error shown on the attachment here. Please can any one help me here?
by Hilal2009 in Programming ()
Member Avatar
Hey i have a basic game which requires a client to guess the number which is located on the server side, mutliple clients can access the same game. The client sends their guess this in turn passes to a middleware server then this then goes to the end server. If …
by FakeTales 13 in Software Development ()
c#
Member Avatar
I want to create a program to delete a partition using VB.NET or CSharp.NET But I have no idea how to do it. I know a big portion of VB.NET now and not this. I can´t find it on the whole internet and this website is my best bet.
by Ghast in Software Development ()
Member Avatar
How do you split a string in vba?
by Jim_12 in Programming ()
Member Avatar
Hi Dw. I'm a bit new to C# I'm used to program with VB.NET and one of my project had force me to do it with C# as I'm sure you are aware that VB.NET it lack with Windows Phone Socket programming APIs or support and C# does support it …
by Mr.M 32 in Software Development ()
Member Avatar
Hi, I would like your enlightened advice on this matter: For my next application I have to setup an interface in 3D. The interface will be an office with a desktop and some usual items like pens, papers, telephone, lamp, etc... There won't be complex animation, just slight rotation around …
by Jean-Michel in Software Development ()
c#