|
hi all,
i am trying to programatically get a list of connected users that in are the current
ftp sessions tab in iis6.
i cant find anything on the net that seems to be able to help me, i've
looked at System.Net and various other places but there seems to be
nothing out there.
there are loads of posts about creating an ftp client however i want
to be able to talk to the iis ftp ( i already create ftp virtual
directories and user accounts on the fly and i want to know which of
these users in currently logged in and disconnect them if needed)
any help would be appreciated!
cheers
john
|
|
|
|
|
|
thanks the for reply dave, i've been using the System.DirectoryServices namespace to create and delete iis ftp virtual directories, get/set the logfiledirectory, get/set the AccessRead and AccessWrite properties etc etc and have had a rummage around adsi and wmi but the getting ofthe connected users just doesnt seem possible with any of those api's
but i've just found the following post about getting a list of tcp connections on a machine which i'm hoping might take me in the right direction. loop through all (open) tcp connections on port 21 and then do something with result to map that connection back to the windows user the connection belongs to... out of my comfort zone to be honest!
http://devdistrict.com/codedetails.aspx?A=397
If i get anywhere with it i'll post my findings if anyone is interested.
cheers
john
|
|
|
|
|
I have a database app which runs OK so far except for when I close the form by clicking the X the myprogram.exe process is left still running. Subsequent debug runs fail to start because the myprogram.exe file is still open and can't be updated by the debugger. Even if I quit VS2005 completely the myprogram.exe process is still running and has to be killed manually in Task Manager.
This program utilizes a Pervasive v.9 ODBC driver to an existing database on a server. I used the Querry builder and drag/drop to build the form which uses a DataGridView control and several label controls to display the rest of the row that is selected in the DataGridView control.
Is there something I should be doing to properly close everything down in re: the ODBC driver?
Thanks
Edwin
|
|
|
|
|
It sounds to me that you have a threading-problem, with a thread running when you close the form. This will result in the form disappearing, but another thread keeping the process alive.
Try the Closing event for the Form, and make sure you shut down all threads (might be some database-shutdown command or similar to shutdown/disconnect teh database correctly).
Internet - the worlds biggest dictionary
|
|
|
|
|
Does anyone know of a downloadable C# Class Library? I need to have one for my other computer, which doesn't have internet.
-----
Note: *** Never give me an answer have anything to do with Visual Studio. I don't have this program, and it'll be that way for a long, long time. ***
|
|
|
|
|
max29297 wrote: Does anyone know of a downloadable C# Class Library?
Uhhh... That does what?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Oh sorry. What I'm looking for is something like this[^], that'll tell me every member of every class in every namespace, and will tell me how to use it. So, more of a reference. You should know what it is when you follow the link... Oh yeah, I think it's called documentation.
The problem with that one is that it is several webpages, and I can't save every one of them to my harddrive.
-----
Note: *** Never give me an answer have anything to do with Visual Studio. I don't have this program, and it'll be that way for a long, long time. ***
|
|
|
|
|
max29297 wrote: What I'm looking for is something like this[^], that'll tell me every member of every class in every namespace, and will tell me how to use it. So, more of a reference. You should know what it is when you follow the link... Oh yeah, I think it's called documentation.
It would have been clearer had you originally said "Class Library Reference" or "Documentation" in your original post, smart-ass.
max29297 wrote: The problem with that one is that it is several webpages, and I can't save every one of them to my harddrive.
Then order the MSDN Library subscription[^]and you'll get the entire 2GB of documentation and articles on a DVD that you can install on your machine. It's only $199 for a year...
Oh yeah, I forgot to mention that Microsoft is the only source for this documentation.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi Max,
did you consider "Mono documentation" ? I am not familiar with it, but Google
seems to know about it...
Luc Pattyn
|
|
|
|
|
I thought I remembered something somewhere that said he was using .NET 2.0...?
I don't think the Mono doc's covered most of the newer stuff.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave Kreskowiak wrote: I thought I remembered something somewhere that said he was using .NET 2.0...?
I dont remember.
Maybe here is an idea for CP: provide a way for the user to add some basic info like this
in a structured way to his profile (and show it as a tooltip when hovering the avatar
on the message boards...)
Dave Kreskowiak wrote: I don't think the Mono doc's covered most of the newer stuff
I dont know, but in general that's one of the major problem with clones...
Luc Pattyn
|
|
|
|
|
Luc Pattyn wrote: Maybe here is an idea for CP: provide a way for the user to add some basic info like this
in a structured way to his profile (and show it as a tooltip when hovering the avatar
on the message boards...)
Great idea! But given the quality of the questions around here, and where they tend to end up , do you really think that would help??
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi Dave,
I dont mind there are questions at different quality and knowledge levels,
but I would welcome means that contribute in understanding the circumstances
and providing the most appropriate replies.
Luc Pattyn
|
|
|
|
|
The point was that the users, for some reason, can't read, or completely ignore the "Please do not post programming questions in the Lounge" part, so how are we going to get them to fill in a profile correctly?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Yep. Maybe we can achieve a state where more accurate profiles are known to be
more likely to yield good replies ? Or could CP somehow let profiles evolve
automatically ? or should peers have an opportunity to influence/judge ?
Starts to sound like a topic for the lounge now...
Please feel free to take it further; I'm sure your arms are longer than mine.
Regards.
Luc Pattyn
|
|
|
|
|
|
No, he is a student using a Mac without Internet and without permanent CD/DVD.
So you cant "sell" him any Visual stuff, that's why the footnote is there.
Luc Pattyn
|
|
|
|
|
|
Hi, I'm what you'd consider a visual c# newbie, as well as just starting out in oop programming.
I need help or a point in the right direction in achieving the following:
I have designed the following database tables which will be used to manage Users/Groups/Permissions throughout my client app;
SEC_USER
USER_ID
CREATED_DT
CREATED_BY
MODIFIED_DT
MODIFIED_BY
ACTIVE_FLG
USER_NAME
USER_PW
USER_EMAIL
FIRST_NAME
LAST_NAME
POSITION_TITLE
DEPARTMENT_NAME
USER_NOTES
PW_HINT_QUES_1
PW_HINT_ANSW_1
PW_HINT_QUES_2
PW_HINT_ANSW_2
PW_HINT_QUES_3
PW_HINT_ANSW_3
LGN_EXPIRES_FLG
LGN_EXPIRY_DT
USER_LOCKED_FLG
USER_LOCKED_DT
LOGGED_IN_FLG
LOGGED_IN_SESSIONS
LAST_LOGIN_DT
LAST_LGN_APP_VERSION
LAST_LGN_APP_BUILD
LAST_LGN_CLIENT_AUTH_NAME
LAST_LGN_CLIENT_MACHINE
SEC_GROUP
GROUP_ID
CREATED_DT
CREATED_BY
MODIFIED_DT
MODIFIED_BY
ACTIVE_FLG
GROUP_CD
GROUP_NAME
SEC_PERMISSION
PERMISSION_ID
CREATED_DT
CREATED_BY
MODIFIED_DT
MODIFIED_BY
ACTIVE_FLG
PERMISSION_CD
PERMISSION_NAME
SEC_USER_GROUP
USR_GROUP_ID
CREATED_DT
CREATED_BY
MODIFIED_DT
MODIFIED_BY
ACTIVE_FLG
USER_ID
GROUP_ID
SEC_GROUP_PERMISSION
GRP_PERMISSION_ID
CREATED_DT
CREATED_BY
MODIFIED_DT
MODIFIED_BY
ACTIVE_FLG
GROUP_ID
PERMISSION_ID
SEC_USER_GROUP_PERMISSION
USR_GRP_PERMISSION_ID
CREATED_DT
CREATED_BY
MODIFIED_DT
MODIFIED_BY
ACTIVE_FLG
USER_ID
GROUP_ID
PERMISSION_ID
PERMISSION_ENABLED_FLG
METHODS
VerifyUserLogin()
PerformUserLogin()
IsLoginExpired()
IsUserLocked()
RecoverLogin()
ChangePassword()
GeneratePassword()
GetClientInfo()
PerformUserLogout()
AddUser()
CopyUser()
DeleteUser()
LockUser()
UpdateUser()
UnlockUser()
GetAppInfo()
ValidateUser()
First off, will the table design above cover all the methods (listed above) in which i wish to invoke at some point or another within my client app? Secondly, are there any other methods that can be introduced as per my table design? Finally, ultimately, are there any articles or anything of that nature that can help me in designing a robust custom membership object?
Any help would be greatly appreciated.
Thanks in advance,
spar108r
|
|
|
|
|
I am making a window for editing text in a textbox control, but I am having a problem... Here are pictures of my window before and after resizing: Image[^] As you can see, the SizeGripStyle object goes underneath the text box. This is how I am coding my window:
<br />
class FileWindow : Form {<br />
TextBox test;<br />
<br />
public FileWindow() {<br />
test = new TextBox();<br />
test.Multiline = true;<br />
test.WordWrap = false;<br />
test.ScrollBars = ScrollBars.Both;<br />
test.Location = new Point(0, 0);<br />
test.Size = new Size(this.Width-8, this.Height-33);<br />
test.Font = new Font("Courier New", 10);<br />
<br />
this.Controls.Add(test);<br />
this.Resize += new EventHandler(ResizeTextBox);<br />
this.SizeGripStyle = SizeGripStyle.Show;<br />
}<br />
<br />
public void ResizeTextBox(object sender, EventArgs e) {<br />
test.Size = new Size(this.Width-10, this.Height-35);<br />
}<br />
}<br />
(Sorry for having a whole bunch of code; I figured any of it might have been the problem)
Any ideas on why my window is doing this?
-----
Note: *** Never give me an answer have anything to do with Visual Studio. I don't have this program, and it'll be that way for a long, long time. ***
|
|
|
|
|
Hello everyone,
I have created a media player using Visual C# in .NET Framework 2.0 which currentlt can be controlled by Hotkey and the Window Menu List. I would like to add a nice looking control panel to it which seats right on the middle button of the main window and be sort of 50% transparent.
Can someone tell me what is the best way to deal with this little project?
Khoramdin
-- modified at 12:38 Saturday 10th February, 2007
|
|
|
|
|
i need to knew what is the difference between bitmap and image in C#?
thnx
|
|
|
|
|
Bitmap is simply a concrete implementation of the abstract Image class.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
The Bitmap class inherits from the Image class. The Image class provides methods for loading and saving vector images (metafiles) and raster images (bitmaps). The Bitmap class expands on the capabilities of the Image class by providing additional methods for creating and manipulating raster images.
:->:->:->
|
|
|
|