|
MrJJKoolJ wrote:
user class
MrJJKoolJ wrote:
user objects
MrJJKoolJ wrote:
user collection
What is a "user" class, object or collection? Do you mean one that isn't part of the .NET Framework? For the rest of my reply I'll assume that is what you mean.
MrJJKoolJ wrote:
I would think u could just call the user object and get your info from that just as easily then going the extra step to put the user object into a user collection.
There are many reasons for putting objects into a collection despite the fact they will exist elsewhere. Mostly this is to do with ease of access in the other location, the ablility to iterate over the objects and perform the same operation on all of them, the ability to create a varying number of objects and still reference them and so on.
Do you want to know more?
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
|
|
|
|
|
Hello
How can i change the title bar color?
i have using MSDN sample code but
no use link below
http://msdn.microsoft.com/library/default.asp?url=/libraray/en-us/sysinfo/base/changing_the_color_of_window_elements.asp
|
|
|
|
|
You either change it for the whole system using the Display control panel, or you complete draw the window frame yourself, which requires knowledge about the Window APIs and P/Invoke. If you want to venture down that route, I highly suggest you read all of Interoperating with Unmanaged Code[^] (pay close attention to the marshaling topics) and search this site for examples of owner-drawn window frames.
BTW, the link doesn't work.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
I have a usercontrol with a few controls on it. In the load of my usercontrol I read the settings from the registry. I also want to write these settings back to the registry when my usercontrol is unloaded. But there is no such thing as unload.
Can anyone tell me which event to use to write these settings to the registry?
|
|
|
|
|
|
That wouldn't work. Disposed happens after the control is disposed, so his controls that contains the values and any fields or properties that might reflect those values are already gone.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Handling the Disposed event is too late. You need to override Dispose(bool) , persist your data, then call base.Dispose(bool) like so:
protected override void Dispose(bool disposing)
{
PersistToRegistry();
base.Dispose(disposing);
} That way the child controls and other data is disposed after you get the data contained within. Once those controls are disposed you can't get their data (because it's been disposed).
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Hi,
my chat client is easily connecting to the Server program using Sockets (in c-sharp). But
now i want to provide the functionality in my chat client program to be able to connect
through proxy. How can I do this.
Besides, I see in MSN, that there are 3 types of Proxy setting in it i.e.
- SOCKS VERSION 4
- SOCKS VERSION 5
- HTTP Proxy
would it make a major difference in the client side coding if i have to support all the
above types?
A prompt reply will be appreciated.
Regards,
Kamran
|
|
|
|
|
Your protocol has to be defined to work with proxies - it isn't automatic. The only advice anyone can really give you is to read the RFCs from http://www.ietf.com/rfc[^] for those proxy types to determine how you could include them along with your protocol definition.
HTTP, for example, allows for proxies. This is why the HTTP-related classes (like HttpWebRequest ) support proxies (a la the WebProxy ) in the .NET BCL. It's common enough to warrant inclusion in the .NET BCL. How other protocols work with proxies is up to the protocol authors. Many typically work the same (there's a lot of HTTP-like protocols, like SMTP, DICT, etc.) so I'd imagine the proxy support works the same, making it easy to use the same proxies.
What I'd recommend is using a good OO design to encapsulate your Socket client in a class and actually make use of the WebProxy for consistency (so people can reuse the same proxy; WebProxy also defaults to using the Internet Explorer settings for proxies, making it easy for your users to default to settings they might've already configured). You still need to work out how it'll work with your chat protocol, though.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
From what I can tell, the MDIList property that you used to set on a menu to make it display an MDI window list has been changed to become a MdiWindowListItem property on the MenuStrip itself
I set this to my Window menu, and it works fine when I open the first child window - Screenshot 1[^] but when I have more than one child it goes out of control: Screenshot 2[^]
(basically every time a new child window is created, it seems to add new menu items from scratch, so the existing items get left behind)
Am I doing something drastically wrong here, or is this just incomplete .NET 2.0 stuff? (I've searched everywhere for documentation on this, but haven't been able to find anything!)
--
Help me! I'm turning into a grapefruit!
Phoenix Paint - back from DPaint's ashes!
|
|
|
|
|
There's a reason they call it ".NET 2.0 Beta 1". Beta 2 is to be released early next year and you could probably expect it to be fixed by then. There's been a lot of bugs that the feature teams have been getting through so build a solid framework.
Honestly I've never used the MdiWindowListItem in a winbar, though, so I don't know if this is a common problem or if your environment enables such a bug. Therefore, I suggest you go to http://lab.msdn.microsoft.com/vs2005/[^] and search to see if this has been reported. Keep the query simple, like just "MdiWindowListItem".
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
|
benjymous wrote:
Any idea why those msdn pages aren't picked up by google?
http://lab.msdn.microsoft.com/robots.txt[^]
Again, it's beta so they probably don't want anything indexed. Some web crawlers cache for a long time.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Hello,
I get this error when the program compiles, when the message box asks me to continue i can click yes and the program will still run. However, l would like to get rid of this error.
The only things l have done before l got this error was changing the startup object in the project properties and changing the Void main into another form. Thats all l think.
Could not open incremental build file 'C:\IBS LibrarySystem\LibrarySystem\obj\Debug\LibrarySystem.exe.incr' for writing
Hope someone can help me,
Steve
|
|
|
|
|
While all those changes should've touched the files so that they get rebuilt and re-linked correctly, that apparently hasn't happened.
Use Rebuild instead of Build and see if that sorts out the problem. That will clean (delete) the project targets and rebuild again.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Hi,
I am using Process.Start("file.pdf") to launch the default pdf reader and open a file. This works the majority of the time. However during deployment I came across a few computers where this does not work. It does absolutely nothing. The reader is not launched and the file is not opened. However, on those computers if they manually launch their reader and then run the above code the file gets opened.
Has anyone come across this problem before? Does anyone know what is happening?
It is not a problem with the reader not being associated with the pdf file format. I know this because when they double click a pdf file from explorer it opens just fine.
Thanks,
Karl
Karl Baum
|
|
|
|
|
And what exception handling do you have around Process.Start ? Are you just catching exceptions and not doing anything with the exception data (like displaying a user-friendly error, which is the least you should do)?
Process.Start - the way you're calling it - uses ShellExecuteEx , the same API that the Windows Shell uses when you double-click files. There's really no difference.
So then you should ask yourself what the other factors may be. Are you expecting that the current working directory will be the directory in which the EXE is located? This doesn't have to be the case. The working directory can be any directory.
So, if this was some sort of help file and you expected it to be in the same directory as your application, then you should construct the fully-qualified path using either the Assembly.Location property or Application.StartupPath like so:
string path = Path.GetDirectoryName(Application.StartupPath);
path = Path.Combine(path, "help.pdf");
Process.Start(path);
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Thanks for your response. I am dealing with exceptions and none are getting thrown. It is also not a problem with the path. I can be sure of this because if you already have your reader open then the code will open the pdf file in your reader.
Why would Process.Start behave differently when the reader is already open? This may not be a problem with my code, it may be a problem with the .NET framework, the windows API, or even Adobe's stuff. I am unable to find the cause.
Thanks
Karl
|
|
|
|
|
Some applications - like Office and Adobe Acrobat/Reader - register documents (file monikers) into the ROT (running object table) associated with the application. When a new document is opened, the file persistence handler (typically; this is actually implementation-specific, but is a fundamental technology in COM) checks for running objects and if it is found, activates it. Since the application is running, it doesn't need to be opened again. The new document is opened and registered in the ROT. If this was an existing document, it activates it.
It still shouldn't behave differently, however.
Perhaps try being more explicit, like so:
ProcessStartInfo psi = new ProcessStartInfo("file.pdf");
psi.UseShellExecute = true;
psi.Verb = "open";
Process.Start(psi); Depending on the operating system this could yield different results. On Win96 the verb "open" is always assumed where with NT its whatever the default is (which could be different than "open"). You can find this out by looking at the File Types tab in the Folder Options control panel.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Thanks for your help.
I will attempt this to see if it has any impact.
Karl
Karl
|
|
|
|
|
how can i to insert or paste d dynamic image (gif) into a richtextbox? not a bitmap etc.
|
|
|
|
|
|
I perform the select statement on the table TBRECEIPTS
I receive:
There are for fields in the TBRECEIPTS
RC_PAYMNB Number(10)
RC_CASHNB Number(8)
RC_DATE Varchar2(19)
RC_DATA Varchar2(2500)
Now I would like to perform with the information below an insert but I need help.
RC_PAYMNB RC_CASHNB RC_DATE
---------- ---------- -------------------
42884297 888888 10-10-2004
RC_DATA
-------
T S T T
IND.SQUARE/EDWARD ST
VAT REG# 100476
Bill Payment 2004/07/1 1.00
Account: 91013698-0000
Chantal Rigaud
A/c Balance: 2,534.33
TOTAL 1.00
TENDERED
Cash 1.00
TOTAL TENDERED 1.00
CHANGE 0.00
Payment No: 42884297 Cashier: 888888
18-Oct-2004 09:12
IF YOU NEED TO KNOW
HOW MUCH YOU OWE !
CALL 800-BILL (2455)
|
|
|
|
|
And this has what to do with C#?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
No Call To Be RUDE, I refuse to be spoken to like that! Would you like to be spoken to when you need help.Your mother didnt teach you manners did she, shame on her!
Dave Kreskowiak wrote:
And this has what to do with C#?
|
|
|
|