588 Posted Topics

Member Avatar for siriphonic.ner

Use [URL="http://www.java2s.com/Code/Cpp/Language/ifelseifelsestatementinaction.htm"]this [/URL] to get started. And yes, please post your half of the code.

Member Avatar for siriphonic.ner
0
2K
Member Avatar for Duki

Thought this would get a lot of response... Is DaniWeb comprised of more men or women?

Member Avatar for dream party
0
348
Member Avatar for askreiyna
Member Avatar for askreiyna
0
79
Member Avatar for pepemongo13
Member Avatar for Rickay

And sure enough - [URL="http://www.daniweb.com/forums/thread6542.html"]click me[/URL] :)

Member Avatar for Rickay
0
152
Member Avatar for udigold1

Have a look [URL="http://www.daniweb.com/code/snippet217193.html"]here[/URL]. That should get you started. Let me know if you have any questions.

Member Avatar for Geekitygeek
0
1K
Member Avatar for ZlapX

[quote]i am putting all of this in caps because usually that helps people understand...[/quote] LOL (i put that in caps, to help you better understand)

Member Avatar for Duki
-6
139
Member Avatar for Duki

Hey everyone, I have an application I'm writing (that a few of you have given me a good bit of help on) that will be used to check out assets and check them back in. It's working pretty great for items that are checked out *today* but I need a …

0
58
Member Avatar for judithSampathwa

I just tried calling, and the phone number isn't working anyways so no worries! :)

Member Avatar for nick.crane
0
279
Member Avatar for Duki

Hey everyone, I'm having an issue where my application will keep Excel running even after it closes. I think I'm closing everything properly, but is there a way to check on close? Here's part of my code: [code=c#] ////////////// Part of ExcelWriter class public void CreateSheet(Laptop lptp, string file, string …

Member Avatar for Duki
0
459
Member Avatar for Duki

Hey everyone, I have a warning message in my app saying "Unreachable code detected" - Here's a snippet: [code=c#] //Files are sometimes not closed quickly enough - these loop variables allow for the system to wait and try again const int MAX_TRIES = 3; int loop = 0; ... public …

Member Avatar for Duki
0
218
Member Avatar for judithSampathwa

Have a look at [URL="http://www.daniweb.com/forums/thread296413.html"]this thread[/URL]. That should help. ............

Member Avatar for judithSampathwa
0
113
Member Avatar for judithSampathwa

Try something along these lines: [code=c#] this.Hide(); Form_Login form_login = new Form_Login(); form_login.Owner = this; form_login.Show(); [/code]

Member Avatar for Geekitygeek
0
468
Member Avatar for Duki

How can I specify which sheet I want to write to by name? For example, I want to specify that the sheet I should be modifying should be labeled "212". Also, perhaps a more challenging question. How can I ensure that the sheets I create are always in alphabetical order? …

Member Avatar for Duki
0
170
Member Avatar for Duki

Hey everyone, For logging purposes, I want to pass an entire row of my DB to a file. Is there an easy way to store a row of items into an array or something similar that I could pass to a function for parsing? e.g., array = SELECT * FROM …

Member Avatar for k.d.m
0
160
Member Avatar for Duki

Hey everyone, I have an excel file I'm trying to work with. I can open it, write to it, and save it fine. But now I'm trying to work with adding sheets, and modifying the names of those sheets. For some reason though, my app keeps locking my excel files. …

Member Avatar for nick.crane
0
107
Member Avatar for Duki

Hey everyone, Does anyone know how to specify which sheet you're going to be modifying in an exel worksheet? For example, if I have an Excel file that has 5 sheets, and I want to modify (4,7) on sheet 3, how would I do that? Here's what I have so …

Member Avatar for nick.crane
0
207
Member Avatar for Duki

Hey everyone, I have a label that gets data from a database and uses that as the .Text field. I want to compare this .Text field with an integer value, but I can't convert the text. The value I'm trying to convert to integer is "25,000". Here's what I've tried: …

Member Avatar for Lusiphur
0
440
Member Avatar for Duki

Hey everyone, I'm not sure where I should be posting this - if a mod finds a more appropriate form, feel free to move it. I'm trying to figure out how to not only require .Net 4.0 with my installation package, but in the case 4.0 isn't installed already have …

Member Avatar for Duki
0
152
Member Avatar for programming2010

Does the combo box contain data from your database? In other words, did you manually put the selections in your combo box or are they from the same database?

Member Avatar for Duki
0
71
Member Avatar for Duki

Hey everyone, I've attached a screenshot of what I'm experiencing. I've selected the fields I want to view in my DataGridView several times, but (seemingly with no pattern) my application will reset the DataGridView to show every field in my database. Attached is a screenshot of what fields I want, …

Member Avatar for Duki
0
79
Member Avatar for Duki

What am I missing here: [code=c#]if (textBox_End_Miles.Text != "" && Convert.ToInt32(textBox_End_Miles.Text) > Convert.ToInt32(label_Start_Miles1.Text))[/code] I keep getting a runtime error any time I modify the textbox.

Member Avatar for nick.crane
0
158
Member Avatar for Duki

Hey Everyone, I'm trying to have a form autosize when a user clicks on a Link Label. When the Link Label is clicked, I want the form to expand slightly, and show a tab control that I've created. I can't figure out how to use the this.autosize feature correctly for …

Member Avatar for Duki
0
2K
Member Avatar for Duki

Hey guys, I have some overloaded functions that I want to get out of my main form.cs - is there an easy way to do this? I know in C++ you can just #include somefile.h and whatnot, but I can't find a way to do this using C#? Basically, all …

Member Avatar for nick.crane
0
109
Member Avatar for Duki

Hey guys, Is there any way to call the click event of a linklabel? E.g., I have a form that should call linkLabel_refresh_LinkClicked when it closes. Is that possible? Thanks

Member Avatar for Duki
0
121
Member Avatar for Duki

Hey guys, I have a splash screen I'm loading here: [code=c#] private void main_Form_Load(object sender, EventArgs e) { //Load Splash Screen this.Hide(); Form_Splash form_Splash = new Form_Splash(); form_Splash.Owner = this; form_Splash.Show(); System.Threading.Thread.Sleep(3000); form_Splash.progressBar_splash.Value = 10; form_Splash.label_Process.Text = "Checking Authentication..."; System.Threading.Thread.Sleep(2000); // Create the context for the principal object. PrincipalContext ctx …

Member Avatar for kdion1024
0
151
Member Avatar for Duki

I've spent the last couple of days researching how to connect to a database server and modify the data in that server. I was able to find a lot of information on how to Read from a database, but I found very little material to assist with Writing to a …

Member Avatar for Duki
0
821
Member Avatar for Duki

Hey Guys, I'm connecting to an SQL server and updating some fields. This works: [code=c#]cmd = new SqlCommand("UPDATE Laptops SET Checkout_Date = '" + form_CheckOut.checkout + "' WHERE name='pen-laptop1'", conn); cmd.ExecuteNonQuery(); [/code] But this one doesn't: [code=c#] cmd = new SqlCommand("UPDATE Laptops SET " + " isCheckedOut = 0" + …

Member Avatar for Duki
0
76
Member Avatar for Duki

I've noticed a lot of complaints about the new layout of DaniWeb. Even I bickered when I started coming back recently. I just wanted to say that I'm starting to really like the new layout and features. Specifically I like how speedy the page loads are, the floating menus at …

Member Avatar for diafol
0
194
Member Avatar for Duki

Hey guys, I just came back to ask a question after a month or so of not being here. It took me some time to find the "New Post" button at the bottom of the page - honestly, I almost gave up and went to a different site. Could be …

Member Avatar for happygeek
2
214
Member Avatar for Duki

I have a datagrid showing my items - I want to modify a field in the database when the user clicks a button. So if row 3 is selected, I want to modify "SomeField" in Row3 to True. Is there an easy way to accomplish that?

Member Avatar for Duki
0
94
Member Avatar for Duki

Hey Guys, I have a tabpage on my form, and I want to populate it according to which fields are set in a database. For example, I want tab#1 to list database fields of all items that have a particular field set to True. I want tab#2 to list the …

Member Avatar for Duki
0
221
Member Avatar for Duki

I may be overlooking something here. I can't find a way to skip to page 2,3,4,etc. of threads I'm posting in until scrolling to the bottom. Would it be a bad thing to have the page links at both the top and bottom of the thread you're posting in?

Member Avatar for TrustyTony
0
138
Member Avatar for Duki

Could someone show me a good tutorial on setting up a free vpn?

Member Avatar for henduo12
0
147
Member Avatar for Duki

Hey Guys, Here's my code - for some reason, the message boxes aren't showing when I run the application. However, it shows up fine when I click the button on the form. Any idea why this would happen? Thanks. [CODE=c#]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using …

Member Avatar for kvprajapati
0
332
Member Avatar for Duki

Hey Guys, I'm creating an application that will require specific privileges. Users will eventually be add/removed from this group; I was wondering if there's a way I can tie in an Active Directory group to the software? Something that would let me say "if you're part of this group you …

Member Avatar for Duki
0
263
Member Avatar for Duki

One feature I love about other user-help forums is the ability to mark a specific post as the answer to the thread, and then have that post displayed directly under the original post. Yahoo, spiceworks, and MSDN(i think) sites use this feature a lot, and it makes finding solutions to …

2
104
Member Avatar for OurNation
Member Avatar for torham
0
14K
Member Avatar for Duki

Hey everyone, I'm using C# ASP.NET and am trying to bind a field in my SQL database to a label. I have a combo box working OK with my database right now, and I want the label to change when the combo box changes. Could someone give me a hand? …

Member Avatar for ozgkrc
0
64
Member Avatar for eXceed69
Member Avatar for Duki

Hey guys, I'm trying to run this code [code=c++] // Copyright (C) 2001-2003 // William E. Kempf // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <boost/thread/thread.hpp> #include <iostream> void helloworld() { std::cout << "Hello World!" << std::endl; } …

Member Avatar for Duki
0
145
Member Avatar for mark88211

What are you stuck on? It looks like you've given up for the most part - I don't see a function definition for trans.left() or trans.down(). Also, where are you cin >> statements to bring in the data?

Member Avatar for mark88211
0
144
Member Avatar for Duki

Hey guys, i have this project that, when i compile, 11 of the header files cannot be opened. I have no clue why - i've never seen this type of error. The project is much to large to copy/paste here, but does anyone have an idea of what would cause …

Member Avatar for Fbody
0
560
Member Avatar for Crow13

Your array for month/day/year is too small - should be dzim[3] don't you think? Also, I'm a little confused - why are you asking for a birth date and then doing a random date later in the program?

Member Avatar for Crow13
0
205
Member Avatar for Expora

Try putting a WHILE{} inside your ELSE{} - Maybe this will solve your problem? Something along the lines of [code=c++] if (...) { .... } else { while (a != Enter || ENTER || enter) { .... cout << "type enter to exit loop" << endl ; cin >> a …

Member Avatar for Expora
0
115
Member Avatar for Duki

Hey Guys, I have a header file I downloaded for an application (actually about 20 header files). Most of them can be opened fine, but I get errors on a couple that say: [QUOTE]fatal error C1083: Cannot open include file: 'Transport.h': No such file or directory[/QUOTE] I've checked, and the …

Member Avatar for vidit_X
0
105
Member Avatar for Duki
Member Avatar for jonsca
0
101
Member Avatar for Duki
Member Avatar for ankara84

[quote=Narue;153832]>So you can't judge all teachers on the bases of one idot I do recall saying that there were exceptions, but in my experience, the majority of teachers only teach because they're not good enough to actually write code for a living.[/quote] my c++ prof was the team leader for …

Member Avatar for Nick Evan
0
2K
Member Avatar for Duki

Hi everyone, In this page: [url]http://www.pentree.com/contact/list[/url] The coloring for our logo is off slightly when viewed in FireFox. However, the image looks like it matches in IE. Does anyone know why?

Member Avatar for MidiMagic
0
80

The End.