199,114 Archived Topics
Remove Filter ![]() | |
Hey I currently have [CODE]Private Sub LabelClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label14.Click, Label15.Click, Label16.Click, Label17.Click If sender.backcolor = Color.LightGray Then sender.backcolor = Color.Green ElseIf sender.backcolor = Color.Green Then sender.backcolor = Color.LightGray End If End Sub [/CODE] But there are ALOT of labels (about more than 300) … | |
everytime i try to append a new object to file it just over rights the whole file this is the code im using to add a new object to the file: [CODE] public void add1() { FileOutputStream fos = null; { ObjectOutputStream out = null; try { fos = new … | |
i have make this program to update database.but it have something error. pop up show this message "An unhandled exception of type 'System.InvalidOperationException' occurred in system.data.dll Additional information: ExecuteNonQuery requires an open and available Connection. The connection's current state is Closed. " [code] Private Sub cmdUpdate_Click(ByVal sender As System.Object, ByVal … | |
[CODE]My situation is to update the balance in database.In database i have 3 column which is user name, pin code, and the balance.i have three customer, each customer have user name, pin code, and balance.The question is how to update balance of customer first, how to update customer second, and … | |
i am saving some records in an excel file on click of a button currently i am hardcoding the path like [CODE]FileOutputStream fileOut = new FileOutputStream("c:\\test.xls"); [/CODE] but i want to take the path from user,i.e.,something like 'save as' option how can i do it? please help. Thanks in advance. | |
was using c# to develop some application and wanted to connect my application(windows) with SQL database. using sql 2005 express and visual c# express; but it kept on throughing the following exception while i try to run my app. so help me out "An attempt to attach an auto-named database … | |
Hi guys, I am doing a TCP/IP time server/client. I already wrote the two programs but when I run them I don't get any output. Simply, the idea is the client asks the server for Time or Date and the server has to respond and terminate after the second request. … | |
![]() | Hi all. Am messing about with an ajax form at present which loops through records in a DB. This is my issue: I have a reset image link in my form (called "file_edit") which calls a 'confirm reset': [CODE]function reset() { if (confirm("Reset? You'll lose any changes!")) { document.file_edit.reset(); } … |
this is my code: [code] sdsNamaSales.SelectCommand = "SELECT ID, NAMA FROM REF_SALES_OFFICER WHERE" + " SOF_TYPE = '" + ddlJenisSales.SelectedValue + "' AND KOT_ID = '" + ddlKota.SelectedValue + "'"; // insert nama sales manual ddlNamaSales.Items.Clear(); ddlNamaSales.DataSource = sdsNamaSales; ddlNamaSales.DataTextField = "NAMA"; ddlNamaSales.DataValueField = "ID"; ddlNamaSales.DataBind(); ddlNamaSales.Items.Insert(0, new ListItem("--PILIH--", "--PILIH--")); … | |
I have a program entitled "Club Administration Software". When I try to call up the database, it replies with runtime error 91. Any suggestions? I am using win7 and have it in compatibility mode. It worked great in XP. Thank you for your help. | |
Hello All, Can anybody help me, i am having challenges getting collections value into the database Here is my sample code. but is not working at all rather is crashing the applications Dim collections As New System.Enrolment.CustomerBiometricsCollection() collections = Me.PrintCaptureWizard1.ShowDialog() Dim dbs As New DBClass Dim mee As String mee … | |
Guyz I have a table named fec in which i hv column named EndDt having Date/Time Data type.Now i want to display those records in my report which have EndDt less than Date i pick from DateTimePicker and month is current month. [code] Private Sub DtpDefault_ValueChanged(ByVal sender As System.Object, ByVal … | |
Good day, Hi, I'm trying to develop mapping feature for a tool. It has a wx.ScrolledWindow that contains wx.lib.buttons.GenBitmapTextButton as map nodes. When the number of map nodes reached around 50+ the scrolling becomes too slow. Any ideas on how to improve the performance of the scrolling when there are … | |
Hey Guys/Gal's I'm trying to figure out how to make an array of function pointers, but let me explain what i mean: The array will need a 'key' value (string | char*) and a 'value' (function pointer). So basically the array holds a list of short names of functions. I … | |
Hi, im a total Java beginner and was just hoping someone could help me work out why i'm getting an 'illegal start of expression' error on the first line: (public boolean isFull()) of this code: [code] public boolean isFull() { for (int a = 0; a < 10; a++) { … | |
Ok I was thinkin of making a new project about a game, I would like this game to be 2d as I am not really that experienced with 3d graphics neither how to controll them in C++ also the 2d whould be easier for me to program as there is … | |
hello I have strings here, ecah stored individually a = hello b = bye c= hi Label1.text = a label1.text = b label1.text = c it is in the command button sub and i want them to show respectively when the button is clicked like this: a first, then b, … | |
Hi, I got one masterpage and one content / child page having gridview control I want to do client side validations using javascript, can anyone suggest me where i have to do this. i.e.., either in masterpage or in content page (I know that only at the <head> tags we … | |
hello, i'm new to c# and as school assignment, I need to make a marque where when a button is clicked a text from a text box would be sent to a label and the label will move left to right as a marquee. and delegate must be command to … | |
I have been told that C++ and C# are very simular, as i am learning C++ and ust downloading XNA which use's C# I just wanted to know if C++ and C# are similar (exept the fact they both begin with the letter C ) | |
I'm looking for a few suggestions on different ways to input a polynomial into an array (coef[]) using a degree (double degree). I have one way that works, but my most recent project needs a new way to do the same thing (not sure why but it can't hurt to … | |
i have sucessfully coded my form so that when a user enters data into the texxt box and searches any matching data is displayed on another form my problem is when no data matches the search criteria the form that would display the result still opens but is blank how … | |
:?: How do you make an object, say a rectangle, move in turbo c++, using right and left arrow keys? I want the object to move when a user presses right or left arrow keys. Please reply ASAP either here or at my email [I]<<email address snipped>>[/I] | |
am using an example of tooltips from [url]http://www.dynamicdrive.com/dynamicindex5/stickytooltip.htm[/url] on [url]www.euroworker.no/order[/url] I have this code here to work with, but it just doesn't seem to work correctly, I've tried everything I can think of. It's not a problem with the Smarty or html, css as far as I Can see, when … | |
Hello' I'm using following code and getting mysqlerror Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs/..... Code is $query="SELECT ('$retfield') FROM ('$table') WHERE ('$givefield')=('$val')"; $res=mysql_query($query); if(mysql_num_rows($res) > 0){ } Upto my knowledge I'm using correct syntax bt I dnt where I'm going wrong. Can anyone help … | |
Hi Everybody!!! I am Working on Web application Using C#.NET(Microsoft Visual Studio) and SQL server 2005 ,Microsoft Internet Explorer .I have to show some Sanskrit text on web page.Now i am showing it using the Text Box control(as it show text as it is from database like paragraph...) 1.My Problem … | |
I’ve been trying to wrap my brain around this now for days, and I’m getting nowhere, so please bear with me… To Remove file on click of linkbutton I have below code: [B]aspx page:[/B] [CODE] <asp:LinkButton ID="RemovefileId" runat="server" CommandName="RemoveFile" OnCommand="RemoveFilefunction" CommandArgument=<%#Eval("filepath")%>>LinkButton</asp:LinkButton> [/CODE] [B]aspx.cs page[/B] [CODE] protected void RemoveFilefunction(object sender, CommandEventArgs … | |
Help people hows it going? I need some help with a bubble sort algorithm, i basically have to use a bubble sort to look through a number of car registration numbers and put them into ascending order... Im just not quite sure how to get it done... I asked a … | |
Hey guys, I'm new to programming and C, and I'm trying to write a program for a weighted dice, but I'm awful at math, and I can't figure out how to get it; it took my stupid self long enough to turn rand() into a number between 1 and 6. … | |
Hi All, I am trying to convert the following access update query into TSQL without any luck: UPDATE tblCattle INNER JOIN tblFarmDetails ON tblCattle.strEartag = tblFarmDetails.EarTagNo SET curMartPrice = tblFarmDetails.MartPric WHERE (curMartPrice=0 Or curMartPrice Is Null); First I tried simply pasting in the query with no luck so below is … | |
I built an ajax chat in one of my mvc website. everything is working fine. I am using polling. At certain interval i am using $.post to get the messages from the db. But there is a problem. The message retrieved using $.post keeps on repeating. here is my javascript … | |
Hello once again, i convert this class [CODE] public class Position { #region initialization // position stuff decimal latitude_fractional=0; string latitude_sexagesimal=""; decimal latitude_decimal=0; decimal latitude_decimal_mem=0; CardinalDirection latitude_direction=CardinalDirection.North; decimal longitude_fractional=0; string longitude_sexagesimal=""; decimal longitude_decimal=0; decimal longitude_decimal_mem=0; CardinalDirection longitude_direction=CardinalDirection.West; decimal altitudemax=0; decimal altitude=0; decimal geoidseparation=0; DateTime sattime=DateTime.MinValue; DateTime satdate=DateTime.MinValue; #endregion #region properties … | |
I'm now trying out for loops with different sized iterations (is that the right word?) This loop [code] for (int i = 0; i < 5; ++i) { for (int j = 0; j < 3; ++j) { Console.WriteLine("i = {0} j = {1}", i, j); } } [/code] outputs … | |
if u pass a std::vector by value to a function, does all of it's content get copyed? thx | |
HI,am new to the JSP forum page.Anyways,having created a database and posted there sample data,I want to proceed to creating my jsp pages in Eclipse IDE(Galileo).The database contains a login table that contains columns,employee_id,username and password.How can I do it,am a novice via jsp and servlets.Thanks in advace!!!! | |
hi all im creating a simple timer.it have NumericUpDown and Progress Bar. i use NumericUpDown to set the timer in minutes.I also put Progress Bar to indicates the percentage of times completed.For example if i set the timer to 1 minutes so if it at 0.5 minutes the Progress Bar … | |
[CODE]//SELECT ID van ingelogde gebruiker MySqlConnection cn = cn = new MySqlConnection("server=localhost; user id=bla; password=bla; database=project; Allow User Variables=True;"); cn.Open(); string selID = "SELECT LidID FROM gebruikers WHERE Gebruikersnaam=?Gebruikersnaam;"; MySqlCommand cmd = new MySqlCommand(selID, cn); MySqlDataReader dr = default(MySqlDataReader); //Add parameters to get the username and password cmd.Parameters.Add("?Gebruikersnaam", MySqlDbType.VarChar); cmd.Parameters["?Gebruikersnaam"].Value … | |
I am try to form a multi thread in my program but its giving this error "\Java1.java:87: cannot find symbol symbol : class mythread2 location: class Multithreading Thread mythread1; mythread2 ^ \Java.java:88: mythread1 is already defined in Multithreading(java.lang.String) mythread1 = new Thread(this); ^ \Java.java:89: cannot find symbol symbol : variable … | |
I need a perl script for the following case. Input is a text file with the following content AB001. I need to replace the text with AB002 in a new file. This has to go on until AB999. ie., At the end there should be 999 files with the contents … | |
i was doing my final year project.i need to do calculator.fuzzy calculator.in that calculator,the user will insert 4 numbers.that number should be transform into trapezoidal shape..but i don't know how to do it..from the number we insert into trapezoidal shape.somebody please help me... | |
hi? i'm in need of help.. our instructor in computer programming asked us to make a program..mine is a program that will ask the user to input how many sides of polygon she/he wants..minimum of 3 and maximum of 10..and the output should be the polygon with the user's inputted … | |
hi i have a database with the following coloumns thid thname thdate i have used the gridview control to display this info, also enabled paging and selection with it. i want to jump to "one.aspx" page and set the value of a querystring variable "thid" to the value in the … | |
Hello, everyone! I'm using the Win32 API PeekMessage function to retrieve key stroke events. I have a problem: suppose that someone holds the A button. PeekMessage will return messages for the A press event. Now, while A is pressed, someone holds B. PeekMessage will return only the B press event … | |
hi im bigginer at c# & i have some simple questions.. 1-Console.WriteLine("Result is[COLOR="Red"] {0}[/COLOR]",div); for what we use {0} here?? the bult in method Tostring() used for what & when?? | |
OK, here's my sample code. The problem is indicated with [PROBLEM] at the starting of the code line. I'm getting a compilation error saying that: 706 C:\Users\user\Desktop\Project.cpp `reg_num' has not been declared 706 C:\Users\user\Desktop\Project.cpp request for member of non-aggregate type before ',' token and its saying this for all my … | |
Hi to all, Example: CREATE TABLE test(name varchar(20) NOT NULL DEFAULT ''); In the above query varchar is described as NOT NULL.Then why we are inserting DEFAULT value as '' (null). Thanks in advance, Prem | |
hello there, I am working on a small c program that automatically detects whether the input given is a decimal number or a binary number and coverts accordingly. what is the best way to convert a binary number to a decimal number and a decimal number to a binary number. … | |
Hello, guys! I got a problem here: You're given set of x-y coordinates (at lease 2 and at most 60000). You need to find out the number of positive slopes formed by those coordinates. e.g. 4(this is the number of points that you want to pass) 0 0 1 1 … | |
i have problem with my database.i using combobox to select elements. i have store the data using ms excess.the problem is when i select one of the element in the combobox.For example when i choose Perlis from the combobox, i hit summary button, there is no output on the label … |
The End.