199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for PulsarScript

Hi have a question,i know it is always a good practice to include default in the switch,but can it be omitted in this case? As i see it would be redundant. static void Main(string[] args) { bool quit = false; do { var option = ShowMenu(); switch (option) { case …

Member Avatar for TekknoDraykko
0
148
Member Avatar for Sheeraz_1

i have developed the windows application form in this when i m not inserting the image it gives ne empathy path name is not legal it didnot update without image. kindly help me what should i do string imgloc="";

Member Avatar for TekknoDraykko
0
290
Member Avatar for Siberian

A page I'm working on has a few minor hiccups with IE7. I've been informed to ignore IE7, can anyone give there added opinion ? I'd like to share the link to which I need help with !

Member Avatar for Siberian
0
149
Member Avatar for Nazariy

Hi, I am multiplying two matricies in assembly. It is a 2 x 2, and as you can see they are defined down below in the code. I am also defining storate for 4 words so tht I can save the resulting matrix. 1. I declare offset fo each matrix …

Member Avatar for Schol-R-LEA
0
230
Member Avatar for Computer Savy
Member Avatar for TekknoDraykko
0
274
Member Avatar for smartjugal

I want to learn C# using in windows forms from the begaining..... can anyone tell me some C# windows forms text book and the author's name? or pdf books link..????

Member Avatar for TekknoDraykko
0
331
Member Avatar for Sijeveux

Hi there, I've been struggling for several days now with datatables, and I don't know how to get my individual columns being searched thanks to their each own input. When I type something in my inputs nothing happends, no filtering is done. Many thanks if yo can take that thorn …

0
104
Member Avatar for jez9

i want to print my receipt in A4 size, but the problem is when i tried to print preview the form that need to be print , it occupy the whole paper. I use Word in printing. and here's my code in print preview Private Sub frmreceipt_Click(ByVal sender As Object, …

Member Avatar for Minimalist
0
2K
Member Avatar for stokie-rich

Hi Guys hope that you are all well. I have statred to use the bootstrap framework to create my website, I have got all of my pages working and linking correctly using bootstrap and its looking pritty awesome now! I have found a video on youtube to help me to …

Member Avatar for diafol
0
816
Member Avatar for Quast

Hi It been long time since i do some codes. so i forget the basic What i want to do is that when i click on a (Bold or Italic) button the text on the RTB become bold and another click on that button the text go back normale. Can …

Member Avatar for TekknoDraykko
0
154
Member Avatar for adnan_6

please check the following error while running the BluetoothLEExplorer.Droid project from http://developer.xamarin.com/content/BluetoothLEExplorer/. D:\robotics programming\ys u\BluetoothLEExplorer_2\BluetoothLEExplorer.Droid\obj\Debug\android\src\bluetoothleexplorer\droid\ui\controls\ScanButton.java(3,3): Error: error: no suitable constructor found for Button(Context,AttributeSet,int,int) super (p0, p1, p2, p3); constructor Button.Button(Context) is not applicable (actual and formal argument lists differ in length) constructor Button.Button(Context,AttributeSet) is not applicable (actual and formal argument …

Member Avatar for stultuske
0
281
Member Avatar for kingwash

<?php $b=('some data from db') class one{ public $a=$b; } i want to initialize the $a with a variable outside the class, but it is not working. Please how can do this. Thanks in advace

Member Avatar for diafol
0
137
Member Avatar for Simon_4

I am maybe blind or so... just got nearly the same problem as before. I not get the values of the selectfields. I got 0 - 8 instead of some strings. Here is the url: http://web159.login-142.hoststar.ch/memberd/de/prices/ Here is my code I use to get it: # read size of one …

Member Avatar for bnmng
0
280
Member Avatar for cambalinho

think in these way: the eyes have the blue color, the backcolor is blue. so how can i change the backcolor without change the image\eye? (these is just an exemple for trying explain)

Member Avatar for cambalinho
0
153
Member Avatar for malatamil

In this each member has 3 type of project selection. if one member has selected "regular Project" then remaining types should be displayed in dropdown for each member. But here i tried with this code.. example i have 6 members, then 6 members can have 3 type of selections.. if …

0
109
Member Avatar for hakeemtunde

I have being trying to implement GA in java. please ccan anyone guid me on how to go about implementing it for a school that offer 13 subjects with 8 periods per day for 5days. They have 7 staffs of which some of them teach morethan one (1) subjects and …

Member Avatar for hakeemtunde
0
175
Member Avatar for OsaMasw

hello guys, good morning one of our servers recently upgraded to Ubuntu 14.04 so for this PHP upgraded to 5.5.9 all scripts on this server stopped working because they use a functions not supported by newer version of PHP, I need to downgrade PHP to 5.3 so I can make …

Member Avatar for diafol
0
644
Member Avatar for ali11

File f=new File("c:/'.'"); // I know about file class just didn't understand what kind of file "c:/'.'" is. File strRoot[]=f.listRoots();

Member Avatar for JamesCherrill
0
112
Member Avatar for cambalinho

heres my image class: class image { private: ULONG_PTR m_gdiplusToken; Gdiplus::GdiplusStartupInput gdiplusStartupInput; HDC hdcimage=CreateCompatibleDC(NULL); HGDIOBJ obj=NULL; HBITMAP btBitmap=NULL; Image *img; bool isimgused=false; int imageheight=0; int imageweight=0; int framecount=0; int intSelectFrame=0; int framedelay=0; string strfilename=""; Gdiplus::Color clrBackColor=Gdiplus::Color::Transparent; HDC hdcwindow; bool blnTransparent=true; HICON HICONFromHBITMAP(HBITMAP bitmap) { BITMAP bmp; GetObject(bitmap, sizeof(BITMAP), &bmp); HBITMAP …

Member Avatar for Schol-R-LEA
0
300
Member Avatar for iikitty

The first few digits are always "0"s and the last is "1"... I tried calculated on paper many times according to the steps in the code which I believe its logical and smooth. However it outputs "0"digits in front and "1" at last for every execution and I dun know …

Member Avatar for iikitty
0
316
Member Avatar for MasterHamster

sorry for my english its kind of its not my primary language.. i am new with programming, and also connecting databases. i use vb2008 and ms access 2010. i watched lots of videos with binding source etc on it connecting with database and i found it easy but somehow i …

Member Avatar for Santanu.Das
0
238
Member Avatar for David_53

can anyone please explain different with vector::begin() and std::begin() ?? the code is based on the book, Effective Modern C++ item13. #include <iterator> #include <boost/type_index.hpp> using namespace boost::typeindex; #define PRINT_TYPENAME(__param) do { \ std::cout << "param (" << #__param << ") " \ << type_id_with_cvr<decltype(__param)>().pretty_name() \ << std::endl; \ } …

Member Avatar for vijayan121
0
354
Member Avatar for NoobCoder85

Here is my code: ` #include <iostream> #include <iomanip> #include <string> using namespace std; class Register { //Private members private: //Creating an array for all the Prices static double Price[]; //Declaring RegNUM and RecNUM int RegNUM, RecNUM; //Print out Item name in a loop static string items[]; //Creates a Receipt …

Member Avatar for David W
0
374
Member Avatar for PulsarScript

namespace BinaryFileIO { class Program { static void Main() { FileStream BinFile = new FileStream("BinFile.bin", FileMode.Create, FileAccess.Write); BinaryFormatter bformatter1 = new BinaryFormatter(); //right to file Random rng = new Random(); for (int i = 0; i < 10; i++) { // how do i put to the file and than …

Member Avatar for yesi_1
0
135
Member Avatar for annndrey

Hello! I've got a question about implementation of a standart tree model for TreeView. I have a response from database that lools like [ [A, [a,b,c]], [B,[a,b,c]], . . . [N,[a,b,c]] ] And I want to pass it through treemodel to treeview, for in GUI it looks like that: A …

Member Avatar for vegaseat
0
3K
Member Avatar for Taqwasarwar

Hi everyone, I am a beginner in python, and I would really appreciate if someone could help me with this. Basically I am trying to write a program where I will be importing a file that has a lot of numbers in many lines, there are also some blank spaces. …

Member Avatar for vegaseat
0
311
Member Avatar for garkle

I'm in an introductory programming class, and one of our assignments is to complete a Rock Paper Scissors program using nested switch statements First of all, this method might be completely wrong in the first place, but currently every time I compile it it says I'm missing a return statement …

Member Avatar for JamesCherrill
0
398
Member Avatar for Odyssey2001

Hello!!I have a database and I want to display its data into a QTreeView in PyQt.The database's column has file paths.I have a problem in filling this treeview with data because it's a database and I'm not sure if it is like working with txt files and because it is …

Member Avatar for Odyssey2001
0
706
Member Avatar for toxicandy

I am working on an internal in and out board for our work place. Our current application is having issues plus it is being hosted on Windows Serer 2003 which is losing support come July (2015). We are starting on a new application since our old one is now 7 …

Member Avatar for mattster
0
571
Member Avatar for overwraith

Have any of you ever done big O notation? I found some websites that describe it, but not many professional ones. Are there any books that describe it too?

Member Avatar for sepp2k
0
240
Member Avatar for psvmr

I am trying to sort averages of scores in a class by pupil, from highest to lowest. My data is stored in text files like this: Charlie:0 Seema:2 Amber:4 Paige:5 Amber:8 Keith:1 Charlie:8 Seema:0 Charlie:9 Seema:3 Paige:0 Paige:4 Paige:4 Charlie:1 Keith:5 Keith:3 Here is my code so far: with open("class …

Member Avatar for vegaseat
0
972
Member Avatar for psvmr

I have been trying to create a program which the teacher log in to view the scores of a test of a school class. The scores are stored in a text file like this: Charlotte:7 Charlotte:4 Charlotte:3 Chelsea:2 Chelsea:9 Chelsea:5 Jeff:1 Jeff:10 As you can see there are multiple scores …

Member Avatar for vegaseat
0
677
Member Avatar for Hawk123

Hi, I have a database which stores details of different department. Each department have uneven number of members. Eg. Table field Department A President : 1 Vice President : 3 Treasurer : 1 Secretary : 3 Committee : 10 Department B President : 1 Vice President : 4 Treasurer : …

Member Avatar for Santanu.Das
0
194
Member Avatar for EYALSE

I have windows 7. I know C# and web services (HTML, CSS, JS, ASPX). I want to develop mobile apps with my skills for iOS (the most important option) and android. I'm looking for a studio platform that I could develop there with my skills, something that I can build …

Member Avatar for Ron_2
0
219
Member Avatar for jez9

database - field[counterx3 - Id(text)Primary Key] my code works really well before but when i changes and add codes in the others forms i got error in updating the value in my database, here's my code for update sql = "update counterx3 set ID='" & Val(acsdr!ID) + 1 & "'" …

Member Avatar for Mr.M
0
166
Member Avatar for Omar El Hussein

I've learned the basics of c++ Now, I want to develop and enter the graphics world, Any suggestions?

Member Avatar for マーズ maazu
0
184
Member Avatar for Yardood

Can someone please recommend me on a right way of working with codes? how should i plan it? how should i arrange it? every time i start a project i find myself later struggling with the difficulties of an unplanned project. how do YOU do it?

Member Avatar for Yardood
0
163
Member Avatar for Niloofar24

Hi everybody. What is the usage of `urljoin`? An example: >>> from urlparse import urljoin >>> url = urljoin('http://python.org/','about.html') >>> url 'http://python.org/about.html' I think the answer is that when we take a link from here `'http://www.python.org/` for example , it looks like this `<a href="/about/>about</a>`. So if i take the …

Member Avatar for Niloofar24
0
834
Member Avatar for marcelmarcelmarcelmarcelmarcelmarcelmarcelmarcel

Hello, for a school assignment I was supposed to write an insertion sort algorithm for a doubly linked list. As the feedback system of this particular course is rather weak (actually non-existent) I would like to ask you for your honest opinion about how well this is implemented, what could …

Member Avatar for David W
0
2K
Member Avatar for Yara Emad

Why it keeps giving me a zero answer ?!!! even though there IS a text file to search in it !! //a C++ project that reads a text from an input file and writes the same text into an output and find how much symbols are there #include <iostream> #include …

Member Avatar for David W
0
489
Member Avatar for jez9

Hi again, i am working for a new project [payroll system] , i want to know how can i calculate late like for example my working time should be 8:00am-5:00pm and one day i go to office at 8:30 am , can someone tell me how can i save in …

Member Avatar for jez9
0
171
Member Avatar for Nanyo

Hi does anyone know if it is possible to use bruteforce to check for a username and a password in a website using C++? If yes please provide some code. Thanks! (Oh, and I am going to use that with educational purposes only) :D

Member Avatar for Nanyo
0
81
Member Avatar for lokmani

Hello, my web api is not working on chrome, but working on IE a open appears at bottom contains .json files . i have all the data on it. can you check my code whats the error? public class DataController : ApiController { [Route("dataapi/category")] [HttpGet] public IEnumerable<vendor_category> Category() { return …

Member Avatar for djjeavons
0
685
Member Avatar for humorousone

I've got a program with (you guessed it) a .properties file. I've saved new values for properties while running the program through visual studio's debugging system. The changed properties are persistent when running the program (they appear in text boxes, as per my code), but when I view the settings …

Member Avatar for djjeavons
0
202
Member Avatar for Huseyin_1

I am new to java client and server and I have been given a task to complete which does the following below: Client: c1. Connect to server via a connection-oriented socket. c2. Read (from socket) and display the prompt message sent (see step s2 in server) by the server. c3. …

Member Avatar for David_50
0
349
Member Avatar for vegaseat

Well I done it! Got bored after the holidays and bought a Raspberry Pi credit card sized computer ($35), the least expensive LED TV and a Logitech wireless Keyboard/Mouse combo. The way I ordered the kit it cost almost twice as much, but it came with a good 2.5A powersupply, …

Member Avatar for vegaseat
0
670
Member Avatar for vijay90kk

scan through this API there should be a option for scan with OCR, means all content will save in database as a txt‏ Once scanning done that become a image‏

Member Avatar for peter_budo
0
116
Member Avatar for boney

Hi, I want to output a simple result. I join 2 tables and SUM one column in one, i get the SUM results correct but cannot get the num_rows proper. My Code: $clientid = 24; $query = "SELECT items.itemid, SUM(prices.priceid) as PR FROM items JOIN prices ON items.itemid = prices.itemid …

Member Avatar for cereal
0
160
Member Avatar for jim45682

Modify the Week Two Java™ application using Java™ NetBeans™ IDE to meet these additional and changed business requirements: The company has recently changed its total annual compensation policy to improve sales. A salesperson will continue to earn a fixed salary of $75,000. The current sales target for every salesperson is …

Member Avatar for jim45682
0
2K
Member Avatar for Magic8Computing

How do i get this to write to a txt file instead of message box pleaseWr Function ReceiveSerialData() As String ' Receive strings from a serial port. Dim returnStr As String = "" Dim com1 As IO.Ports.SerialPort = Nothing Try com1 = My.Computer.Ports.OpenSerialPort("COM3") com1.ReadTimeout = 10000 Do Dim Incoming As …

Member Avatar for Mr.M
0
176

The End.