Shurikn
Avatar/Signature-
Posts
62 -
Joined
-
Last visited
About Shurikn
- Birthday May 4
Personal Information
-
.NET Preferred Language
C#
Shurikn's Achievements
Newbie (1/14)
0
Reputation
-
It was fixed by adding this line: area.AxisX.LabelAutoFitStyle = System.Web.UI.DataVisualization.Charting.LabelAutoFitStyles.None; The answer came from http://stackoverflow.com/questions/22140103/chart-control-customlabel-aligment
-
Hello, I've been away from .Net developping for like 6 years, coming back and I had to create a chart, I was really pleased to see this control, but the way it works is kinda annoying, anyway, look at this picture : [ATTACH]5759._xfImport[/ATTACH] These are two charts, both the same one, the only difference is their width and height, but as you can see, on the smaller on, the labels are unaligned. At first I had the same problem with the bigger one, but increasing the distance between the from and to points when including the customlabel fixed it, however the same trick doesn't seem to be working for the smaller one. The points are added this way (these are random points added directly for now, it'll become automated in the future) serie1.Points.AddXY(1, 2000); area.AxisX.CustomLabels.Add(0.5, 1.5, "1"); serie1.Points.AddXY(2, 20000); serie1.Points.AddXY(3, 30000); serie1.Points.AddXY(4, 40000); serie1.Points.AddXY(5, 60000); serie1.Points.AddXY(6, 55000); serie1.Points.AddXY(7, 59000); serie1.Points.AddXY(8, 70000); serie1.Points.AddXY(9, 90000); serie1.Points.AddXY(10, 80000); area.AxisX.CustomLabels.Add(9, 11, "10"); serie1.Points.AddXY(11, 100000); serie1.Points.AddXY(12, 95000); serie1.Points.AddXY(13, 80000); serie1.Points.AddXY(14, 75000); serie1.Points.AddXY(15, 89000); serie1.Points.AddXY(16, 110000); serie1.Points.AddXY(17, 105000); serie1.Points.AddXY(18, 115000); serie1.Points.AddXY(19, 120000); serie1.Points.AddXY(20, 130000); area.AxisX.CustomLabels.Add(19, 21, "20"); serie1.Points.AddXY(21, 115000); serie1.Points.AddXY(22, 110000); serie1.Points.AddXY(23, 120000); serie1.Points.AddXY(24, 125000); serie1.Points.AddXY(25, 124000); serie1.Points.AddXY(26, 135000); serie1.Points.AddXY(27, 140000); serie1.Points.AddXY(28, 155000); area.AxisX.CustomLabels.Add(27, 29, "28"); serie1 is the blue line, area is the ChartArea. Anyone knows how I could make sure that the labels stay on the same row?
-
D-Link have a very nice suport, FAQ and everything. I had a problemwith the rooter reeboting when downloading too much, they really helped me out and even proposed me to send it back to them for a new one... but my friend have a linksys wireless router and had... a VERY hard time seting it corectly... so you might just have been lucky enough to get the right compagny ^^.
-
How big is the program, and does the error occur right as you loud (before any form shows up) or at any other time?
-
I use firefox, because it's IMO the best option otu there, but I must say, there's no good browser out there, every browser have big security problems, and all browser have problems... FireFox download manager is really bad... But if you're really willing, you can re-write what you dont like about fireFox, wich you can't do with IE... And I havent checked al the extension yet, but this is also a + for FF A good browser need at least to be standards compliant, and that's why i'll never use IE again other than to make Windows update
-
you're probably missing some code there... you have 2 catch for no try, and your GetInt(Arguments) is not even called inside any function/proc/method indent your code to see where { } begin and end, this should help you see where you missed something
-
set your form size to the resolution of the screen (while having borderstyle=none)
-
I still have only the record wich have presentations :/ I guess at this point i should do 2 query instead...
-
no lets say my 3 tables have these: Publicity: ID name compId 1 a 1 2 b 1 3 c 1 4 omg 2 Compagny: ID Name 1 M$ 2 Apple Presentations PubID Time 1 2005/07/25 06:05:23 2 2005/07/25 07:05:23 2 2005/07/25 08:05:23 4 2005/07/25 09:05:23 1 2005/07/25 10:05:23 1 2005/07/26 06:05:23 I want my query to return me: Count(PubID) pub.name compagny.name 3 a M$ 2 b M$ 0 c M$ 1 omg Apple (I ommited certain collumn, but I'm pretty sure you now understand what I mean) I get these result just fine, if i dont put the date restrains. lets say I want publicity between 2005/07/25 07:05:22 and 2005/07/25 08:05:24 I should get: Count(PubID) pub.name compagny.name 0 a M$ 2 b M$ 0 c M$ 0 omg Apple but I only get: Count(PubID) pub.name compagny.name 2 b M$
-
I dont remember wich option exactly needs to be set , but I know there's a property that makes the listboxes keep their data... look into the property box of your listboxes...
-
io.file.copy with username/password?
Shurikn replied to sdlangers's topic in Directory / File IO / Registry
Are you sure the DestPath exist? if not you need to create it first ... to do this: if(!Directory.Exist("D:\\destpath")) { Directory.Create("D:\\destpath")); } File.Copy(strPath,strdest); -
if the file a picture(since you said that you are displaying it in a picture box) and if so(stupid question) is it open by another app or in a share maybe? or... are you using winXp? I know it really have problem letting go of past used things... theye should be a way to destroy any link the OS have with any files... but M$ dont want that... I wouldnt care killing windows a couple of time if I could kill every process and delete any file I want when I want...
-
Here's my problem I have a sql string sql="SELECT PubliciteArchive.ID, PubliciteArchive.Nom, PubliciteArchive.Type,PubliciteArchive.Duree,ClientArchive.Nom as Compagnie, Count(PresentationArchive.PubID) AS nbPres "+ "FROM PubliciteArchive, PresentationArchive, ClientArchive "+ "WHERE (((PubliciteArchive.ID)=[PubID] AND ClientArchive.ID=PubliciteArchive.ClientID) AND DatePResentation > #"+dtpDebut.Value+"# AND DatePresentation < #"+dtpFin.Value+"#) "+ "GROUP BY PubliciteArchive.ID, PubliciteArchive.Nom , PubliciteArchive.Type,PubliciteArchive.Duree,ClientArchive.Nom"; that is suposed to return me an ad with it's name, it's compagny name and the number of time it played between the dates that are in 2 DatePicker. The string return me the corect number of time and all the info I want, execpt that if there's no paying between the dates, instead of returning 0, it does not return a row. Is there a way to make it return a row with a 0 or should I create an ad class and store all the ad in an arrays of ads and then filter the dates?