|
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.
:->:->:->
|
|
|
|
|
Hello,
I have a destructor in my form, but when I set a break point inside of it, it never breaks.
Am I not supposed to write a distructor for forms?
Is this behavior by design?
How than, should I release resources held by the form?
Thanks in advance,
Shy.
|
|
|
|
|
There aren't any destructors in .NET, as there are no reference counters. The destructor syntax is instead used for a finalizer. The finalizer is called by a background process after the garbage collector has recognised that the object can be freed, but as the form object is one of the last objects to go when you close the application, there will rarely be any garbage collection that can place it in the queue of objects to be finalized.
You should use the events of the form that occurs when it's unloaded, to free it's resources.
---
single minded; short sighted; long gone;
|
|
|
|
|
I see...
And what about non-form classes?
Should I use distructors?
Or maybe leave the destructors out, and keep my Dispose() implementations?
|
|
|
|
|
As Guffa mentioned, C# doesn't have desctructors, but it does have finalizers. Unfortunaately, you use the C++ destructor syntax to declare the finalizer.
Writing a finalizer is usually not required and there are very specific rules that should be followed. Implementing IDisposable is usually only necessary when your class maintains unmanaged resources.
Look at this article[^] for a more in-depth discussion.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
Thanks a lot guyz...
Happy programming to you all!
|
|
|
|
|
shyagam wrote: Should I use distructors?
You might want to re-read what Guffa said. He explicitly said there were no destructors in .NET. There are Finalizers which are similar, but not quite the same thing.
If your class holds onto any large amounts of memory, or unmanaged resources or any class that does then you should implement the IDisposable interface. In the Dispose method you release the memory, or the unmanaged resource or dispose the class. In the finaliser method you call Dispose - but that is a last resort. You should not really allow the finaliser to be called at all as it is inefficient. Normally you should Dispose of any object that implements the IDisposable interface.
shyagam wrote: And what about non-form classes?
Any object of a class that implements IDisposable .
shyagam wrote: Or maybe leave the destructors out, and keep my Dispose() implementations?
Keep the finalisers (not destructors). They call Dispose(). The Dispose method does the clear up. You keep the finaliser as a safety mechanism in case the call to Dispose was forgotten about.
|
|
|
|
|
I see...
I'll read some articles about the subject, to get a deeper understanding.
Thanks again.
|
|
|
|
|
Colin Angus Mackay wrote: If your class holds onto any large amounts of memory, or unmanaged resources or any class that does then you should implement the IDisposable interface.
Actually, using large amounts of memory is not any reason to implement the IDisposable interface (unless it's unmanaged memory, of course).
The garbage collector doesn't sort out the objects that can be freed, it sorts out the objects that needs to be kept, and frees everything else. If you remove the reference to an object, the object and all it's members will be garbage collected all at once. As there are no references to the object, the references that it contains are not considered when sorting out the objects to keep. By removing the reference to an object, you also effectively remove all references that it contains.
---
single minded; short sighted; long gone;
|
|
|
|
|
And why would it be? Even after closing the form you may want to show it again.
|
|
|
|
|
It's the main form, so when its closed, the application is closed.
|
|
|
|
|
I'm writing a client/server application, and I want the client pc to shutdown when
receiving a specific value from server, so my question: is there any way to shutdown
or restart computer from within C# code?.
|
|
|
|
|
You can use the API call, or WMI to do it:
http://pinvoke.net/default.aspx/advapi32/InitiateSystemShutdown.html?diff=y
WMI is shown in VB at the bottom. Easy enough to convert that to C# though.
--
Real programmers don't comment their code. It was hard to write, it should be hard to understand.
|
|
|
|
|
in my solution , when i devide two number , the result is '2.3333333333333333333333333333', so it got error!!!
Parameter value '2.3333333333333333333333333333' is out of range.
how could i manage it?!!
any help could be useful.
|
|
|
|
|
What are you trying to do with the parameter? Show some code, it will help us see what you are doing.
|
|
|
|
|
I've made a windows service and give it the task to write current time at regular intervals of 5 sec.
It worked good at debug mode but when I starts the service from service management it do nothing.?? Al the code that is written in the service start method is correct. Any suggestion??
Please fast.
Thanks
Syed Shahid Hussain
|
|
|
|