8,298 Topics
![]() | |
can anyone help me........... i've created a form1 with a progressbar............and i want the form1 to close at the time when the progressbar reaches 100.........and at the same time i want form2 to display............ can anyone help me to do that............ | |
Hey, i just start working with string and i am totally noob =). So i would like to ask you if you can help me... I have some programs to write, but i have a little problems to get the code working... Ok first question is, how do i make … ![]() | |
Dear All, I need to draw a line between any two area's stated in the geographic map( like google map ). From where I can get these kinds of map or can I implement it using ASP.NET/C#. This should be very similar to getting the direction between two places in … | |
[CODE] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="managesurveys.aspx.cs" Inherits="managesurveys" %> <!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 id="Head1" runat="server"> <script type="text/javascript"> function newAttribute() { var d = document; // get field labels var lbl_attribute_new = document.getElementById('js_lbl_attribute_new').value; var lbl_attribute_del = document.getElementById('js_lbl_attribute_delete').value; var lbl_property_new = document.getElementById('js_lbl_property_new').value; var lbl_property = document.getElementById('js_lbl_property').value; … | |
I do not know how to write a function for this. I have written just the base line of the code, but I do not know how to finish it. Here is the description. A void Function tagReader inputs the data collected by the cylinders; it has two parameters: the … | |
when i create an empty project...my compiler is saying _TCHAR* is undefined...what file do i need to include to fix this problem? [code]#include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { //blah blah blah return 0; }[/code] | |
[COLOR="Red"][B]The flowchart is on the attachment. Please check it out[/B][/COLOR] [COLOR="Red"][B]I also get this error: error: cannot convert `__gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >' to `char' in assignment|[/B][/COLOR] [CODE]/*************************************************** The following program will take user's input and check whether it is in the following language: <S> ---> a <B> | … | |
I am really trying to pass this class, and am simply struggling majorly with C, I need help with these 3 problems that are due today by midnight, please help, will appreciate it greatly, and even pay if thats what it takes. I did problem 1, but used math.h, which … | |
Hi Folks, I'm hoping this is a trivial question with an equally trivial answer. I've got a C# program that I'm experimenting with, which simply passes an array of doubles and the size of the array to a C++ DLL. The DLL will then simply add 500 to each element … | |
![]() | I'm trying to compare two DateTime objects, but I am receiving the following error. error C2664: 'System:: DateTime::Compare' : cannot convert parameter 1 from 'System:: DateTime ^' to 'System:: DateTime' I'm just trying to use the DateTime 'Compare' method to perform the check. Below is an example to illustrate what … |
[code]private void webpage_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { SqlCommand cmd = new SqlCommand("SELECT * FROM [blacklist] WHERE BlackListed_Sites = '"+ webpages + "'", cs); cs.Open(); cmd.Connection = cs; SqlDataReader reader = null; reader = cmd.ExecuteReader(); if (reader.Read()) { CheckState.Checked.ToString(); MessageBox.Show("Blocked"); } else { string url = ComboAddress.Text; if (url == "") … | |
Hi.... I have just written a c# code which connects to a web server.... Pulls out xml, extracts data and inserts the data onto a database..... however i have a small problem scrubbing certain data of junk values..... few examples of the data i want to scrub are posted below... … | |
I want to send simple mail from my web application through asp.net c# code. I have lot of sample codings to send mail but i need a proper guide to enable smtp server in my localhost since i dont have any static ip or web server. My system is in … | |
C# double click datagridview record, show data to textbox/combobox. | |
How do i prevent a C string input from the user from exceeding the capacity of the array? is this not possible? [code]int main() { char buffer[8]; printf("enter a string"); scanf(%s,&buffer); return 0; }[/code] | |
I have 5 strings, such as: "one", "two", "three", "four", and "five". I need to get all permutations of these words. I've explored all internet resources, but all solutions are so bulky and it's hard for me to understand it and integrate it to my program. So, maybe you know … | |
![]() | Hi Guys, I have two forms (Main and Sub). There will only ever be one instance of Main, but can be many open windows of the Sub form. What I want to do is know which Sub form was the last form to have focus when switching to the Main … |
Hi, Im kinda new to creating C++ gui apps. I am using a application called c++ Builder XE and i was wondering if anyone knew of any good tut for creating a GUI application and any other tut that may help using this application Thank you :) | |
A practice exercise requires the creation of a text file with 4 lines of info for cars, VIN, model, manufacturer, and year repeated over and over for different vehicles. This I do with StreamWriter and have a simple multiline text file as follows: 111111 Echo Toyota 2005 222222 Accord Honda … | |
Is it possible to read the registry from VS C# 2010 Express? I don't seem to have all of the necessities in the autocomplete selections: [CODE] RegistryKey key = Registry.LocalMachine; [/CODE] I have "using Microsoft.Win32;" imported and what happens is it doesn't seem like the object is created. I've seen … | |
hey can anyone tell me how to remove the delay in webcam video streaming..........i've created a webcam capturing project but find little delay in the video streaming | |
Hello, I posted yesterday regarding my issues with adding rows to a database, this is now solved and I am grateful. Once the rows were added to the database the list box that displays one column of the database did not update so I included the following code after the … | |
ok everyone, i taking my first semester of C++ and i have a little quesiton, the teacher wants up to output and input on the same line, but to send the input through i have to strike enter, which keys to the next line, heres my code, just cant get … | |
First I want to thank you for the help and I am somewhat new at C# so forgive me if I have something listed wrong. This is what I got: I am working on a school project designing a car dealership website. I have an inventory list that allows you … | |
Hello, I am quite stuck. I have my database running on a seperate machine from where I am writing my application. The connection between Visual Studio and the database seems to be fine as I can display data in various controls on the GUI. My problem arises when I try … | |
hello all, I have database named 'Marketing', and want to bound DropDownList control with it using 'add connection' dialog box in the C#.net. I gave datasource: 'Microsoft SQL Server Database File (SqlClient)'. And when I give DataBase file name as 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\Marketing_Data.MDF', I get error while testing the … | |
Hello expert, I had a problem in C# datagridview. I want display last month data or ?days only when form load. I know use SQL query. But the problem is at datetime and string. my idea is today date - 30 days. [CODE]private void OT_Load(object sender, EventArgs e) { ConnectionStringSettings … | |
I need help with this program. I do not know how I would calculate to find out the gallons as well as the cost as pictured in my output. How would you do this? Here is my output: For each student, you will get the gallon of paint Input the … | |
Hello everyone , Is there any way to add dll reference to a c# proj at runtime ..... FOr eg i hav windows form called form1.cs and dll called projlib.dll. Now when i click a button the reference to the dll should be added at runtime. I.e programatically add dll … | |
Hello ppl, I have recently started C# and while going through initial pages of bitwise operators 1 doubt came into mind. v know dat int is of 32 bits in C#. Suppose i take a number and assign some value to it and then after left shifting it by 32,the … | |
c# interview questions are generic collection faster. I had a argument with the interviewer and my thought is they are not faster please help. | |
I'm got write a simple calculation. which only use % and / .but when i key in different number. the result is different.Who can help me. [CODE]private void button1_Click(object sender, EventArgs e) { decimal x = txtPer.Value; decimal y = txtQty.Value; decimal j= y / x; decimal k = y … | |
After your program works correctly for one student, add a loop so the user can process any number of students. Prompt the user for the number of students to process; use that value to control the loop. *How do I prompt the user for the number of students to process … | |
I can not seem to figure out how to drop the lowest score. When I run it it says the lowest score dropped was 0. How do I fix this? [CODE]#include<iostream> #include <string> #include <cmath> using namespace std ; string getName (); int averageScores( int); void printMessage (string, int); void … | |
Please help me solve this problem, just started c++ and I am lost, this my 1st computer class, please help Write an interactive program that prompts the user for two integers (X and Y) and a value Option) indicating an option. Depending on the value of the option, the program … | |
Greetings to all, Wondering if someone can help me with a basic VS C# problem? Help much appreciated. I can read my plain text file into an array and display one line at a time on the console with this code. int indexInt = 0; string fileString = ""; string[] … | |
Hey guys, I have two forms, form1 and form2. My form1 has a combo box and a button. Here's form1 code. [COLOR="Red"][B]Form1[/B][/COLOR] [CODE] public partial class Form1 : Form { bool s; public Form1() { InitializeComponent(); s1 = comboBox1.Text; } private void Form1_Load(object sender, EventArgs e) { } public string … | |
Hi friends , i have some code for to find out whether the no is prime or not. but i want it in c# using the same logic. int isPrime(int n) { int c =0, s=0; if (n == 1) { return 0; } if (n == 2) { return … | |
hi... can someone please explain how to create a new excel file using an excel template in c# I have no idea how to go about doing it and that is why i haven't pasted any code.... i have been developing an application as part of my college project..... and … | |
Please ! Could someone tell me where i can find pdf tutorial for C# in web based... i have a tutorial here but this is for console application... please help me ! ^__^ thanks in advance guys ! | |
Hi! I need to use if statement to check if its the summer time (CEST) or Winter time (CET)...But I dunno how to do that..Couldn't find anything useful on the INTERNET.my date format is (d-mm-yyyy) Basically I need to do sth like that [code] if DateTimePicker->Value>(31-10-yyyy) {time="CET";} [/code] THX For … | |
hey all! can anyone help me findind any c/c++ code for reducing the pixels of an image to a required amount... please... thnx... | |
I want to question how to embed variable value in sqldatasource session parameter in c#. This is mycode: default.aspx: [CODE] <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Ora2011 %>" ProviderName="<%$ ConnectionStrings:Ora2011.ProviderName %>" SelectCommand="SELECT ID, CATEGORY_NAME FROM (:INVENT_CATEGORY)"> <SelectParameters> <asp:SessionParameter Name="INVENT_CATEGORY" SessionField="INVENT_CATEGORY" Type="String" /> </SelectParameters> </asp:SqlDataSource> [/CODE] C#: [CODE]protected void Page_Load(object sender, EventArgs e) … | |
This is the code that I have written in C# which shows the contains in the sample.log file. [CODE] class FileRead { public void ReadData() { FileStream fs = new FileStream("sample.log", FileMode.Open, FileAccess.Read); StreamReader sr = new StreamReader(fs); sr.BaseStream.Seek(0, SeekOrigin.Begin); string str = sr.ReadLine(); while (str != null) { Console.WriteLine("{0}", … | |
who know how to make TreeGridView in C# which want support databind. want to retrieve data from database to display in TreeGridView. | |
Hi guys I am writing an application in c# I want to create a dynamic log file which would contain all the errors or exceptions occurred during execution of the Component. Log file simply has to append all the errors or exceptions generated with error details and time and date. … | |
I am creating new thread everytime in the for loop .. but many times the loop takes the same filename and creates new thread. Doesn't Work: [code] foreach (string s in fileEntries) { t = new Thread(() => Shrink(s)); t.Start(); } [/code] I have tried individually for each file creating … |
The End.