|
Where and what is the form's constructor or Load handler?
My code is made up of bits and pieces here and there, so i dont know it inside-out. Just a brief understanding.
[EDIT] - never mind, i have found it and got it working
Thank you so much for the help 
|
|
|
|
|
mostofmonty wrote: Where and what is the form's constructor or Load handler?
mostofmonty wrote: never mind, i have found it
Seems you are pretty C#-ignorant then, and just trying your luck at random. I suggest you do yourself a favor, buy and study a book on C#.
|
|
|
|
|
I do apologise for being new to C#.
I am interested in learning to write programs in C#, and am hoping to pick up as many things as i can through the questions i ask on this forums. Even if they are stupid.
I have my program working thanks to the help on this forum,
So again, i appreciate all the help
And i apologise for any future stupid/ignorant questions.
|
|
|
|
|
No need to apologize, everyone is new to something at some point.
However, rather than spending 100+ hours at asking 100+ questions and reading and testing all the answers, good and bad ones, you'd better take this advice[^]. And then ask more intelligent questions when they arise. Which we will be glad to answer.
|
|
|
|
|
I was considering buying a book on C#, but i shall take your advice and make it a priority
Thanks everyone for the help on my ignorant question, wont happen again 
|
|
|
|
|
|
mostofmonty wrote: help on my ignorant question
No worries! Beginner questions are allowed, but real basic stuff should be known before being let loose with Visual Studio (or one of the Express Editions) and an internet forum IMO.
Don't be afraid to ask. A good book, and working through (and understanding) some online tutorials is a must though. We will happily help whilst you learn, but not hold your hand if you understand what I mean.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Hi,
I am working in a INSIGHT project. Multipule Users can logging on that tool but after some time the session got Expired. So once the session got expired the Login Page Popuped or Floating on that Page and will back on same page after login successfully.
Problem is that how could I do this. if in Javascript then How I check the Login crediential with Database ??
Please help me.
|
|
|
|
|
What on earth has any of what you've written have to do with C#?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
To support such function:
Can draw three column a, b, c with the images.
User can use the scroll bar to control the column a,B
Column a and b are opposite. Column c is static.
User can draw 10 rows of column a,b to the column c.
then the program can draw the lines from the row of colun A to the row of column B.
Does anyonthe know the user control can do this? If I design this user control?
how to achieve it?
thks
|
|
|
|
|
What?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I need one user control that can support user draw.
Column A Column B
A1 B1
A2 B2
A3 B3
A4 B4
A5 B5
A6
A7
A8
A9
A10
1.When user can select 3 rows of Column A and draw to row B2 of column B, three line will be created from a1 -> b2, a2 -> b3, a3 -> b4.
2.There are 200 rows in Column A, A1 -> A200. User can uses scroll bar to control which rows of column a to show.
|
|
|
|
|
AFAIK there is no control that does this, or at least I could not find one.
What you are describing sounds rather like a graphical database designer or query designer works.
If you google for c# database designer or c# diagram designer, you might well find something that you can get useful code from, or at least ideas.
It seems to me that you will need to build your own control, and if so I would suggest that you use ListBox es for ColumnA and ColumnB. You will need to research Drag and Drop, and for drawing the links I would suggest that you create a class that contains the starting listbox, the item (A1, A2 etc.) from that box and the same for the ending listbox. Then when a link is needed create a new instance of the class and add it to a list. when your control needs to paint itself, you just iterate over the list drawing a line from the start listbox to the end listbox.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
thanks Henry,
I will try it.
|
|
|
|
|
Hi.
Can we install a Service with a WinApp ?
Could you please guide me ?
Thanks a lot.
|
|
|
|
|
I've been doing a lot of service installations from a WinForm, and I prefer to use the methods in advapi32.dll via p/Invoke. Check out the methods:
OpenSCManager
CreateService
CloseServiceHandle
|
|
|
|
|
|
|
Hello!
Is it possible to lit the num, caps and scroll lock light on a regular keyboard with a C# program?
|
|
|
|
|
|
|
You can read the state easily, but to set/toggle it requires some PInvoke I believe. There's a MS article here[^] with code in VB as an example.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
In case you haven't solved your issue completely - I have posted an article on this subject that is a full solution, dealing with many problems that I encountered that you may not yet have come across.
Thanks for your post, it inspired the article!
Toggle Keys Controller Article[^]
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Thanks!
Tried to understand your solution, but it's maybe to advance for me, not much code-comments either.
But your solution proves that it's possible to do lit the keyboard lights with a C# program. Now I know it's possible 
|
|
|
|
|
If you either copy the files in the Keyboard project into your own, or add a reference to the Keyboard.dll file to your solution, you don't need to worry about how I've implemented it - you can just use the properties, events and method(s) of the ToggleKeyController class as I have done in the demo (if you look at the code in FormMain.cs).
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|