1,977 Topics
A method in the **controller.php** file public function invoke() { if (isset($_GET['book'])) { // show the requested book $book = $this->model->getBook($_GET['book']); include 'view/viewbook.php'; } else if(isset($_GET['add_book_form'])) { $action = $_GET['add_book_form']; include 'view/add_book.php'; } else if(isset($_GET['add_book'])) { $title = $_POST['title']; $author = $_POST['author']; $description = $_POST['description']; $this->model->addBook($title, $author, $description); include("view/add_book.php"); } …
Hi everyone, I want to know if its possible to do the following: I have 2 users and 2 forms. When user A (Admin) logs in on the Log In form, the Main Form appears with ALL its buttons enabled (For editing purposes). BUT when user B (Normal user) logs …
In light of the regular if slow traffic in certain specialized questions - especially regarding operating systems development and compiler development - I would like to suggest that a sticky be added to the Software Development forum giving links to specialized sites such as OSDev.org, where those sorts of questions …
I am new to c# .I am having trouble to add a datagridview in the below code. can someone tell me how to do it? thanks using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlServerCe; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace _35c { public partial class …
I have an OpenVZ unmanaged VPS. Installed the control panel, LAMP stack, have the DNS and domains on the new nameservers(showing up if you go to the domains) But when i run a pingdom check i have an SOA error. Was reading that it is probably a reverse DNS issue...What …
Hello everyone my name is Nuruddeen Hayatu Majidadi, am a student at the American University of Nigeria studying software engineering and my friends call me Ruby because i love to write ruby codes. Am looking forward to work wit all of you guy, i love programming, you can ask for …
I am interested in Java programming and software development. I hope I fallen in good hands.
Being an IT professional, I really feel bad for the prospects. There are continuous follow-up calls made everyday. People want to crack the deal. **What about going a little beyond the usual and trying to figure out what happened instead of just letting go? How about asking if there was …
Does anyone have Path, statement and Decision coverage Document with Control Flow Graph example and test case example? If yes then Could it be possible for any of you to share with me. :) Because I'm learning these things. I know basic coverage of Path, statement and Decision. but need …
Hello DaniWeb community! I recently posted a question asking about the character creation screen and that it is all set! I then continued with form validation, and storing values and spitting them back out in a message box. Then I made the create a character screen close, and open the …
hi guys I wanted to know what your perspective is of creating your own software and selling it or become a reseller of someones else software What is your take on it?
please i want to start some online course on software programing
Hi i have crate an Partial view with name "_Menu" it's view items as menu and sub menu in my website _Menu Partial view Code: @model IEnumerable<MainCats> @using GoShope.Models.GoShopeDB; @{ IList<MainCats> mainList = Model.Where(id => id.IsCompany == true).ToList(); } <div class="panel-group category-products" id="accordian"> <div class="panel panel-default"> @foreach (var item in …
Hello. I'm a software engineer at NASA. I was wondering how some programmers would go about making a guidance system. I have a design but I want to compare it to other programmers in order to improve it.
I have this AVG Tuneup 2014 installed days ago, expired free trial and of course, like many other software, will ask you to buy the pro version. I would love to buy the pro version but I just do not have a credit card yet (common in my country). So …
private void Login_page() { var i = 0; while (i < 5) { if (textBox1.Text.Equals("admin")) { if (textBox2.Text.Equals("parth")) { } else { textBox1.ResetText(); MessageBox.Show("passwod is wrong try agine"); i++; } } else { textBox2.ResetText(); MessageBox.Show("username and password is wrong"); i++; } } if (i == 5) { MessageBox.Show("you tried max …
I noticed this afew times and it only seams to do it on my own application and am wondering if anyone knows how to reslove this I have attached a image showing the theme problem for some reason my richedit scroll bar will go blocky and have spaces. any one …
I know c++ basics only, how to start doing software development and game development in c++....????
Hi, I am writing an application in vc++ 2008, where I am required to send the video data (320x240x3) information through the VGA port of my laptop. Is there any functions or class that can help me to accomplish the same ? Thanks
Hi boys and Girls, Quick question I cannot seem to find the answer to: Why use CodeDOM to generate a class over say saving the structure of your code as text to a notepad and renaiming it to .cs? or just save it as a .cs file outright? Why go …
This is the code i'm using to view the modules being used by a process . string Selected_Process = listBox1.SelectedItem.ToString().Replace(".exe",""); Process[] ObjModulesList = Process.GetProcessesByName(Selected_Process); ProcessModuleCollection ObjModules = ObjModulesList[0].Modules; listViewModules.Items.Clear(); foreach (ProcessModule objModule in ObjModules) { item1 = new ListViewItem(objModule.ModuleName); item1.ImageIndex = 1; item1.SubItems.Add(objModule.FileName); item1.SubItems.Add(objModule.FileVersionInfo.CompanyName); item1.SubItems.Add(objModule.FileVersionInfo.FileVersion.ToString()); item1.SubItems.Add(objModule.FileVersionInfo.FileDescription.ToString()); listViewModules.Items.AddRange(new ListViewItem[] { item1 …
I am facing an issue and am hoping there is an easy way to do this. Is there any possible way to invoke a method from another project without a reference to it? I am unable to reference the project due to circular referencing.
Hi please help me what to do, i have a software Patch about to be installed on our production environment but my fear is it also has some options (which were intentionally built for other of the vendors client) that can make our system freeze if accidentally selected. Our current …
It was tinstaafl who put me on the right track. [Click Here](http://www.daniweb.com/software-development/csharp/threads/450463/graph-plotter) I did not know that .NET as of VS 2010 had a charting control! OK, let’s get started! But the learning curve, is as always, a bit steep. MSDN does not seem to provide too much code, so …
hello im a computer systems engineer, currently im doing masters in software engineering.
I create a thread within the main form load event of the application and initialize it with a method then start this thread and there is no problem till this point the problem is that when I click on any button on the main form to open another form lets …
Hi guys: I'm developing a small desktop app in c# and i was wondering if there was a way to set a specific user for a specific deployment of the app (eg. software on pc A has user 1 and software on pc B has user 2). I'm wondering if …
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace JonesJAsign9 { public partial class frmReservation : Form { const int PRICE_PER_DAY = 115; public frmReservation() { InitializeComponent(); } private void frmReservations_Load(object sender, EventArgs e) { } private void btnExit_Click(object sender, EventArgs e) …
I came across this must-read article. I was a maintenance programmer for 29 years and I've come across many of the deadly sins that he discusses and maybe even one or two that he does not. [How to Write Unmaintainable Code by Roedy Green](https://www.thc.org/root/phun/unmaintain.html).
Hi, I have a Blackboard object which is a singleton, what it does is store the message and the reciever. The challenge is that the blackboard will send an alert to the reciever and the reciever have to check the blackboard for the message. class Subscriber{ public: virtual ~Subscriber() {} …
I need a form that accepts scores from the user, displays the total, count, and average of the scores, and displays a dialog box that lists the scores. Operation The user enters a score. If the user clicks the Add button or presses the Enter key the application calculates and …
Good day/night to all; As the title says, its really troublesome. Lets say i have form1 and form2 i want form1 to hide while form2 shows, what i do is get a button and use this code: Form2 trials = new Form2(); trials.Show(); this.Hide(); this will hide form1 and show …
Hi all, I would like to learn on the best practices in code nad software documentation. Also would be great to learn about tools if any for this purpose. Thanks and Regards Nagen
I have been developing window form applications for probably the last 4 or 5 years, and have drasticially improved my UI designing, which I am rather proud of, as it's a art form you might say. A whole thing of its own on top of development. But while I have …
i am a student of computer science , i like to be a software application developer , but i am confused still about be ** a java software developer or .Net software developer**.....because in Pakistan 1) .net jobs are more ,2) .net application takes less time to compute,3) mostly people …
I am a fresh learner in C#. I have this code below.I managed to display the data from the property table into their respective text boxes. But I failed to display the filtered propertyunits into the xtraGrid. private readonly IPropertyService _propertyservice; private readonly Property _property; private readonly IPropertyUnitService _propertyUnitService; private …
Can someone help me out writing hex string to file hex address from textbox? This is my current code: private void button1_Click(object sender, EventArgs e) { BinaryWriter wr = new BinaryWriter(File.OpenWrite(listBox1.SelectedItem.ToString())); for (int i = 0x83C410; i <= 0x83C417; i++) { wr.Write(textBox1.Text); } wr.Close(); } But it doesn't work after …
Hi there everybody. I hope you are all well. I have a question about planning and designing computer programs. Can someone tell me how someone going about a large program would go about this. There would be allot of classes, functions, modules etc. I want to learn how to do …
Hi Answerers, **Background:** I just figured out how to solve my unresolved external symbols by just dragging the project files from explorer (contained in exe's directory) and plonking them in the dll project, under thier own filter! **Original Situation:** I was getting 'unresolved external symbols' errors because I was #include-ing …
I am learning about design patterns in C# specifically the Bridge pattern. The GoF definition for the pattern states "Seerates an objects interface from its implementation". I have a question: Isnt an implementation of the interface always seperate from the interface itself? What exactly does the definition mean? Thankyou
Hi Dw I know this may not be popular to many people but it a standard for financial industry. I'm developing a WOSA XFS app, I've developed the part that deals with calculating denominations, determines how many CU can be dispensed for each CU denomination. Now the problem is that …
The title may not be as clear so let me elaborate a little bit. I am creating an application that minifies CSS and JS files for web developers. All of the code is working perfectly except for one little pesky bug I can not figure out! Here is my code …
I'm having some problems cleaning up some of the processes my windows form application creates. I'm using selenium which starts a process instance of a browser and a browser driver among other things. Selenium library provides a Quit() method which if called inside my running application works just fine at …
Hi, I am working on an assignment in c# where I have to maintain student scores...there is a few questions up here already about it but I am still having problems. I need to create a program that allows the user to enter student names and scores... I gather I …
As some of you may already know, there are significant health risks that can result from too much sitting. Research shows that it can contribute to weight gain, cardiovascular disease and cancer. This is different from the effects of a lack of exercise. Even if you exercise once a day, …
I am currently trying out a code to generate image from html pages and i was trying with the code from [bitmap webbrowser](http://www.charith.gunasekara.web-sphere.co.uk/2010/09/how-to-convert-html-page-to-image-using.html). some how i just keep on getting error when the following method run for second times (i guess the threading is the main issue). i am using …
Does the design pattern play any important role in the development of quality applications by using structured and object oriented paradigm? Justify your answer with logical reasons.
Hello All, I have searched every forum and google etc but nothing directed me in right path. Requirement: I am using a COM object which can be initialized only once. But, when I try with webapi the first run goes fine and the rest fails as the COM object does …
Greetings, I'm using InstallShield 2010 premier. I need to include another .msi application within the project I'm creating and I do not know how to do this I did googling and I did not find any useful article about this. If any one can help me I'm searching for 3 …
Hi coders Can anybody give me steps to access Class Diagram feature in VS 2010.I have searched for it using web but couldn't find it in VS 2010.
The End.