|
Sorry for replying to my own post.
I've tried this again in anther solution. Just added a Win App and a setup project to the solution. I added some Application settings to the app.config file and installed. Then Changed the Application settings to User Settings and re-installed. The config did change on the second install so now I am really confused.
The only thing that I can see that I am doing differently in my main solution is Changing the Assembly Version number. Would this affect the Config File not being correctly installed when using the Setup Project?
|
|
|
|
|
Hi,
I know I'm not getting much input on this but I've just deleted the Setup project and added again but with a different Project name and this worked. This has got me over the problem short term but I'm worried what will happen when I need to upgrade my project.
Last attempt but has anyone got any ideas? I've tried changing the version number of the setup project and setting "RemovePreviousVersion" to true but everything I tried just didn't work.
|
|
|
|
|
If I change a static class variable in one application instance and I have multiple instantiated applications using the same dll will I be able to see that specific modification from one of my other applications? I'm thinking yes but I'd like to know for a fact. Any words of wisdom?
Thanx
|
|
|
|
|
No. Instance data as well as static data only exists inside a single process. In order to share data amongst applications, you must take special steps and use one of many available mechanisms, e.g. memory-mapped files.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Can you maybe elaborate on these mechanisms?
|
|
|
|
|
There are lots of mechanisms; whatever your need may be, a few of them will fit well.
Search for "interprocess communication", and read the documentation, there is plenty of it.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
|
This isn't fully correct...
there is a method.. not for the feint of heart..
you can go into the .prj (or.sln) file and make a manual reference to the
location of the dll that you compile from the static class
(for each project that you want to reference that particular dll)
I've never done it (needed to do it) myself but I've heard about it...
come to think of it you can basically do this by add>existing project> your_dll.sln
then whenever you modify your_dll.sln it will be compiled into your other programs..
did I ramble.. sorry.
|
|
|
|
|
ely_bob wrote: whenever you modify your_dll.sln it will be compiled into your other programs..
you can add the same code to several processes, that does not magically make them share some data; unless the code you are sharing is taking care of interprocess communication, but then you don't need a DLL for that.
ely_bob wrote: did I ramble
a bit (if not a byte)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Remoting the static instance is an option. Remoting offers out of the box support for singletons.
|
|
|
|
|
Hi
I’ve bean trying to create my own stile for the comboBox but something is going wrong.
The text box is drawing black. Does any one know how to fix this ???
Roy
|
|
|
|
|
Possibly it is reacting to your spelling and punctuation.
precious roy wrote: I’ve bean been trying to create my own stile style for the comboBox but something is going wrong.
The text box is drawing black. Does any one know how to fix this ??? ?
Without more information as to what your code is doing to make it draw black, I really can't say...
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
ok well here is the code.
Office 2007 Button[^]
i was trying to combine the two and it works half :}
and this is the code i have.
hmm its a bit to long to post here... but here is the draw
internal void onDrawControl(Graphics e)
{
recBounds = this.ClientRectangle;
Rectangle m_BrushSize = new Rectangle(0, 0,
this.Width, this.Height / 2);
for (int i = 0; i <= 40; i++)
{
LinearGradientBrush myLinearGradientBrush1 = new System.Drawing.Drawing2D.LinearGradientBrush(m_BrushSize, Color.FromArgb(i, 255, 253, 235), Color.FromArgb(i, 255, 235, 182),
90);//top item
LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(m_BrushSize, Color.FromArgb(i, 255, 214, 56), Color.FromArgb(i, 255, 232, 167),
-90);//down item
myLinearGradientBrush.WrapMode = System.Drawing.Drawing2D.WrapMode.TileFlipXY;
myLinearGradientBrush1.WrapMode = System.Drawing.Drawing2D.WrapMode.TileFlipXY;
e.FillRectangle(myLinearGradientBrush, 1, this.Height / 2,
this.Width - 2, this.Height / 2 - 1);//down
e.FillRectangle(myLinearGradientBrush1, 1, 1,
this.Width - 2, this.Height / 2);//top
//Draw Border
Brush brsBorder = new SolidBrush(Color.FromArgb(191, 167, 121));
Pen pnsBorder = new Pen(brsBorder);
Brush brsDot = new SolidBrush(Color.FromArgb(233, 223, 159));
Pen pnsDot = new Pen(brsDot);
e.DrawRectangle(Pens.White, this.ClientRectangle.X + 1, this.ClientRectangle.Y + 1, this.ClientRectangle.Width - 3, this.ClientRectangle.Height - 3);
e.DrawLine(pnsDot, this.ClientRectangle.X, this.ClientRectangle.Y + 1, this.ClientRectangle.X + 1, this.ClientRectangle.Y + 1);
e.DrawLine(pnsDot, this.ClientRectangle.X, this.ClientRectangle.Bottom - 2, this.ClientRectangle.X + 1, this.ClientRectangle.Bottom - 2);
e.DrawLine(pnsDot, this.ClientRectangle.Right - 1, this.ClientRectangle.Bottom - 2, this.ClientRectangle.Right - 2, this.ClientRectangle.Bottom - 2);
e.DrawLine(pnsDot, this.ClientRectangle.Right - 1, this.ClientRectangle.Y + 1, this.ClientRectangle.Right - 2, this.ClientRectangle.Y + 1);
e.DrawLine(pnsBorder, this.ClientRectangle.X + 1, this.ClientRectangle.Y, this.ClientRectangle.Right - 2, this.ClientRectangle.Y);
e.DrawLine(pnsBorder, this.ClientRectangle.X, this.ClientRectangle.Y + 1, this.ClientRectangle.X, this.ClientRectangle.Bottom - 2);
e.DrawLine(pnsBorder, this.ClientRectangle.X + 1, this.ClientRectangle.Bottom - 1, this.ClientRectangle.Right - 2, this.ClientRectangle.Bottom - 1);
e.DrawLine(pnsBorder, this.ClientRectangle.Right - 1, this.ClientRectangle.Y + 1, this.ClientRectangle.Right - 1, this.ClientRectangle.Bottom - 2);
//////////////////////////////////////////////////////////////////end Border
myLinearGradientBrush.Dispose();
myLinearGradientBrush1.Dispose();
brsBorder.Dispose();
brsDot.Dispose();
pnsBorder.Dispose();
pnsDot.Dispose();
}
|
|
|
|
|
I just tested it using the original code and just replace the method onDrawControl with yours, it works also fine...
|
|
|
|
|
Yes i know it works but when inherating from a ComboBox the text box is black.
|
|
|
|
|
I have created my own class names Box.cs. Now I want to borrow the mouse Event which I see in most controls found in .Net and apply it also to my box so that If I click my box an event is triggered
|
|
|
|
|
Which mouse event do you want to handle? There are loads: Mouse Down, Mouse up, Mouse move, ...
Is your class visible (ie derived from a form, or other control? If not, then it doesn't get mouse events!
More details, please!
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
just the Mouse Click event... Note that my Box.cs is a class that never inherited any object.
|
|
|
|
|
A simple class:
class Box
{
...
}
is not visible on screen. If it isn't visible, you can't click the mouse on it. Your class should inherit from a form, or control (panel, button, textbox, label) that can be visible. You can then add events to it.
Just creating a class is not enough!
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
oh snap!... ok can you suggest me an object that i can inherit? I mean like a generic object that has it.. i dont want to extend any of the .net controls because I know that they Inherited it from some object.
|
|
|
|
|
using System.Windows.Forms;
namespace MyNamespace
{
public class Box : Control
{
}
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
hi, is there any way to divide my incomming internet bandwidth between processes, i.e. give my download manager 70% and my browser 30% of my bw!???
any one know any sources?!
|
|
|
|
|
Are you and malik0092 related? If not then this shows you haven't read the forum before posting
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Iam not malik0092 and the answer is different!
i want to identify my processes for example iexplore.exe and opera.exe and divide internet bandwidth between them!
|
|
|
|
|
I want to build two clients and a server, In which clients connect to server and send different files to write.these files include audio,video and text files. The problem is that the server has to identify the file format and if it is an audio or video file then it must give priority to it to write and if the server was writing any text file sent by any client during this if another client sent any audio file it must queue this text file and let the audio file to be written first and after completing it dequeue the text file and write the remaining.
please help me.
|
|
|
|
|