8,298 Topics
![]() | |
Greetings to all. I'm using visual C# express, just starting to learn C#. I want to build a reminder system for a console App, how do I go about it? I want to be able to check the DateTime and for each different date read the string attached to it. | |
hi i am creating a login page in C#.net windows application and i have a remember me checkbox in the login interface. can some one give me a tutorial to code the remember me check box in the C# windows application thank you | |
HI, I am new to webBrowser tool in C#. If i use this code to navigate, and get the page source. Webbrowser1.Navigate("http://www.google.com"); HtmlElement he = Webbrowser1.Document.Body; string pagesource = he.InnerHtml; But i am not getting the webbrowser fully loaded and i am not getting the full pagecontent. Help me? | |
[CODE] using System; using System.Diagnostics; using System.Threading; using System.Runtime.InteropServices; //using System.Windows.Forms; using System.Reflection; using System.IO; namespace Record { /// <summary> /// Uses reflection to set up test information available in the Assembly. All classes /// containing a public static method named TestProc will be enumerated. /// </summary> public class MainTest … | |
can i find out how much memory(pysical) a specific process(application) will consume befor launching it? i wrote aan app that manage the memory usage and say i have 10% memory left to use i want to predict approximantly how much mem is needed for an app befor launching it... and … | |
can someone show me how automatic propeties work um learning C# and its kinda of confusing since i program better with java | |
I've written a C++ function which converts an integer to a (C++-)string ... [CODE=C++] ... string s = itos(5698); cout << s << endl; /* Will print '5698' on the screen */ ... [/CODE] You MAY use this code for anything you want but [B][COLOR="Red"]you aren't allowed to sell this … | |
[CODE] public class WAVEHDR : IDisposable { public const int whdr_done = 0x00000001; public const int whdr_prepared = 0x00000002; public const int whdr_inloop = 0x00000004; public const int whdr_endloop = 0x00000008; public const int whdr_inq = 0x00000010; public const int wf_PCM = 1; public IntPtr lpData = IntPtr.Zero; public uint … | |
Ok cant get my head around this one :/ But basically i need to write a program that accpets input from a keyboard "JACK ROBINSON" then it manipulates the string to output INK SON ROB JAC... Heres what i have so far: [code] #include <stdio.h> #include <string.h> void main() { … | |
Hello Everyone! My problem is this. I have a VBscript encrypting passwords using capicom.dll RC2. I want to use C# to decrypt this password. Which I can't get to work for the life of me. Keeps coming back saying 'Specified key is not a valid size for this algorithm.' (but … | |
Hi, i'm tryin to use windows authentication to log into an application i have made. I have already worked out how to get the username but i can't figure out how to get the password too. Is this possible ? if so can anyone suggest any ways to do this … | |
I'm running into a snag using the [B]_emit[/B] pseudoinstruction, but more accurately a snag using the C preprocessor. I have an array of op codes from which I want to randomly select one and _emit it into the program's code. Here is an example: [CODE]unsigned char opcodes[] = { 0x60, … | |
I am trying to read a long integer value from an Access database, do some math to the number, and save the result back to the database. I've never had a problem doing this with VB6, but with C# it is throwing an error when it tries to Update the … | |
I have a .wav file .... I want to plot the Time-domain signal and then its Fast fourier transform (fft) using the matlab commands. Please Help ... ! :) Thanx | |
This is a program for recording sound from an Audio Input device. I have taken help from the MSDN website ..... ! I did as they had mentioned .... [CODE] //wave.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Runtime.InteropServices; namespace Record { public class wave { … | |
I am just trying to get some information. Currently we have a C sharp code,looking into a trading, which drags real time date of a stock and stores it into a data base as a CSV file. However I require this live data to be autopopulated into an Open excel … | |
I need to tackle the question of threading in Visual C# application development. In its most basic use, I will need to "branch out" to SQL SPs (for example), but need to be able to inform the user that "I'm doing something" - such as the following outline: 1- user … | |
Hi, I need to find the 'length' of union between 2 vectors. The code I have is[CODE] vector<int> v1,v2; vector<int> unionsetv; vector<int>::iterator it; v1.push_back(1);v1.push_back(2);v1.push_back(3); v2.push_back(3);v2.push_back(2);v2.push_back(4); it = set_union(v1.begin(),v1.end(),v2.begin(),v2.end(),back_inserter(unionsetv)); cout << unionsetv.size()<< " "; cout << int(it - unionsetv.begin())<< " " ; [/CODE] I could not get this to work and … | |
What libraries do I require so that I can make an application for recording a sound through the microphone ? I there is something else please do let me know ..... 'cause there are code snippets available on the net .... but I wish to develop it myself ! Thanx … | |
[CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Data.Sql; using System.Data.SqlClient; using System.Configuration; using System.Linq; using System.Text; using System.Windows.Forms; namespace Eventmanagement { public partial class Registration : Form { SqlConnection aConnection; string firstname= string.Empty; string lastname= string.Empty; int aid; string date = DateTime.Now.ToShortDateString(); SqlDataAdapter da = new … | |
Could anyone please tell me where to find reference material for Matlab and C# connectivity ??? I have to use Matlab functions in some C# applications ! Thanx :) | |
Hy everyone...I would like to make a thing like the function "like" in php but in C#...It is something already implemented?I've searched on the internet and all i've founded was about regex... I'w waiting for answers..Thnx | |
Hi. I guess this is a very simple question, but really cant fint the answer that suits my needs! What I have is 2 tables in a MySQL database: Families - FamilyId - City - Phone Members - FamilyId - Birtdate The family id is of course the primary key, … | |
Hi, I try to reach Start->Control Panel->Regional and Language Options->Customize->Decimal Symbol and change of that value from windows forms app written in c#. I search different solution from this : [CODE] System.Globalization.CultureInfo ci = System.Threading.Thread.CurrentThread.CurrentCulture; string decimalSeparator = ci.NumberFormat.CurrencyDecimalSeparator;[/CODE] because these System.Globalization or culture things can't see if the user … | |
timer i have two labels in C# windows Application and i want make it visilbe for once. on form load : label1.visible = true; label2.visible.false; and on timer tick event: label1.visible.false; label2.visivle = true; now after it perform one tick it display another form. how to do it. in my … | |
Hey everyone can I get some help please. I read through a few threads with the same problem as me but i can't seem to get the answer i'm looking for. I'm doing a school project and I need to save a Access DataBase that I have created in C#! … | |
hello all. i have endured hell for the last 2 days trying to get the scores from this program being a user quiz to make it add up the scores and keep a rolling total to be presented as a total score at then end of the quiz, but i'm … | |
Hey everyone, I am new to this site, basically my problem is this: The user inputs an integer, and then the user inputs a character, the program is supposed to make a triangle out of the character, with the max width of the user inputed integer. for example; user inputs … | |
Hi I have some questions: I'm getting segmentation fault on print_clauses(...) function and I really can't figure it out why. But the bigger question is, am I doing something wrong in build_clauses(...) function? Am I using double pointers in right way? because the second #if ... #endif gives me N … | |
I am wondering whether it would be useful to close [URL="http://www.daniweb.com/software-development/cpp/threads/70096"]this [/URL]thread an start a new one? This huge list, spanning 6 years and I don't know how many books cannot be useful, anymore? To be on-topic: for beginners, I'd suggest to just google "programming c++ tutorial", you'll get many … | |
I have a database which contains Hebrew language(foreign characters) in it. When I populate it in grid view. It gets populated in reverse order(left to right) For example: "כן" is getting populated as "ןכ" | |
Hey every one i need some help please! I am trying to save a Database through c# but cant seem to crack it. I read a few threads but every one explains how to save an existing DB. In my program I am creating a new DB in c# then … | |
I have a table that contains approximately 22000 rows and I used a Boolean Full-Text Search in order to find what I`m interested in. My problem is that I created a 'dynamic search feeling' that consists of a DataGridView that it is refreshed after every TextChanged event. As you might … | |
I have a finished program that I want to deploy to another computer. My professors told me an installer is required, so I tried my best to research, and came up with this: [URL="http://www.youtube.com/watch?v=Lcue0jo41AM"]http://www.youtube.com/watch?v=Lcue0jo41AM[/URL] That was a tutorial video, (he used Visual Studio 2008) and I tried to follow it … | |
Hi, i am here to ask some button control problem in Visual studio: [CODE] private void button1_Click(object sender, EventArgs e) { Report newMDIChild = new Report(); // Set the parent form of the child window. newMDIChild.MdiParent = this; // Display the new form. newMDIChild.Show(); } [/CODE] In my program, when … | |
hi, I am looking for the code for the following program. Consider a set of elements and a given sum. You need to find a subset of elements whose sum equals or is greater[given there are more than one subset, print the one whose sum is closest to the number] … | |
I need to figure out how to get the min/max in this array. I heard that it can be done using the algorithm library. we have yet to learn that. any help would be appreciated. [CODE]#ifndef Lab4_h #define Lab4_h void GetTemperatures (int Temperatures[], int NumTemperatures); double ComputeAverageTemp (int Temperatures[], int … | |
My question is a simple one how do I bind a passwordBox defined in code ie: [CODE] public PasswordBox Password { get { return m_pwd; } } [/CODE] to a contentpresenter in wpf considering that the datacontext of the usercontrol is already set to the .cs file that contains the … | |
Using the Load and Unload events of the Forms add these subs to handle a simple fade in and out effect. This is not limited to just one form. The subroutine definition can be added to any global class allowing the use on any form or sub-form. This is the … | |
How do i get the data to appear line after line in notepad and with the dashes in the phone number that my code [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Friends { class WriteFriendRecord { static void Main(string[] args) { Console.WriteLine("Enter your friend's details: "); Friends.Friend f … | |
hi the code which i use to export a data table to excel works fine..... but when i open the excel file it gives me the following warning THE FILE YOU ARE TRYING TO OPEN IS IN A DIFFERENT FORMAT THAN SPECIFIED BY THE EXTENSION. VERIFY THAT THE FILE IS … | |
Good Dal All i have this aspx page [CODE]<%@ Page Language="C#" Async="true" Trace="true" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form runat="server" method="post" action="https://www.vcs.co.za/vvonline/ccform.asp" > <asp:HiddenField ID="p1" Value="4635" runat="server" /> <asp:HiddenField ID="p2" Value="2" runat="server" /> <asp:HiddenField ID="p3" Value="Some … | |
hi there, i have a tab control with 3 tab in a form in C#.NET, and also i have a button which shold be doign adding rows to the datagrid view. how can i code the button so that when the active tab is tab on to add a row … | |
I have done pretty much all my programming using C# and very much a newbie to C++. However now I have to convert to C++ and is finding it a bit difficult. For example, I wrote a pretty simple program using C# to acquire a RegistryKey, then using a recursive … | |
I've written a sales and inventory program in C# that makes use of SQL Server, because I've heard it functions well over LAN connections (haven't tried it yet). I've... let's say... hardwired the my connection string into the program. I have a notepad connection.ini file that has the connection string, … | |
Hello, I need to avoid loading images into a webBrowser control that I'm using in a C# project, but I'm not sure even if it's possible. I have read that it could be done implementing the IDispatch interface and overriding the Invoke method: [url]http://msdn.microsoft.com/en-us/library/aa770041%28VS.85%29.aspx#Controlling_Download_and_Execution[/url] But I'm not sure about how … | |
I'm currently generating a random number and placing it in a label, but when I press the next button I would like the program to generate a new random number. The method I'm currently using to create the generate is: [CODE]//Random number generating method public double RandomNumber() { //declares random … | |
Hi, I'm almost done with my coding and I'm trying to implement blocking the user from putting anything but numbers into one textbox and then autocaps'n everything put into another. I've been looking through the web and can't find anything to point me in the right direction. Also, I can't … | |
Guys need some advice. I am working on a algorithm for multiple string searching using OpenMp. So within my program I am trying to [U]initialise[/U] each elements of an array to a value of a variable. What I mean by is say if I have array intialised as shown below: … | |
Introduction How to capture the errors from application and write it in a log file. We have to mention the directory path in Webconfig file. Background This code is to capture the error log in log file with all information. The code Code: CSharp [CODE] public class LogError { private … |
The End.