Click here to Skip to main content
15,888,454 members

Comments by Robert Welliever (Top 111 by date)

Robert Welliever 30-May-17 10:30am View    
You can accomplish your goal by creating a second Form in the designer, then set its "Topmost" property to false. Then in your first form, you just open it:
Form newForm = new Form();
newForm.ShowDialog(); // makes modal popup
newForm.Show(); // makes non-modal popup
Only instead of explicitly using "Form", replace with the name of your particular Form object.
Robert Welliever 26-May-17 19:03pm View    
In my opinion, if you are a beginner your best bet is to download a free Visual Studio Express version, and start a new C# desktop app. I've handled a number of tasks similar to yours and have found using an OLEDB adapter to connect to the file will serve you best. Once read, you can manipulate it in memory as a DataTable, and you can use something like a DataGridView to allow users sorting/paging. On a side note, the 10MB file you mentioned is relatively small. Size shouldn't be a concern.
Robert Welliever 26-May-17 17:05pm View    
I see the solution was selected, but the solution did not address your question accurately in that checking IS NULL and using the ISNULL function are two different things. You might want to understand that nuance. Also on a best practices level, don't use !=, instead use <>. Many large organizations (like Microsoft) deprecated the use of != (although still supported). Although I'm not entirely sure why it was deprecated (maybe SQL-92 Standard?) I wouldn't create habits against best practices without cause.
Robert Welliever 25-May-17 21:33pm View    
That's good you found your own solution, but I had to mention one thing to possibly save you from future embarrassment. You've mentioned Java twice but Java never enters the picture. You are writing bits of Javascript to parse HTML text to generate DOM objects in that code.
Robert Welliever 25-May-17 20:56pm View    
Just curious, if the employees who don't have a manager are null, how else are you designating employees who do not have a manager? It seems you would only need to check for null. If you are just checking for null you might go with what is most common, i.e.:

SELECT * FROM Employees WHERE ManagerID IS NULL