64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ktsangop

Hello everyone! Just as the title suggests, i would like to know if it's possible to set the position of a dialog box. The default behaviour, is to appear in the center of the screen I use it this way : public static int confirmationBox(String infoMessage, String location) { int …

Member Avatar for ktsangop
0
3K
Member Avatar for charlybones

Ok so I'm a total noob with VB.NET and I so far I've read about a thousand forums and I've yet to get a straight answer. I've read that VB treats anonymous types differently than C# (the why, beats me). I have a DataTable, and I want to return a …

Member Avatar for Begginnerdev
0
3K
Member Avatar for DevonParsons

Hi all, I'm following [this](http://msdn.microsoft.com/en-us/library/dd492149.aspx) tutorial and I'm encountering strange behaviour with the program. My finishLabel *ought* to be calling finishLabel_MouseEnter() when the mouse hovers over it, but it's calling wall_MouseEnter() instead - the location of the mouse resets and the congratulations box doesn't show up. In the properties/events box …

Member Avatar for DevonParsons
0
252
Member Avatar for jLamp

Once, I've stoped Apache in XAMPP by using XAMPP Control Panel. Then, I've tried to start Apache. But it isn't starting. I've already closed Skype, TeamWeaver. :( Help me guys. I've to take so many backups in phpmyadmin :(

Member Avatar for veedeoo
0
317
Member Avatar for cobaltfive

I have been working on this for two weeks now and it has been progressing slowly. I am currently working on getting the the remove function of my program to 1. first check to see if there is a product 2. list the products 3. allow the user to select …

Member Avatar for triumphost
0
238
Member Avatar for GeekPlease

Good day folks, I want to delete some records in my datatable using query. But I don't know how to do it. Can someone help me? Thanks For i As Integer = 0 To objChkArray.Count - 1 Dim rows As DataRow() = dtable.[Delete]("ct = '" & CInt(objChkArray(i)) & "'") For …

Member Avatar for GeekPlease
0
2K
Member Avatar for Papa_Don

Group, Historically I've used 'Convert.ToInt32(TextBox1.Text)' when moving the numbers stored in a TextBox to an integer variable. But it's made me wonder what the difference is between Int16, Int32 and Int64. In simple terms, can someone explain this to me (remember, I'm simple minded!)? As a follow-up question, I'm finding …

Member Avatar for Papa_Don
0
3K
Member Avatar for duke.tim

Why is it that no matter how long I put the sleep command or loop, cat is unable to read the file, even though the file already exsists? Is there any way of reliably waiting for the whois to finish, write to file and then read that the file exsists?? …

Member Avatar for duke.tim
0
245
Member Avatar for Papa_Don

Group, I'm not sure if this is a SQL Server issue or a Visual Basic issue. However during the runtime, I'm getting the following error message: String or binary data would be truncated. The statement has been terminated. I'm not sure why or where this is being caught. Searching this …

Member Avatar for Papa_Don
0
3K
Member Avatar for Ancient Dragon

Is there any way to make the size of the tab control expand in both hight and width when the entire window is resized? For example, if I initially set the top of the tab control to be about 1 inch below the top of the window and fill the …

Member Avatar for Ancient Dragon
0
754
Member Avatar for jemz

Hi, I need some help on this how can i use the arrow keys(up,down,left and right) in the keyboard so that the filloval will move, I have no idea on this.can you help me on this please. Thank you in advance. import java.util.*; import java.awt.*; import javax.swing.*; import java.awt.event.*; public …

Member Avatar for jemz
0
1K
Member Avatar for mpc123

Hi I have this working for the query to output the result but the if zero results echo is not working, and I cnat see why, if anyone can help please, there is no error that comes up and to test there is nothing in the database table, it works …

Member Avatar for mpc123
0
122
Member Avatar for abra_ka_dabra

I added a string into an arraylist, but when i want to retrieve it, it does not go into if conditional in the code below: ArrayList a=new ArrayList(); a.add("12"); System.out.println(Integer.toString(1)+","+Integer.toString(2)); if((Integer.toString(1)+Integer.toString(2))==a.get(0)){ System.out.println("this is working here"); } What is the problem here?

Member Avatar for abra_ka_dabra
0
140
Member Avatar for pbj.codez

Howdy; I am still on my journey into the world of assembly, and feel that I am becoming more comfortable with it, however; there are somethings I am still struggling with. Below I have posted my code, and have inline comments with it. These comments represent my understanding of the …

Member Avatar for Assembly Guy
0
336
Member Avatar for mesbahuk

I am currently converting a Java library to C# .Net, please help me to find if there are C# equivalents of the following java specifics: * RuntimeException() * IllegalStateException() * StringBuffer Any resource on Java to C# conversion will be very helpful. Thanks in advance.

Member Avatar for mesbahuk
0
275
Member Avatar for WDrago

All, I'm trying to decide if I should use an auto-increment field or GUID field in a database. Either way I get a unique number identifying the record, so I'm not sure what way is best. Any thoughts? Thanks, -Bill

Member Avatar for WDrago
0
197
Member Avatar for chikaibeneneme

cant seem to figure out what the error is :( #include<iostream> using namespace std; //prototyping variables void averageCal(double a[]); void productCal (double p[]); void sumCal (double s[]); int main () { double userinputs [5];//storing the user inputs in a array for(int i=0; i<5; i++)//suing a for loop to cycly and …

Member Avatar for Lucaci Andrew
0
229
Member Avatar for nathan.pavlovsky

Hello programmers! I am creating a player vs. computer connect four game. It has full interactivity along with error checking for invalid inputs by the player. However, when the main() function is run, the program "stops"/or freezes up after there are five pieces in the connect four board. The game …

Member Avatar for nathan.pavlovsky
0
174
Member Avatar for santosh.pandey.1293575

hello all, kindly help me for this i have one form with datagridview in vb.net and 5 textbox for filing GDV i am using code: Dim a As String = txttable.Text DataAdapter1 = New OleDbDataAdapter("Select * From " & txttable.Text & " where [pay_year] = '" & cmbSyear.Text & "' …

Member Avatar for santosh.pandey.1293575
0
130
Member Avatar for london-G

Hello, I am using Itext to create reports, I have created the layout which includes a table. try{ Document doc = new Document(); PdfWriter.getInstance(doc, new FileOutputStream("Products.pdf")); doc.open(); Image image = Image.getInstance("logo.png"); //doc.add(new Paragraph("image")); doc.add(image); doc.add(new Paragraph("Registration",FontFactory.getFont(FontFactory.TIMES_ROMAN,18,Font.BOLD,BaseColor.RED))); doc.add(new Paragraph(new Date().toString())); doc.add(new Paragraph("------------------------------------------------------------------")); PdfPTable table = new PdfPTable(2); PdfPCell cell = new …

Member Avatar for london-G
0
1K
Member Avatar for godzab

Hello, I have started picking up on encrytion, and I seem to have an error when I run the program. Here is the error: Exception in thread "main" java.security.NoSuchAlgorithmException: Cannot find any provider supporting ES/ECB/PKCS5Padding at javax.crypto.Cipher.getInstance(Cipher.java:453) at GenerateKey.encrypt(GenerateKey.java:41) at GenerateKey.<init>(GenerateKey.java:24) at GenerateKey.main(GenerateKey.java:71) Here is my GenerateKey class: import java.io.IOException; …

Member Avatar for godzab
0
297
Member Avatar for DrEinstein

Hi everyone, I'm stuck making a Scroll pane to see all the bar graphs created when they do not fit on screen, or when the frame is diminished. Can anyone tell me how to do this please? Thanks import javax.swing.JFrame; import javax.swing.JOptionPane; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import java.awt.*; …

Member Avatar for DrEinstein
1
149
Member Avatar for CloudZELL91

hi there guyz,,, i need a suggestion/advise of what are possible easy thesis project for a comsci... ...are there possible thesis proj. that is Android(.apk) based like screen lock etc... ....hoping your advise,, 8)

Member Avatar for rubberman
-1
159
Member Avatar for proconfusion

can you help me with the code for that using the logic: 1) randomly select the start point 2) predetermine the distance you need that car to travel using nextGaussian() 3) identify all the end points that are that distance away 4) randomly select one as you can see, i …

Member Avatar for JamesCherrill
0
232
Member Avatar for imti321

<label class='colwidth' for='selectc' >Select Courses*: </label> <form action="send.php" name="course" id="states"method="post"> <Select name="States" id="State" style="width:40px;" > <option value=></option> <option value="1">HTML 5</option> <option value="2">JQuery</option> <option value="android">American Samoa</option> <option value="flash">Flash</option> <option value="flex">Flex</option> <option value="javascript">Javascript</option> </Select> <input type='submit' name='course' value='Submit' /> </form> And my php file is this <?php //Place state array at the …

Member Avatar for Webville312
0
367
Member Avatar for Eternal Newbie

I'm having a nightmare here! I'm calling 2 different forms, one like a loading screen and the other is the working form. The trick here is placing the 'SplashScreen1.Close()' at the end of Form2 and it will automatically close the loading screen when Fom2 finish. But I could never get …

Member Avatar for kplcjl
0
1K
Member Avatar for libathos

I tries to install a wizard for web references in eclipse, i found these plugins: org.apache.axis.wsdl2java.eclipse_1.1.0. and org.apache.axis_1.1 and when I am trying to add a web reference i get an error message: The selected wizard could not be started. Plug-in "org.apache.axis.wsdl2java.eclipse" was unable to instantiate class "org.apache.axis.wsdl2java.eclipse.wizards.WebReferenceImportWizard". org/eclipse/core/internal/utils/Assert guys …

Member Avatar for stultuske
0
247
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to send an email to a database? Example: So when the user sends an email to my websites email address the email will be broken up in to parts (Subject, From, Body etc...) and added to the database. FYI: I'm …

Member Avatar for joshl_1995
0
553
Member Avatar for Fatma30

Angles are often measured in degrees, minutes, and seconds. There are 360 degrees in a circle, 60 minutes in one degree, and 60 seconds in one minute. Write a program that reads two angular measurements given in degrees, minutes, and seconds, and then calculates and prints their sum. Constants are …

Member Avatar for KaeLL
0
132
Member Avatar for davidjennings

Hi all am am trying to reduce duplicated elements in a php page. How can I create a function that will pass the different values in the array. Thanks in advance D for ($i=$index-$x+1; $i<=$index; $i++) { echo "<div class='partner_description' id='partner_description_" .$partners_id[$i]. "'>"; echo "<p>".$description_value[$i]. "</p>"; echo "<div class='url'>"; echo …

Member Avatar for davidjennings
0
232
Member Avatar for amvx86

Hello everyone, Maybe someone out there can help me. I have this code that I am using and for the life of me it keeps throwing an error: If Len(ComboBox1.Text) < 1 Then MsgBox("You need to specify a target for this to operate properly.", vbExclamation, "Error") Exit Sub End If …

Member Avatar for amvx86
0
364
Member Avatar for proconfusion

Hi, I havea simulation in which cars are moving. The point is that a car has a start point (coordinates x and y) and an end point (coordinates x1 and y1). I'd like to make sure that the distances that the cars need to travel are following a gaussian distribution …

Member Avatar for proconfusion
0
149
Member Avatar for Squidge

Good afternoon all. I have built the below class, and seem to have a problem where nothing is being displayed: <?php include_once '../include/tableStructure.php'; include 'crud.php'; //<- class by pritaeas class navigation { public $dsn; public function __construct() { $this->dsn = new crud($username, $passwd, $tableConfig); } public function nav($table, $live, $loc) …

Member Avatar for Squidge
0
260
Member Avatar for MasterHacker110

I got into graphics programming a few days ago. I did some graphics before but very little in Ittlicht (a complete game engine with sound, rendering, network etc...) But I heard about DirectX and how great it is for games and other 2D and 3D graphics. But the API is …

Member Avatar for MasterHacker110
0
147
Member Avatar for SQLpower

Hello. So, I have 2 questions. First is: I am trying to calculate the expiration date which will be calculated as adding the current date + the option that has been select i.e. 30, 60 or 90 days. $EXday = date('d', mktime(0,0,0,0, date(d) + $_POST[exdays], 0)); $EXmonth = date('m', mktime(0,0,0, …

Member Avatar for SQLpower
0
256
Member Avatar for ravinder yadav

when i run(compile/debug) an app after editing then it shows exception and save all changes.I shutdown my pc and when after restarting i run it again then code runs fine. if any one knows reason of this .please do tell me.

Member Avatar for ravinder yadav
0
101
Member Avatar for london-G

Hello, I have one method for checking fields entered, if they are consistent enough then I am inserting into the database. Another on to check duplicates: //check fields and if alright insert in table public void checkFields(String a, String b, String c, String d){ if(a.length() >= 4 && b.length() >= …

Member Avatar for stultuske
0
116
Member Avatar for Lemorlenny

Hi, I hope I'm in the right place, I'm not an ASP.NET expert, I'm developing a site where I use MSAccess to data base. All works well except for a Class, cut and pasted, where I tried to open my access table. I used the same namespace used in all …

Member Avatar for james6754
0
8K
Member Avatar for Victoryy

Hi All, I am developing a windows application which uses Ms Access Database. The code is working smoothly in Visual Studio. But, when I create a setup for that project and install it on any machine. I am not able to write data in that datbase. I think its because …

Member Avatar for Victoryy
0
197
Member Avatar for cool_zephyr

hey i'm trying to generate numbers from 1 to 3 in a way such that number 1 has the probability 70% being generated number 2 has the probability of 20% of being generated number 3 has the probability of 10% of being generated how do i do that?? can anyone …

Member Avatar for cool_zephyr
0
209
Member Avatar for joeyliew7

how do i convert this code to VB? i am new in VB.Pls help. ABC (int xyz) { If xyz==0 { return(0) } else { return (xyz + ABC(xyz-1)); } }

Member Avatar for joeyliew7
0
216
Member Avatar for sash_kp

While copying a code snippet from some sites and pdf,docs line numbers are also getting copied.I have to omit those line numbers in my text editor manually always. Any better way so that line numbers won't be copied?

Member Avatar for ddanbe
-1
298
Member Avatar for code_rum

Hi, I have imported .csv file and column is appearing as Col 1, Col 2... and the data I want as a column name is appearing as a first row. How do I convert my first row into column name in phpmyadmin. Thanks in advance

Member Avatar for code_rum
0
1K
Member Avatar for raajsj

**Hai all,** I am developing web application using Asp.net frontend and MS Sql is backend, and i don't know **how can i retrieve Bit(Data Type) value from my database**, i don't know this... please anyone help...

Member Avatar for raajsj
0
136
Member Avatar for furalise

Hi all. I've read allot about streams but I'm wondering if anyone can tell me why cin >> stringstream doesn't work? I'm getting there but my understanding has some floors in it. eg. stringstream Mystr; cin >> Mystr; Thanks so much.

Member Avatar for furalise
0
4K
Member Avatar for eddiesaliba

Hi! I am testing the "session" object and I don't know why it is losing data when I change the web page. I created a simple software to show the problem: See the code: Page index.jsp: ============== <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Login</title> </head> …

Member Avatar for eddiesaliba
0
873
Member Avatar for Varunkrishna

I had created a dropdownlist box as follows. The contents of default.aspx is listed below <asp:DropDownList runat="server" ID="day" CssClass="dobselect"> <asp:ListItem Value="0" Text="DAY"></asp:ListItem> </asp:DropDownList> <asp:DropDownList runat="server" ID="month" CssClass="dobselect"> <asp:ListItem Value="0" Text="MONTH"></asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="year" CssClass="dobselect" runat="server"> <asp:ListItem Value="0" Text="YEAR"></asp:ListItem> </asp:DropDownList> Then in the default.cs.aspx I had added the following code to …

Member Avatar for |-|x
0
2K
Member Avatar for davidjennings

Hi all I have an sql output query problem I am trying to resolve. The problem is that I have centres that offer Awards and quals and some centres only offer awards or quals only. What I need to process is the centres that offer both awards and quals. tbl.net.qualification …

Member Avatar for davidjennings
0
172
Member Avatar for ytrobe

I am using WAMP server to code a form. The form contains 6 different pages. On the WAMP server when I go through the form it works perfectly, all session variables are brought from one page to the next, and so on. I call session_start() before each and every page …

Member Avatar for ytrobe
0
2K
Member Avatar for davidjennings

Hi all I am request the following data from the database (image_id and description). I need to put each of them in a separate arrays and then echo out contents of both arrays I have tried array_push and implode without success. Any assistance would we appreciated. Thanks in advance D …

Member Avatar for davidjennings
0
3K

The End.