|
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)
|
|
|
|
|
Hello All ,
I have requirement that User will have list of Directories . the moment user selects a Directory
Thread s hould be started and It s hould display List of Txt files name and dates in Grid .
User can change the directory and the thread should show the files of that directory in grid
I have done the code like this
public static DataTable GetFilesinDirectory()
{
DriveInfo Drive = new DriveInfo(strDriveName);
DirectoryInfo[] DirectoryList =Drive.RootDirectory.GetDirectories(strDirectoryName);
DtFilesList.Rows.Clear();
// DtFilesList.AcceptChanges();
FileInfo[] FilesList = DirectoryList[0].GetFiles("*.txt");
foreach(FileInfo ObjInfo in FilesList)
{
DataRow drFileInfo = DtFilesList.NewRow();
drFileInfo["Name"]=ObjInfo.Name;
drFileInfo["CreationTime"]=ObjInfo.CreationTime;
drFileInfo["Extension"]=ObjInfo.Extension;
drFileInfo["LastWriteTime"]=ObjInfo.LastWriteTime;
DtFilesList.Rows.Add(drFileInfo);
}
return DtFilesList;
}
This method is assigned to thread
strDirectoryName will be updated once user selects the Directory
But problem is Since it is Static method I cant acces the Grid then how should i Bind ?
|
|
|
|
|
Hi,
if static were the problem (I'm not really sure), why don't you drop the static keyword? A thread does not require its runner method to be static.
|
|
|
|
|
Okie Let me tell the requirement ..
A thread should be there which will pool a folder for every 5sec and show the list ofiles in grid with the new changes
|
|
|
|
|
I see no problem (maybe that's because I don't read code when it is not in PRE tags).
Try to be specific: what is it that happens and you don't like; or you would like to happen but it doesn't?
And use PRE tags.
|
|
|
|