|
Dear members,
I have a doubt, I have a standard alone application. If I install it in one machine it is available for that machine only, How can i share this application for the LAN (intranet not internet) users. If i want to accesses some of the forms from that application through another machine. whether it is possible to access or not. If not, can we put a common database for these application and can we access these database from all LAN systems which share a common database, If anybody knows it please let me know
Regards,
Aswattha
|
|
|
|
|
You can run the WinForm application from a network shared folder. You will need to trust the assemblies (on the shared folder) on each machine.
Aswattha wrote: f not, can we put a common database for these application and can we access these database from all LAN systems which share a common database, If anybody knows it please let me know
Yes, you can, but make sure your application handles concurrency.
|
|
|
|
|
I'm using a ToolStrip and set the RenderMode to System and a separator line appears below the toolbar. Is there a way to hide it?
|
|
|
|
|
Not directly. You would need to derive your own ToolStripRenderer and control certain aspects of the drawing.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
Yahoo messenger has a nice feature when your IM window is minimized to the taskbar. The Yahoo IM taskbar item changes color or gets brighter when you have a new message. I've been looking for any help on how to do this using C# for Windows XP or .NET 2.0
I would love to know where to find exaamples and any kind of help, thanks in advance.
|
|
|
|
|
I have problem with .net component WebBrower. I need to open popup window from this component. In webbrowser is loaded this page:
<html>
<body>
<a href="#" onclick="window.open('http://www.microsoft.com/', '_blank', 'width=800,height=600,menubar=no,resizable=yes,left=0,top=0'); return false;">Open popup</a>
</body>
</html>
But when I click on "Open popup", normal IE7 window is executed with this page.
This problem is only on Windows Vista, on WinXP it works ok - opens new popup window without menubar and right size.
I think, that on Vista must be some security settings which blocks opening new popup window.
|
|
|
|
|
Is it possible to configure a System.Windows.Forms.RichTextBox to wrap on characters rather than words? Setting RightMargin to the width of the client rectangle and turning off word wrap, I tried replacing every space character with a non-breaking space, but any lines with punctuation will wrap at the punctuation rather than on the rightmost character in the line.
It seems like this should be an obvious setting, but I'm stumped.
Henry David Thoreau wrote: Beware of all enterprises that require new clothes.
|
|
|
|
|
Hiiiii All
I develop outlook 2003 shared add ins using vb.net 2005. and i compile it. it runs properly then i close the outlook. after exiting the outlook i recompile the outlook (it not showing any error message ) but it not working (outlook starts but not showing add in messages and other).
After this i create other outlook shared add ins. it also not working.
after the run setup of this add in setup run properly but add ins not showed in the outlook addins.
for the solution of this problem i also reinstall the office 2003 and vb.net 2005.
but my problem is not solved. what can i do for this error. please suggest.
Thanx
Mitesh Khatri
Khatrimitesh@hotmail.com
|
|
|
|
|
Hiiiiii
I m developing outlook-2003 Add ins using vb.net 2005. and i want to add the custom task pane in outlook reply window. means when user open a mail and click on Reply button the new mail to windows is displayed. and i want to add custom task pane in this window. Please suggest how i do this.
Thanx
Mitesh Khatri
Khatrimitesh@hotmail.com
|
|
|
|
|
Please don't cross-post, it's considered rude and won't help you get an answer faster. The original message is here[^].
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
public partial class A: Form
{
String str1 = "Some String 1"; // i have assign this string and im going to
// assign a new string in it through class B.
// But the value is not changed.
public A()
{
InitializeComponent();
}
private void A_Load(object sender, EventArgs e)
{
B b = new B(ref str1);
b.ShowDialog(this);
}
}
public partial class B: Form
{
String str2;
public B(ref String str)
{
str2 = str; // if i assign some value here, the string in str1 changes
InitializeComponent();
}
public someFunction()
{
str2 = "Some String 2"; // when i assign some value to this variable,
// the string in the str1 is not changed
}
}
this means that str is the reference of str 1, but str is limited to the constructor only, how can i make str2 the reference of str1 ?
please please help me.
Thanx in advance.
|
|
|
|
|
|
1 - Write a small test.
2 - Write code to fail the test.
3 - Write enough code to pass the test I know these are the basics of TDD. But I am confused about how to write test code before writing the functionality ? Assume I have the following class
class Account
{
public void Deposit(double amount)
{
}
} I am going to write a test class for testing the Deposit() functionality. But if I have not written the above class how can start writing a test class for it ? Compiler won't compile as there won't be a class called Account .
Is it like, create the Account class first with empty Deposit() method and write test case for it, make them fail, come back to Account class and write code for it, again execute test ?
|
|
|
|
|
N a v a n e e t h wrote: Is it like, create the Account class first with empty Deposit() method and write test case for it, make them fail, come back to Account class and write code for it, again execute test ?
With the current editing environments/compilers, that is pretty much what you need to do. You can write the test code first, knowing it won't compile, as that will give you the syntax of how your class will be used. Then write just enough of the class to get everything to compile. From there, your tests should fail and you can start writing the code needed to make them pass.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
Thanks Scott, your reply is much appreciated. Is this the way you are following ? Are you using TDD ? If yes, are you successful in that ?
|
|
|
|
|
N a v a n e e t h wrote: Is this the way you are following ? Are you using TDD ? If yes, are you successful in that ?
Actually, I don't really follow the ideas of TDD. I think it has it's uses and can be a very valueable tool in the right circumstances. I do still write unit tests for my projects, but I usually write them as I create pieces of functionality or after I get a component completed and I think it is working.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
Scott Dorman wrote: I get a component completed and I think it is working.
Exactly the same think I am doing. I find writing test first as kinda time consuming.
|
|
|
|
|
N a v a n e e t h wrote: I find writing test first as kinda time consuming.
I'm not sure it's any more time consuming than writing it afterwards. The problem I have with it is that you don't always know up-front how things will be structured or what methods you may need, etc. I'm all for refactoring, but I disagree with those people who think that you should constantly (or very nearly) be refactoring.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
N a v a n e e t h wrote: how to write test code before writing the functionality ?
The philosophy behind TDD is to write a test before implementing the functionality. So go ahead and build the class to be tested, but don't write the bodies of its methods before writing their tests.
/ravi
|
|
|
|
|
Okay - do you used to do these kind of development ? Thanks for the reply.
|
|
|
|
|
I was introduced to it in 2002 and continue to use it to this day.
/ravi
|
|
|
|
|
Thanks. I have been using that for last few weeks. It looks interesting. But I am facing some problems in areas where external files are used. Suppose I have a XML file and I am creating custom objects according to the XML file values, I felt testing these kind of stuff is kinda tough. The file may change any day and our test will be invalid then. How do you manage such a scenario ? Do you mock such kind objects ?
|
|
|
|
|
N a v a n e e t h wrote: Do you mock such kind objects ?
Bingo!
/ravi
|
|
|
|
|
Means ?
|
|
|
|
|
Bingo! == "Yes, you're absolutely correct!"
/ravi
|
|
|
|