they are not fixed. Will change regularly.
liz3
Posts
-
Combo Box sorting -
Combo Box sortingI'm working on MS Visual C++ 6.0. I have a dialog with a combo box on it. Since it needs to display the items in sorted order, i have checked the 'sort' feature available by right-clicking on the combo box and choosing "Sort". This does the job, except that the sorting takes place such that 11 appears before 2 (because the sorting is string based). I need the sorting done based on the length too i.e it should appear as 9, 10 ,11 and not 10, 11 and then 9. How can I edit the "Sort" functionality of the combo box? :^)
-
MFC - CAsyncSocket classok, thankyou all for ur help
-
MFC - CAsyncSocket classthankyou. But it is not called just the first time right? I mean, client and server establish the connection, client sends a msg to the server. Then, the OnReceive() function is called. But after that, for subsequent msgs sent by the client, will the OnReceive() function be called automatically?
-
MFC - CAsyncSocket classI have a very basic question to ask. I'm not able to find out if the OnReceive() function of the CAsyncSocket class will always be called automatically when a message is sent by the client OR do we have to write code such that the function is called everytime a message is sent?
-
Charts in .NETHello, I need to generate a few charts based on data stored in my database on SQL Server. I had no idea of how to generate charts with standard values itself.A little search on the Internet gave me the following code which works well: Dim Image As New Bitmap(500, 300, PixelFormat.Format32bppRgb) Dim g As Graphics = Graphics.FromImage(Image) Dim redPen As New Pen(Color.Red, 10) Dim blueBrush As New SolidBrush(Color.Blue) Dim myImage As Bitmap Dim p() As Integer = {1000000, 600000, 2500000, 80000} Dim towns() As String = {"A", "B", "C", "D"} Dim myBrushes(4) As Brush myImage = New Bitmap(500, 300, PixelFormat.Format32bppRgb) g = Graphics.FromImage(myImage) ' Create the brushes for drawing myBrushes(0) = New SolidBrush(Color.Red) myBrushes(1) = New SolidBrush(Color.Blue) myBrushes(2) = New SolidBrush(Color.Yellow) myBrushes(3) = New SolidBrush(Color.Green) ' Variables declaration Dim i As Integer Dim xInterval As Integer = 100 Dim width As Integer = 90 Dim height As Integer Dim blackBrush As New SolidBrush(Color.Black) For i = 0 To p.Length - 1 height = (p(i) \ 10000) ' divide by 10000 to adjust barchart to height of Bitmap ' Draws the bar chart using specific colours g.FillRectangle(myBrushes(i), xInterval * i + 50, 280 - height, width, height) ' label the barcharts g.DrawString(towns(i), New Font("Verdana", 12, FontStyle.Bold), Brushes.Black, xInterval * i + 50 + (width / 3), 280 - height - 25) ' Draw the scale g.DrawString(height, New Font("Verdana", 8, FontStyle.Bold), Brushes.Black, 0, 280 - height) ' Draw the axes g.DrawLine(Pens.Brown, 40, 10, 40, 290) ' y-axis g.DrawLine(Pens.Brown, 20, 280, 490, 280) ' x-axis Next myImage.Save(Response.OutputStream, _ System.Drawing.Imaging.ImageFormat.Jpeg) But now i need to know how in the p() array I can input values from the database dynamically i.e the number of values in the database could vary with time.The code should automatically input all the values in the table in the databse and generate the appropriate chart.How do i do this?
-
[Message Deleted][Message Deleted]
-
[Message Deleted][Message Deleted]
-
run a process for every new entry in a databasethankyou! i'll try it out!
-
run a process for every new entry in a databaseYeah,it does look like overkill to me too.I already have those columns in the table.and i can always add few more if needed.but the point is that at the end of that time i need a process to run.This process is the same for all entries.How do i make it do that?
-
run a process for every new entry in a databaseyeah,almost.Well,to be more detailed...Im running a system where a user logs in his/her complaints and everytime a new complaint is registered, I need a timer to begin at the server-side.My database is running on SQL Server and the code for the system has so far been written in VB .NET How do i proceed?
-
run a process for every new entry in a databaseI need a process(say,timer) to start running for every new entry of a row in a database.I have no idea where to begin.Any suggestions?
-
setting DropDownList value[Message Deleted]
-
setting DropDownList valueI have a table in a database with certain fields which the user fills up through a form.At a later point,if the user wishes to see this form,I need to auto-fill those fields.The auto-fill works except for the DropDownList control.It always sets its field to the first item in the datalist.I tried 'DropDownList2.Items.FindByText(string).selected="True"' but it shows an error. I need the dropdownlist to show the text that was previously selected by the user and also giving the user an option to change his previous selection. How do i do this?
-
creating a daemon process [modified]I'am creating a website where the front-end is bein developed using ASP .NET,the code so far has been written using VB .NET and all data is stored using MS SQL Server 2000.Everytime the user logs in and performs some activity the database contents are changed correspondingly. Now i need a process that runs in the background on the server side such that everytime a user fills in a particular form, the process initiates a timer for say,15 mins and wen the timer expires some database modifications are made.This has to be true for every incoming request from the user.So if Im not wrong i need a daemon process that awaits an incoming request and then performs the above-said activity. I have no idea what i need to use in order to achieve this.Please help.
modified on Tuesday, March 10, 2009 11:33 PM