Direkt zum Hauptbereich

Posts

Saving an Image to Database

 Step1 : Show OpenFileDialog OpenFileDialog strGetImage = new OpenFileDialog();             strGetImage.InitialDirectory = strDirectory;             strGetImage.Filter = "Image Files(*.BMP;*.JPG;*.GIF)|*.BMP;*.JPG;*.GIF|All files (*.*)|*.*";             strGetImage.FilterIndex = 1;             strGetImage.Multiselect = false;             strGetImage.RestoreDirectory = true;             DialogResult Result = strGetImage.ShowDialog();        Step2: After selecting the image convert the image into Bytes.             if (Result == DialogResult.OK)    ...
Letzte Posts

Binding Checked List Key, Value pairs !!!

I have been wonderinghow to do this , microsoft ist currently not encouraging people to use DataSource property. Evenif its existing its not enabled.  #############################################################  BindingSource bs = new BindingSource();  Dictionary<int, String> dicKeyValue = new Dictionary<int, String>(); // Add key, values to the dictionary   while (Reader.Read())             {                           dicKeyValue.Add(Convert.ToInt32(Reader["id"]), Convert.ToInt32(Reader["name"]));                             } // Set the datasource of BindingSource   bs.DataSource = dicKeyValue;  cListBox.DataSource = bs...

MS Chart Control

We need Windows RangeBar chart for our project. Since we need to use small blocks of data & label above these blocks . But i am having trouble setting the labelstyle ( 'BarLabelStyle' exactly) of these data blocks or points. I am trying to have the  data labels somehow on top of each blocks , but its not working **Tried setting BarLabelStyle** but in vain .(Series > Points > Custom property of a point >BarLabelStyle on the bottom) **Tried Smart labels** which would be too good if it worked , but found out that smart labels wont  work for RangeBar charts :( Ref: http://msdn.microsoft.com/en-us/library/dd456628%28v=vs.100%29.aspx **CustomLabels for Y-Axis** (for Range Bar chart X & Y axis are reverse) also didnt do the trick, since its showing on bottom line. Is not helpful for my purpose. After 2 days of Googling was not able to find an effective solution. Any suggestion or workaround to this problem is welcome :)