43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for lukky

Please tell me the code for how to display record in datagridview based on combobox selected item. I have a table named table1 in sql server database.and columns are name,id,group,grade,year.when i seleted one name from my table then the remaining fields information(ie only that record)have to dispaly in datagridview by …

Software Development display
Member Avatar for riyamanavalan@g
0
316
Member Avatar for latrodectuss.imvu

How can I delete the old entries from the .txt file and replace them with the new ones? Like : I have a text file that has "123" in it, when I try to change the txt file it just adds the new text, I add "abc" to it and …

Software Development c++ ios
Member Avatar for latrodectuss.imvu
0
389
Member Avatar for robbia.gulnar

Write a program that lets the user to enter datain a 4 X 3 matrix of integers, and then determine and return the largest element exist in the desired row.The program calls the following functions, which you have to implement: getData – accept a matrix with its size and fill …

Software Development c++
Member Avatar for iamthwee
0
114
Member Avatar for PulsarScript

Hi here is my code,can someone help to edit the directory.getfile(),so i could output all files in c:\ Windows ? using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LogicalDrives { class Program { public static void GetLogicalDrives() { string[] drives = System.IO.Directory.GetLogicalDrives(); foreach (string str …

Software Development
Member Avatar for sfuo
0
203
Member Avatar for muhammad_74

Hi, I want to learn java as young but i use Arch linux since i was kid so how can i get the emulator or what required softwares.I have java 7 installed. Reply as soon as possible to noob guy. Thanks,uxama

Software Development java
Member Avatar for muhammad_74
0
460
Member Avatar for jac@

Hello i am new to programming i trying to solve the follwing Allow 6 different players to throw dice 100 times The results sholuld be stored in the collection SCORES. Read the contents of SCORES and output many times in total each number was thrown. Also output whether or not …

Software Development python
Member Avatar for HiHe
0
544
Member Avatar for bonzo2008

Can I save the information from common dialog Save as Jpg or Bmp format to an INI file and retrive it when the program starts. Now I have this line Image4.Picture = LoadPicture(App.Path & "\test.bmp") to load the picture. and it's not good. I would prefer to have that the …

Software Development visual-basic
Member Avatar for bonzo2008
0
259
Member Avatar for Julie_2

I cant figure out what arguements to use or really even what arguements are. #Template for Program 2 #The keyword "pass" is a placeholder that does nothing #Move each line of original code into the appropriate module #Add arguments to calcBMI() and displayResults() as needed #original code -- not in …

Software Development python
Member Avatar for Julie_2
0
503
Member Avatar for shahera.arafat

hi ^_^ I want to ask what is the difference between (System.out.println(B);) and (System.out.println(new string(B));) ?! actually it gives me the same output in my code! so then >>what is the use of [new string(array)] in general ??? thank U :))) public class CopyArray { public static void main(String[] args) …

Software Development java
Member Avatar for JamesCherrill
0
394
Member Avatar for giancan

Hi, I have two dictionaries and what I would like to do is to search if an item from dict1 is present at least 3 times in dict2. If so, do something. At the moment, I have something like this for line2 in list2: to_find=line2[3]+line2[4] if to_find in dic1: new_string=((" …

Software Development python
Member Avatar for giancan
0
239
Member Avatar for jez9

Private Sub LVlist_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LVlist.SelectedIndexChanged If LVlist.SelectedItems.Count > 0 Then With LVlist.SelectedItems(0) VarIdentifier = .SubItems(0).Text lblname.Text = .SubItems(0).Text End With pix() End If end sub Sub pix() sql = "select pic from tbldishlist where nod = '" & lblname.Text & "'" Dim acscmd …

Software Development vb.net
Member Avatar for jez9
0
337
Member Avatar for Vb.Netter

Hi insert command works update does not do anything any help Please SqlTimes.InsertCommand = "insert into athletedata([Athlete],[Mydate],[session],[mytime]) values ('" & athletename & "','" & storedate & "','" & todaysession1 & "','" & savetim1 & "') " SqlTimes.Insert() SqlTimes.UpdateCommand = "UPDATE Members SET [Agegrade]=('" & savetim1 & "'where [Fullname]='" & athletename …

Software Development session sql vb.net
Member Avatar for Santanu.Das
0
321
Member Avatar for PulsarScript

I need to appned .txt to user input,like course and put in to the file,looks like i managed to do it ,but in second part need arraylist and insert into it subjects and then right to the text file and ouput/display. For some reason the 'exit' is diplayed too and …

Software Development
Member Avatar for ddanbe
0
169
Member Avatar for PinoyDev

Good day! I just need a little help on how to get the last months date (dd/mm/yyyy) between two dates? I have two date pickers(fromdate & todate). Ex. If fromdate is 24/01/2015 and todate is 24/12/2015, it should enumerate the end of the months starting fromdate to todate. So the …

Software Development visual-basic
Member Avatar for PinoyDev
0
144
Member Avatar for DS9596

The total bill doesn't add up correctly, don't get where I went wrong? Total bill is way off. #include <iostream> #include<cmath> #include <iomanip> #include <string> using namespace std; const float Small = 1.20; const float Medium = 1.50; const float Large = 1.70; const float less_inches = 3.75; const float …

Software Development c++
Member Avatar for DS9596
0
259
Member Avatar for cambalinho

the RegisterHotKey() is limited? everytime that i create a button control the RegisterHotKey() id isn't the same. //on constructor: ++ButtonCount; altmessage=ButtonCount; now the hotkey message: case WM_HOTKEY: { if (wParam==inst->altmessage) { SendMessage(inst->hwnd,WM_COMMAND,BN_CLICKED,lParam); } } break; and now how i regist the hot key: case WM_DRAWITEM: { DRAWITEMSTRUCT *test=(DRAWITEMSTRUCT*) lParam; UnregisterHotKey(inst->hwnd,inst->altmessage); …

Software Development c++
Member Avatar for cambalinho
0
295
Member Avatar for markdean1989

I wonder why this program does not do any changes to the text file that I am trying to modify. Scenario: My program uses the Fstream header file, I declared infile as IFSTREAM and outfile as OFSTREAM. I simply want to transfer data from infile to outfile. The data is …

Software Development c c# c++
Member Avatar for markdean1989
0
365
Member Avatar for Hari om

I want display window form when user double click node in treeview.

Software Development display
0
90
Member Avatar for ShilohAmi

If I have an array >>> a=np.array([[1,2,1],[3,4,2],[6,5,3],[7,8,4]]) >>> a array([[1, 2, 1], [3, 4, 2], [6, 5, 3], [7, 8, 4]]) and I want to find if first column which have value=6 and if second column have value=5 using "IF" "ELSE" I try with: b=6 c=5 if (b in a[:,0]) …

Software Development python
Member Avatar for ShilohAmi
0
244
Member Avatar for A_Dubbs

I am doing my homework and am having trouble on a certain problem. [I]4) A certain CS professor gives 100-point exams that are graded on the scale 90-100:A, 80-89:B, 70-79:C, 60-69:'D, <60:F. Write a program that accepts an exam score as input and prints out the corresponding grade.[/I] We have …

Software Development python
Member Avatar for vegaseat
0
13K
Member Avatar for webmeat

Hi everyone, I am having trouble comprehending or digesting the programming mentality. I'm learning Python and while I completely understand the syntax as well as the language itself, my problem is more toward the comprehension of thinking like a programmer. For example, once a programming exercise is explained, it all …

Software Development python
Member Avatar for Gribouillis
0
226
Member Avatar for Foday_1

def fileToString(filename): myFile = open(filename, "r") myText = "" for ch in myFile: myText = myText + ch return myText def countVowels(text): vcount = 0 vowels = ['a','e','i','o','u'] for letter in text: if (letter in vowels): vcount = vcount + 1 return vcount write a program to calculate the following …

Software Development python
Member Avatar for HiHe
-1
244
Member Avatar for tucker046

Hi, I am Populating a combobox from a directory but im wanting to filter some file names from showing in a specific Combobox. Im a newb at this VB stuff and could use the help! Here's the code im using to pull the filenames from my C:\ drive but i …

Software Development vb.net
Member Avatar for tucker046
0
449
Member Avatar for Search_not

I'm having a problem appending `std::wstring` to my Win32 edit. It compiles without errors, but the displayed text is not what was originally in the `std::wstring`. Is there a better way to do what I'm doing(below), or should I use the RichEdit(last resort option). My appendTextToEdit function below is self-explanatory, …

Software Development c++
Member Avatar for Search_not
0
184
Member Avatar for parth2911

I am trying to get my database data in particular variable. my database handling class and i am trying to store data in currunt form class var list = x.Rows(); if (list.Count != 0) { Object[] ar = new Object[4]; //Object[] ar = list[0]; list.CopyTo(ar, 0); var quntity1 = (int) …

Software Development
Member Avatar for parth2911
0
157
Member Avatar for doule

Hi, I am working on a GUI (more correctly, trying to), but I just don't really get it to work the way I want. The idea is to have a first list, where the user chooses one of the choices. Then depending on that choice, a new window pops out …

Software Development gui python tkinter
Member Avatar for Gribouillis
0
227
Member Avatar for GianiD

Hello I have a project where I have 2 textboxes called "Name program" and "Error" where I have to write data in, Once I have wrote the data I have to import these 2 textboxes into an SQL database so it has to show like this in the database: Name …

Software Development sql vb.net
Member Avatar for GianiD
0
270
Member Avatar for manalibhadula

Can anyone help me how to pick all the files(many files) of some particular extention(.csv) and transferring it to remote server using Jsch channel. Please help. Regards

Software Development java
Member Avatar for manalibhadula
0
4K
Member Avatar for Brandon_7

I am trying to make a program for my AP Computer Science A Class. I wrote the following code that is supposed to allow a user to enter two numbers and then have them guess a number inbetween that number range. So far, it works 90% of the time, but …

Software Development java
Member Avatar for Brandon_7
0
318
Member Avatar for PM312

hi, i am trying to print report by ceating excel file and print. but getting below error when creating sheet2. osheet = obook.Worksheets("Sheet2") Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX) worksheet1 works fine. I have Excel 2013 installed on my system. what could be the problem. Thanks

Software Development vb.net
Member Avatar for Minimalist
0
366
Member Avatar for Papa_Don

I'm writing a routine where the user can populate up to 8 textboxes with numbers. Since there is potential for these numbers to be unsorted, I want to sort these prior to saving. However it's probable that all of the textboxes will not be used. My challenge then is how …

Software Development vb.net
Member Avatar for Minimalist
0
705
Member Avatar for CodeWarrior14

I need to get the size of a file, but I keep on getting 0 as the size, which is not the actual size. private void dodAlgorithm() throws IOException { int count; int randomValue; long fileSize; File file = new File(filename); BufferedWriter writer = new BufferedWriter(new FileWriter(file)); SecureRandom random = …

Software Development file-system java
Member Avatar for sepp2k
0
5K
Member Avatar for cambalinho

i'm trying overload the != and == operators, but i'm getting several errors :( bool operator==(const image &other) const { if(other.btBitmap==*this->btBitmap) return true; else return false; } bool operator!=(const image &other) const { return !(*this == other); } what i'm doing wrong?

Software Development c++
Member Avatar for cambalinho
0
289
Member Avatar for jez9

Hi again, i'm trying to put a background image in my button[i declare the button] , My database[ms access] , tbldishlist - name[text , Primary key], pic [ole object] when the form is loading, the button's background is according to the name of the item. here's my example: Dim btn …

Software Development image vb.net
Member Avatar for Reverend Jim
0
704
Member Avatar for differentiation

The code that has been attatched (i couldnt post it for some reason) produces the error message: Traceback (most recent call last): File "filename", line 36, in <module> for i in range(len(bytesmessage)/7): TypeError: 'float' object cannot be interpreted as an integer In this line for i in range(len(bytesmessage)/7): The variable …

Software Development python
Member Avatar for HiHe
0
251
Member Avatar for Decode098

I'm currently making a program that saves the longest and shortest words in a sentence inside a list but i cant seem to append multiple words in a list as well as enter multiple sentence and only stop after a specific text or number is inputed. Python gui still confuses …

Software Development gui python
Member Avatar for HiHe
0
303
Member Avatar for Niloofar24

Hi everybody. I'm using python to create sql database. I created a test.db file and then made a table on it with the name "fims" and inserted some data on it.... title text, year text and director text. And then set values for them. Now when i type "sqlite3 test.db" …

Software Development python shell-scripting sql
Member Avatar for HiHe
0
313
Member Avatar for compulove

I wanted to know how to send all the entered user information from the textboxes on my form to one text file. I was thinking I need to say MessageBox.Show("each textbox), but I don't think that is right. All of this is is login information plus other user data so …

Software Development
Member Avatar for ddanbe
0
211
Member Avatar for Afi83

Hello, I have an one dimension numpy array with 1 to 5 numbers. I need to map these values to corresponding numbers between 0.76 to 1.24 with 0.12 interval. Then the problem is the find exact values in one array and fill the exact index in the second array. for …

Software Development python
Member Avatar for Gribouillis
0
601
Member Avatar for Nation

I have a JTable that a user can input data. I have an image that I would want to put at the top of my page when printed and also another image that I would want to work as footer. How do I print these on the same page including …

Software Development image java java-swing
Member Avatar for mKorbel
0
1K
Member Avatar for choconom

Hi, I need to use getopt for a program called like myprogram.c file1 file2 file3 -t. Now I've read some examples about how to use switch cases for options with hypens (-t). But I don't get how to write this for my file1, file2, and file3 (they are arguments that …

Software Development c
Member Avatar for rubberman
0
180
Member Avatar for andrew mendonca

I'm trying to write the function: int sum(int x, int y) For this function, I need to return sum of m and n using only increment, decrement and unary -. m and n can be any integers e.g. if m is 4 and n is -5, the return value would …

Software Development c++
Member Avatar for rubberman
0
143
Member Avatar for bonzo2008

I will not that the code below shall count up or down '********************************* Sumtax For lngIndex2 = 1 To ListView1.ListItems.Count lngTot2 = lngTot2 + ListView1.ListItems(lngIndex2).SubItems(5) Next Text10.Text = Format(lngTot2, "###0.00") if I have say 83.67 in a listview then in the text10.text shall be the same amount no differens text10.text …

Software Development listview visual-basic
Member Avatar for bonzo2008
0
159
Member Avatar for andrew mendonca

I am trying to create a recursive function: double fifthRoot(double x, double maxError) In this function, I have to return y such that y^5 will be within maxError of x. Assume x > 0. Also assume maxError is big enough to prevent problems due to rounding. In order to make …

Software Development c++
Member Avatar for sfuo
0
408
Member Avatar for cambalinho

i have 1 class Timer. the class works fine, but when the windows loses the focus, the timer stops... why these happens?

Software Development c++
Member Avatar for cambalinho
0
292
Member Avatar for Niloofar24

Hello friends :) I'm almost familiar with Tkinter and Kivy frameworks, but i'm looking for other python GUI frameworks, soething better than Tkinter. Kivy is also great but i need to watch more tutorial videos and i'm not able to do that right now. Can you introduce a better and …

Software Development gui python tkinter
Member Avatar for vegaseat
0
844
Member Avatar for Smalls

The topic is the question, is there a way to access embedded resources folder by name dynamically via string? The closest I think I've gotten is the following code which has error "Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<string>' to 'string'", if i try to get the only folder it should return …

Software Development assembly microsoft-access
Member Avatar for ddanbe
0
298
Member Avatar for Niloofar24

Hello. How can i set an image as a Tkinter window background? I mean the whole background of the window not a photo area.

Software Development image python tkinter
Member Avatar for HiHe
0
50K
Member Avatar for jez9

help please, i really need to solve this one. when the quantity of the product is increasing/decreasing, i want the Total Price to update/increase/decrease also, but its only remain working. the button is declare, so when i click the button , all of the info of that will be transfer/view …

Software Development listview vb.net
Member Avatar for jez9
0
109
Member Avatar for jez9

ms access [tblorder - code[text], items[text], total[text]] code = lblcode [label] items= x.SubItems(1) [in listview] total = lbltotal [label] as of now i can only save 1 item in the field 'items' , but i want to save 2 or more items,how can i do that? For Each x As …

Software Development listview vb.net
Member Avatar for jez9
0
285

The End.