|
SourceSafe 2007 was released with the latest version of Visual Studio. It has some minor enhancements and fixes and is still adequate for a very small organization. It is supposed to have a remote, non-file system based, access ability, but I never got around to testing it.
MS also has what they call Team System, which is a full blown configuration management and bug tracking system. We evaluated it and found that it was very expensive, difficult to set up and extremely complicated to customize. (Besides, it's a 1.0 release and Microsoft, especially, is known for not getting it right until version 3.0.)
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
How come in my data grid for a date field all i see is the date, yet in the fields that are bound the the data also, for the date i see 12:00am. My date field is set to a smalldatetime, how do I get the time out of the bound date field?
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
I've implemented a word template into my purchase order app. When I open the template passing the merge info, everyhting works fine. However when I exit my app and I open task manager winword is still open even though I doing a close on the app and calling the garbage collector.
Is there something else that I need to do to close word correctly? Do I need to make the class that is handling opening word a member of IDisposable?
Thanks
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
Did you call Close on the Word Application object? Or did you call Quit on it before you disposed it?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
here is my code.
First I open the doc:
<br />
if (File.Exists(TemplatePath + "\\PO.dot"))<br />
{<br />
private object oMissing = System.Reflection.Missing.Value;<br />
private Word.ApplicationClass oWord = new Word.ApplicationClass(); <br />
private Word.Documents oDocs; <br />
private Word._Document oDoc;<br />
<br />
try<br />
{<br />
File.Copy(TemplatePath + "\\PO.dot", SaveToPath + "\\PO" + PONumber + ".doc");<br />
oWord.Visible = true;<br />
oWord.Activate();<br />
object oFile = SaveToPath + "\\PO" + PONumber + ".doc";<br />
oDocs = oWord.Documents;<br />
bPOCreated = true;<br />
try<br />
{<br />
oDoc = oDocs.Open(ref oFile, ref oMissing,<br />
ref oMissing, ref oMissing, ref oMissing, ref oMissing,<br />
ref oMissing, ref oMissing, ref oMissing, ref oMissing,<br />
ref oMissing, ref oMissing, ref oMissing, ref oMissing,<br />
ref oMissing, ref oMissing);<br />
}<br />
catch(Exception err)<br />
{<br />
oDoc = oDocs.OpenOld(ref oFile, ref oMissing,<br />
ref oMissing, ref oMissing, ref oMissing, ref oMissing,<br />
ref oMissing, ref oMissing, ref oMissing, ref oMissing);<br />
}<br />
<br />
Then my close:
<br />
try{<br />
oDoc.Close(ref oMissing, ref oMissing, ref oMissing);<br />
System.Runtime.InteropServices.Marshal.ReleaseComObject (oDoc);<br />
oDoc = null;<br />
System.Runtime.InteropServices.Marshal.ReleaseComObject (oDocs);<br />
oDocs = null;<br />
oWord.Quit(ref oMissing, ref oMissing, ref oMissing);<br />
System.Runtime.InteropServices.Marshal.ReleaseComObject (oWord);<br />
oWord = null;<br />
bPOCreated = false;<br />
GC.Collect();<br />
Close();<br />
}<br />
catch(Exception err)<br />
{<br />
GC.Collect();<br />
}<br />
<br />
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
is there a way that i can get the serial key of an installed application using a c#...
example is i have installed a macromedia dreamweaver which is a licensed one which i bought
and i want to get and display the key of my macromedia dreamweaver in my c# window form...
anyone can help me?? or guide me??
thank you very much!!
studentPaul
|
|
|
|
|
Probably not. Most applications won't save the key itself anywhere you get easily find or get at. If stored, it'll usually be encrypted, but every application is different.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I tried to find an article on how to manage IIS (creating/deleting web sites and the like). Anybody has a pointer to some useful information on how to do this?
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
|
My application will be running on a slow PIII-400 machine. And the application needs to display a lot of pictures.
At a point i need to bring up a dialog, covering the pictures. When the dialog hides, the covered form cannot refresh fast enough so that it looks very choppy.
This program is gonna be used in a restaruant, it cannot give impression that the program suk, is that any way to make sure the background has been drawn, before the foreground(the dialog) hides?
|
|
|
|
|
Not really. For such a slow machine, you're probably going to have to back-off on the use of background images. This is especially true if you're using images larger than they need to be and scaling them down to fit inside the form and using a lower end video card.
Keep in mind that your app is going to have to have it's own minimum system requirements. You can't just put something together and get good performance on one machine and expect that same performance on lower end hardware.
There's a bunch of optimzation techniques, but what to do is very dependant on your code and form design.
Scale images down to the size you need for the form. For example, don't use a 1280x1024 image on a form that's only 320x200. You'll waste too much time loading all the extra data you're never going to see. Along the same line, if you can get away with a 256 color image, instead of 24+ bit images, do it! The less you have to load, the better.
Don't use an exessive number of controls on a form. Controls are very expensive to create and place dynamically. Also, calling all the Paint methods for those controls takes a while too. The less you have to paint, the better!
... There's lots of things you can do, but what you do depends heavily on your code, and more importantly, your design.
You can start by skimming through Improving .NET Application Performance and Scalability[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi all! I am getting an invalid cast error in the constructor of a form. There is no code in the constructor except for the InitializeComponent(); In the debugger, it goes through each line of the IntializeComponent method, returns, then pops out the error? What am I looking for here?
Thanx!
Jude
Jude
|
|
|
|
|
Is it on the return of the constructor?
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
It is after the return of InitializeComponent()..the form builder if you will. After goes through th last line, returns then invalid cast error.
Thanx for the quick reply!
Jude
|
|
|
|
|
Is it ON the return from InitializeComponent() or after (like when the constructor is exiting). Do you have a destructor (or similar) performing some type casting?
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
It is inbetween the return from the contructor and empty space..the debugger goes to the //TODO...comments first line and the very next step I get an invalid cast operation. I think I may just wipe it and start a new form.
Thanx for the help though!
Jude
|
|
|
|
|
TheJudeDude wrote: the debugger goes to the //TODO...comments first line
This is not possible. Something tells me that your source code is not in sync with the compiled code.
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
I don't know...it happened, but I rebuilt th form, and now all is well. I appreciate the replys though.
Thank you
jude
|
|
|
|
|
hi guys,
i need to know if a process that im monitoring has exited.. im using c#, and a noob in using the Process class. for example, im monitoring MS word, i can tell if it starts but i can't catch the event, the moment it terminates... help pls..
|
|
|
|
|
Is there a way to find out the what the 'master volume' (the one on the Volume Control app) level is set to?
Thanks
|
|
|
|
|
Just found this
http://www.codeproject.com/useritems/AudioLib.asp
|
|
|
|
|
hi. i made a simple web browser. i want if i push 'Enter' button url must load.
in microsoft example i see^
void Form1_KeyPress(object sender, KeyPressEventArgs e)
{
// Navigate if the ENTER key is pressed
if (e.KeyChar == '\r')
Navigate();
}
i re-made this for my project^
void webBrowser1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == '\r')
this.webBrowser1.Navigate(toolStripTextBox1.Text);
but in 1st & second ezmples didnt work. please tell litle beginner how made this.
thanks for your help
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Athlon 64 3500+, Gigabyte GA-K8NXP-9, 2x512 DDR400 Kingston, Inno3d 6200 PCIe, SS2 B2C2 v2.6, HDD := 450gb, Genius 56k int, NEC DVD-RW и мать его Суньмастер 550.
|
|
|
|
|
if you want to capture the ENTER key, then thes if e.KeyCode == Keys.Enter
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
ok thanks i did it, but not work i compile without erors but nothink hepend when i push 'Enter' key. please look my code^
private void Form1_KeyPress(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
this.webBrowser1.Navigate(this.toolStripTextBox1.Text);
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Athlon 64 3500+, Gigabyte GA-K8NXP-9, 2x512 DDR400 Kingston, Inno3d 6200 PCIe, SS2 B2C2 v2.6, HDD := 450gb, Genius 56k int, NEC DVD-RW и мать его Суньмастер 550.
|
|
|
|
|
The if clause should work. Check in the debugger, if Form1_KeyPress is called, maybe you forgot to subscribe to the form.KeyPress event handler?
this.KeyPress += new KeyPressEventHandler(Form1_KeyPress);
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|