|
hi,
Why is it that the list box control in Visual Studio 2005 cannot be styled.
All i am doing is Changing its border syle to Dashed and border color to black. But it seems the implementation is not reflecting.
i need to change the border color and style of a list Box Control out of the box. How can I ?
|
|
|
|
|
set no border then handle the paint event?
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
|
|
|
|
|
Hello ~
Can i ask Some question abo ut zedgraph here??
anyway this is my first question in code project ^^
and i can't english well plz comprehension my writing
let's start question
now My company Project Using Zedgraph.dll ver:5.1.4(maybe)
in the Project using zedgraph namespace
and i complete Drawing the Graph
only user X axis, Y axis
data is X[30] , T[30] <-- this data is ReadlTime data and Changing 3sec
Graph is Drawing but 3sec draw the Line, and 6sec draw the Line.. so on
Time is Gone...Line is so Many Many and i don't want it
for example)
0sec
3sec Draw the Line~~~~ Having data X[30] , T[30](data always chaging every
3sec)
and i want clear the line <-- this is i want
6sec Draw the Line~~~~ Having data X[30] , T[30](data always chaging every 3sec)
so on.....
how do i clear the Line ??
check this out my source
private void CreateGraph(double[] X, double[] T) //제드그래프 생성 (X,Y값을 가져옴)
{
GraphPane myPane = zgc.GraphPane;
// Set the titles and axis labels/;/l
myPane.Title.Text = "My Test Date Graph";
myPane.XAxis.Title.Text = "X";
myPane.YAxis.Title.Text = "Y";
// Make up some data points from the Sine function
PointPairList list = new PointPairList();
for (int i = 0; i < X.Length; i++)
{
list.Add(X[i], T[i]);
}
/*
for (double x = 0; x < 36; x++)
{
double y = Math.Sin(x * Math.PI / 15.0);
list.Add(x, y);
}
*/
// Generate a blue curve with circle symbols, and "My Curve 2" in the legend
LineItem myCurve = myPane.AddCurve("내부온도", list, Color.Blue,
SymbolType.Circle);
myCurve.Line.Fill = new Fill(Color.White, Color.Red, 45F);
// Make the symbols opaque by filling them with white
myCurve.Symbol.Fill = new Fill(Color.White);
// Make the symbols opaque by filling them with white
myCurve.Symbol.Fill = new Fill(Color.White);
// Fill the axis background with a color gradient
myPane.Chart.Fill = new Fill(Color.White, Color.LightGoldenrodYellow, 45F);
// Fill the pane background with a color gradient
myPane.Fill = new Fill(Color.White, Color.FromArgb(220, 220, 255), 45F);
// Calculate the Axis Scale Ranges
zgc.AxisChange();
Refresh();
|
|
|
|
|
Hi all,
On one of my application I want to use four counters. So I define them as follows as used.
int counter1 = 1, counter2 = 1, counter3 = 1, counter4 = 1;
Is there any other best way to do this?
Use of this is keep track of the index of a list view. I've four list view and to add index I use counters.
Thanks a lot.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
You should probably use an array instead of four different counters. There are plenty of examples if you google for it.
Cheers,
Vıkram.
I've never ever worked anywhere where there has not been someone who given the choice I would not work with again. It's a job, you do your work, put up with the people you don't like, accept there are probably people there that don't like you a lot, and look forward to the weekends.
- Josh Gray.
|
|
|
|
|
Use an array:
int[] counter = new int[] { 1, 1, 1, 1 };
Are you really starting at one? When I count something, the count is zero before counting the first item...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
This question is not related to C# but I am using it in C# and there is no message board for Regular Expression there for I am posting my question, and I hope some one will solve my problem.
I have this regular expression "(ABC.\d.)(?.*?)*(ABC.\d.)"
and the following data on which I am applying it.
.....
DATA To grab from Regular expression
ABC.1. Recreation. As of June 30, 2007, the balances provided
in the following citations shall revert to the fund
ABC. 2. Recreation. As of June 30, 2007, the balances provided
in the following citations shall revert to the fund
ABC. 3. Recreation. As of June 30, 2007, the balances provided
in the following citations shall revert to the fund
ABC. 4. Recreation. As of June 30, 2007, the balances provided
in the following citations shall revert to the fund
But unfortunately it grabs only ABC.1,ABC.3,ABC.5,ABC.7 and so on
it means this regular expression is skipping one step. Is there any one who can tell me how can I correct this problem. That it should not skip any sequence where it got ABC.\d. it should grab data until it found next ABC.\d.
Thanks in advance
modified on Wednesday, February 18, 2009 1:40 AM
|
|
|
|
|
Hi,
I created an socket program where a server listen and number of clients connect to it. Clients have a common static ip and individual local ip of their own system.
In client side if i give Socket.LocalEndPoint i get the local IP address of the client, same i check in the serverside, ie Socket.RemoteEndPoint i get the static IP of the clients network.
so all the client IP shown in the server as same.
How can i identify each clients? Will there be same port in diffrent system in a network of a single static IP?
Thanks,
Yesuprakash
|
|
|
|
|
I'm not so sure you can distinguish that info with the socket alone. I've always spun up a new thread or created new objects to deal with the new socket connection, so I knew that they were different. If you need some kind of identification, you'll need to transmit that information from the client to server on a connection, or request it from the server. Bottom line I think is that you'll need to program it into the client.
Hope that helped...
Scott P
"Simplicity carried to the extreme becomes elegance."
-Jon Franklin
|
|
|
|
|
hi,
Currently i am developing a client server application in c#. I am using socket for communication. With compare to remoting and WCF, is it socket is better?.. or which is good. How can i convert socket to WCF or Remoting?
Thankyou,
Yesuprakash
|
|
|
|
|
I have a web service that returns a custom object which contains several arrays of standard types. When I test out the service on the local machine, everything works just fine, the arrays get populated as expected. However, when I add a reference to it in another project on a different machine and invoke it, the return object's arrays all have zero length.
Any ideas? Are there limitations to having an array nested inside a return object from a Web Service?
|
|
|
|
|
Is your CustomObject seen in your client application?
I think you have to decorate your WebMethod (the one that returns the array of CustomObject's) with [SoapInclude(typeof(CustomObject))] .
Calin
|
|
|
|
|
I see the custom object in the client app just fine.
I just tried adding [SoapInclude(typeof(CustomObject))] attribute to the custom object (and yes I did replace "CustomObject" with the actual object), but unfortunately I get the same result. (I also tried it with [XmlInclude(typeof(CustomObject))], same result.) All arrays are zero length and I get the 'out of bounds' error if I try and access any of the elements of an array.
Any other ideas? I haven't been able to find an example of something similar to what I'm doing as far as nesting arrays of common types inside a custom web service return object.
EDIT:
I just tried adding [XmlElement()] attribute to each array property, and the fields in the object became null. I then tried [XmlArray()] instead and got the same result. Here's my object as it exists now:
[SoapInclude(typeof(PingResult))]
[Serializable()]
public class WebMethodResult
{
private Int32 a;
private String[] b;
private UInt32[] c;
private UInt32[] d;
private UInt32[] e;
private Int16[] f;
public Int32 A
{
get { return this.a; }
set { this.a= value; }
}
[XmlArray()]
public String[] B
{
get { return this.b; }
set { this.b= value; }
}
[XmlArray()]
public UInt32[] C
{
get { return this.c; }
set { this.c= value; }
}
[XmlArray()]
public UInt32[] D
{
get { return this.d; }
set { this.d= value; }
}
[XmlArray()]
public UInt32[] E
{
get { return this.e; }
set { this.e= value; }
}
[XmlArray()]
public Int16[] F
{
get { return this.f; }
set { this.f= value; }
}
public WebMethodResult()
{
}
}
modified on Tuesday, February 17, 2009 7:14 PM
|
|
|
|
|
Have you tried deleting the web reference on the client machine and regenerating all of the code? I have never needed any decoration other than Serializable when passing types like this.
BTW, your empty constructor is not the serialization constructor as your comment indicates.
Need custom software developed? I do C# development and consulting all over the United States.
If you don't ask questions the answers won't stand in your way.
Doing a job is like selecting a mule, you can't choose just the front half xor the back half so when you ask me to do a job don't expect me to do it half-assed.
|
|
|
|
|
I have not removed the web reference on the client yet, I've only been updating it as I republish the service with each attempt. I'll give that a whirl, see what happens, and post the results here. Thanks for the suggestion.
I always thought you had to have an empty parameter-less constructor in order for an object to serialize properly. Good to know.
EDIT: I just tried removing and re-adding the web reference, making sure the Settings.Designer.cs file reflected the changes, and still nothing.
Here's the XML from the return object as I see it on the server from the test method. This is what I expect to see on the client side:
<pingresult>
<returncode>1204</returncode>
-
<meternumber>
<string>12081056</string>
<string>12092171</string>
<string>12113456</string>
</meternumber>
-
<amiserialnumber>
<unsignedint>9245344</unsignedint>
<unsignedint>9317678</unsignedint>
<unsignedint>11110689</unsignedint>
</amiserialnumber>
-
<serviceaddresskey>
<unsignedint>500006497</unsignedint>
<unsignedint>500148477</unsignedint>
<unsignedint>500154274</unsignedint>
</serviceaddresskey>
-
<usagepointkey>
<unsignedint>500013896</unsignedint>
<unsignedint>500215109</unsignedint>
<unsignedint>500223149</unsignedint>
</usagepointkey>
-
<meterstatuscode>
<short>1122</short>
<short>1122</short>
<short>1122</short>
</meterstatuscode>
</pingresult>
Well, the xml tags dont show up but imagine these numbers that exist in groups of 3 as being elements of the arrays.
modified on Wednesday, February 18, 2009 4:30 PM
|
|
|
|
|
You are required to have a public default constructor for XML Serialization but it may be implicit. The serialization constructor actually has the signature
public ClassName(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
Need custom software developed? I do C# development and consulting all over the United States.
If you don't ask questions the answers won't stand in your way.
Doing a job is like selecting a mule, you can't choose just the front half xor the back half so when you ask me to do a job don't expect me to do it half-assed.
|
|
|
|
|
I just tried adding [XmlInclude{typeof(ReturnType))] to the Web Method, along with combination of the [XmlEment()] and [XmlArray()] tags to the properties but still no go.
Looking at the client, the proxy class that gets generated looks correct too.
|
|
|
|
|
I am trying to get input from a text file and then take out the desired information and place them into variables. Each line is 1 of 3 possible operations performed by a robot. Depending on the desired results these 3 instructions follow a different sequence at which they are performed. Each line will be needed to be read at a time, the values stored, and then move to the next line. I have created the regular expressions need to handle each instruction in the way I want. My problem is, I cant think of a way that would loop the checks to see if what regular expression matches, line by line, so that i can call the right expression to use.
|
|
|
|
|
|
Aren't you using what I gave you?
|
|
|
|
|
ive been already using what you gave me. here is an example of my code:
E 10:45:03 Line 4 : Dispense
tip 1 : dispense 20.56µl 6, 3 Deep Well, landscape [1,1]
10.00µl ">> Water << 23" Fixed <3 - 50µl> Single
E 10:45:05 Line 5 : Wash Tips
wash (2ml + 1ml), grid 20 and grid 20
E shows the beginning operation, and each operator has its own regex structure. I have worked that out so far. The problem is that i want to read the first line, figure out what structure to use, go threw the necessary lines, and then start the process at the next E.
|
|
|
|
|
I had expected you would use what I provided to get the basic information, then once you know the operation from that, use an operation-specific regex to parse the data.
|
|
|
|
|
|
What's not working as you want/expect or what errors are you getting and on which lines?
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)
|
|
|
|
|
|