8,298 Topics

Member Avatar for
Member Avatar for lahidzi

Hii.. I am doing project in java and i want to convert it to c#.is it any option available? Thank you..

Member Avatar for lahidzi
0
54
Member Avatar for emokidzz

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; using System.Data.OleDb; namespace Database { public partial class Form2 : Form { public Form2() { InitializeComponent(); } int baseExp = 200,currentExp,lvl=1,str,intel,dex,armr,min=10,max=25,minimum=2,maximum=3; public void levelUp() { min += minimum; max += maximum; str = int.Parse(strength.Text); …

Member Avatar for Mike Askew
0
297
Member Avatar for milindchawre

#include<stdio.h> #include<conio.h> #include<stdlib.h> main() { char ch1[20],ch2[20],*temp[10]; int i,j,count,k,p,q,len1,len2; printf("Enter the string\n"); scanf("%s",ch1); printf("Enter the string to be found\n"); scanf("%s",ch2); for(i=0;ch1[i]!='\0';i++); len1=i; for(j=0;ch2[j]!='\0';j++); len2=j; k=0; count=0; for(i=0;i<len1;i++) { if(ch1[i]==ch2[0]) { temp = &ch1[i]; k++; } } for(i=0;i<k;i++) { for(p=0;p<len1;p++) { for(q=0;q<k;q++) { if(*ch1[p]==*temp[q]) { for(j=0;j<len2;j++) { if(ch2[j]==ch1[p]) p++; if(ch2[j+1]=='\0') { …

Member Avatar for deceptikon
0
126
Member Avatar for BigHeart

i have a process to use zebra printing machine.. i dont have any idea from where and how can i do this process.. can any one help .... i want to print my sql table id with barcode in zebra printing machine.... i am very much confused how should i …

Member Avatar for pritaeas
-1
70
Member Avatar for kneiel

[code] class A { public: A() { cout<<"ctor A\n"; } virtual void func(int x) { cout<<"\nsj\n"; } }; int _tmain(int argc, _TCHAR* argv[]) { A objA; int *vptr = (int *)*((int *)&objA);// address of the virtual table typedef void (*fnptr)(int); fnptr f; f = (fnptr)*((int *)vptr+0);// address of func() within …

Member Avatar for AliceJohn123
0
698
Member Avatar for tricket_7

I want the btnLogin_Click event to verify the username/password from the ms access database, if it matches it will take them to a certain page, if not it will give a message that user/password is incorrect try again. I really don't know where to start, can you please help first …

Member Avatar for notconfirmed
1
249
Member Avatar for Dylxy

I am looking for good C# .NET 4.0 database tutorials. I want to learn working with a database in C#, i already know SQL from another language PHP. Thnx

Member Avatar for king03
0
244
Member Avatar for pyeri

I have written a simple and minimalist HTTP proxy server that runs on command line. In the Start() method, a TcpListener blocks until it gets a client request and creates a new thread (ThreadHandleClient method) that processes this client, fetches its url and relays data. The trouble is in the …

0
85
Member Avatar for hfxdkhrxtr

hi, i want to change my ip address in every 10 minutes so please give me code to change my ip address in c# windows form application.

Member Avatar for Cap'nKirk
-1
214
Member Avatar for hfxdkhrxtr

How to implement (Browse from path "c:\Proxy List.txt") Proxy List in C# WebBrowser control/Component. What I want to know, is how to implement proxy-list from "c:\proxylist.txt", so my C# webBrowser control use this proxy for browsing when its run. I also don't want to change proxy through registry ... because …

0
161
Member Avatar for Rasool Ahmed

Hi guys, I am developing a software and I want to make it in good appearance!!!! As you see most of programs have a beautiful skins, I want too!! I have google it in days and I found a dll file called "DevComponents.DotNetBar2.dll" ( may you have heard about it) …

Member Avatar for Rasool Ahmed
0
344
Member Avatar for abbas.aleryani

Hi all when i execute my code it gives me this error " no data exists for the row column" can anyone please help me,,,am using access database here is my code: private void UpdateStudent_Load(object sender, EventArgs e) { OleDbDataAdapter da = new OleDbDataAdapter(); da.SelectCommand = new OleDbCommand("select * from …

Member Avatar for Cameronsmith63
0
463
Member Avatar for system_Broken

I WANT SEND ITEMS INTO DATABASE WITH ONE TIME CONNECTION OPEN ? MYCONN.OPEN(); FOR(INT I =0; I < CODE.COUNT ; I ++) { DB.SUBMITITEMS(CODE[I]); //IS IT RIGHT IF I HAVE 100 ITEMS TO SEND DATABASE WITH ONCE TIME OPEN CONNECTION OF DATABASE; OR I NEED TO REOPEN AND CLOSE CONN …

Member Avatar for M.Waqas Aslam
0
146
Member Avatar for rithish

i need c++ e-book that should have programs from hello world,addition to vectors,map.in all books they cover only the concepts and finish by 3 programs in a topic.i need a c++ book that covers more than 500 to 800 programs please suggest me a good book.

Member Avatar for moutanna
0
77
Member Avatar for pallas_athena

Help! I need to run my function every 5 mins but I don't know how and what to use. I tried using Restart but my whole application ill restart too.

Member Avatar for M.Waqas Aslam
0
114
Member Avatar for lloydy76

Hi there, im new to c# and have been trying to create a calculator without a switch statement, using the operator 'op' as a variable, but i cannot get it to work, here is my current code: [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; …

Member Avatar for samsylvestertty
0
6K
Member Avatar for newbie1234
Member Avatar for notconfirmed

Hello, I have a problem to this html code.I want to get only the data inside the href,but the data is dynamic. <a title="Click here to see docket information" href="/ccm/do/docket?county=65&amp;data=eedd78d10fd9da341e05b25b48b62013">652012CC000006CCXXXX</a> I am not really familiar in regex.I am using this code to extract the html inside the href. MatchCollection m1 …

Member Avatar for Mike Askew
0
1K
Member Avatar for bestonearth

hello all the members, i'm new to .net and i want code for a window application in c# for entering the userid and password in windows form

Member Avatar for Mike Askew
-1
206
Member Avatar for vikas_3r

I not going to print any document.I want to retrieve details of usb-printer.How can i get connected with usb- printer with c# programming to retrieve details?

Member Avatar for C#Jaap
0
515
Member Avatar for Karkalash

Hi All: I'm wondering if anyone knows any usefull links to articles I can read on coding multiplayer for XNA. I'm looking for something that would teach me how to code for more than two players. The idea of what I'm working on is for a standard 4v4 deathmatch over …

Member Avatar for jLocke
0
468
Member Avatar for hmagnum

while (HullShipA > 0 && HullShipB > 0 && HullShipC > 0) { // do whatever i wanna do } Console.Writeline("End Game"); So i'm kinda new to c# but here is the deal: In this simulation, ships attack eachother for damage and the way it is, as soon as 1 …

Member Avatar for hmagnum
0
116
Member Avatar for idislikemacs

I'm done with my tic-tac-toe program, but now I want to ask a simple question to the winner of the match to make the victory absolute. Would I need a while loop? I also feel my code is too messy, how can I enhance/improve it? Thank you! #include <iostream> using …

Member Avatar for Ancient Dragon
0
315
Member Avatar for thak123

I want to create a full html5 file with the fields fetchg from my database. I cant get to create a file directly . Can anyone help me.

Member Avatar for Mike Askew
0
303
Member Avatar for sridevi boya

The folders contains different images in them and the file names may match from those 2 folders and we should be able to display those images in 2 picture box having the same file names randomly. Using C# visual studio 2010. Please help me out with this code....!

Member Avatar for Cameronsmith63
0
209
Member Avatar for Mahesh57

Hi,I have a PYTHON Task http://www.jjoseph.org/misc_projects/meter_reading_with_a_webcam and i need to chnage it to C# the Python code is available in the above mentioned task link or http://www.jjoseph.org/files/gasmeter/meterparser.py please help me as soon as possible i am begginer to C# code please responde as soon as possible.Thanks in Advance

Member Avatar for Gribouillis
0
397
Member Avatar for smengr

Hi to ALL Plz help me i try my best to send sms from visual studio C# to mobile but i am not sucessfull so far if any one knows this yhen plz send me procedure as soon as possible thanx in advance Good bye.........

Member Avatar for gopalju
0
1K
Member Avatar for vickymehta6789

Hello friends, for the last couple of days i am having problems with STL programming. I have 2 compilers Borland and Eclipse (both latest versions) and i cant program with STL in either of these. I write simplest of programs of STL(vector and list), the program gets compiled with no …

Member Avatar for sepp2k
0
106
Member Avatar for sridevi boya

C#: I have two folders first one containing various images of the tops and other containing various images of bottoms, now randomly a dress(top & bottom) should be selected such that if user inputs no of days the dresses should not be repeated, those dresses which are not worn should …

Member Avatar for Mike Askew
0
220
Member Avatar for ROSS679

I am working on a program that updates a Database via ASP.NET (C#) using Microsoft Access and OleDb and have the following problem when loading my web form in FireFox: *"The INSERT INTO statement contains the following unknown field name: 'txtCustomerID'. Make sure you have typed the name correctly, and …

Member Avatar for ROSS679
0
138
Member Avatar for hiral2cool

mtxtBdate.Value = dataGridView1.SelectedRows[0].Cells["Birthdate"].Value.ToString(); i want this on data Grid view.. this type of syntax use in all other textboxs.. but now how to use this datepicker control syntax.. this sytax is wrong plzz tell me write meas any date that user select on the datetimepicker is show on the datagrid.. …

Member Avatar for AnnieCalvert
0
355
Member Avatar for dotun.esanoluwa

I am having a weird problem with this code. I keep getting this error. "NullReferenceException was unhandled." Then this part of the code is highlighted. "i < settings.Dirs.Length" There are several forms but this is the one I find the problem. namespace MemoryGame { /// <summary> /// Main form for …

Member Avatar for gusano79
0
836
Member Avatar for Andrei15193

Hello, I've browsed the C++ forums and on top is a list of C++ books, however I have not found a list of C# books. Can someone give me any directions on what C# books to buy and also an order of going through them? Thanks :)

Member Avatar for cschanchal
0
59
Member Avatar for complete

How does one write code to make drawings in the Windows main client area of a Win32 C++ app? I found an example online that uses the "eclipse" API but when I put it in my program, the IDE complained so it would not compile.

Member Avatar for Ancient Dragon
0
80
Member Avatar for judithSampathwa

hi there, i have an application that opens an excel file and get the values to the mdf file in visual studio database file. the code for opening the file is below [CODE] Microsoft.Office.Interop.Excel.ApplicationClass tt = new Microsoft.Office.Interop.Excel.ApplicationClass(); String path = a; tt.Workbooks.Open(path, 0, false, 5, "", "", false, Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, …

Member Avatar for Cameronsmith63
0
383
Member Avatar for Bumpehh

Hey guys, im new to C++. been learning for only about a week. The most complex program i can make is a calculator! But, i was wondering, how hard would it be to make a text-based zork-like game? Like i said before im new, so any tips and/or tricks to …

Member Avatar for Bumpehh
0
740
Member Avatar for lianpiau

I want display username in MDIParent form after login. Who can teach me and give coding to me. Hope every expert help me.

Member Avatar for itdpn02
0
986
Member Avatar for funnyguy1

Create a class called Invoice with the properties (Part number, Part Description, Quantity and Price). Create appropriate methods and data types. Use the class Invoice and create an array of Invoice objects (Part number, Part Description, Quantity and Price) initialized as shown below: // initialize array of invoices Invoice[] invoices …

Member Avatar for JasonHippy
0
2K
Member Avatar for newbie14

Dear All, My problem is that exactly every second I need to call a particular function to do some sql querying. So after reading I found that the latest api is timer_create. Below is a skeleton. Is this skeleton a right one to move forward? Thank you. [CODE]#include <stdio.h> #include …

Member Avatar for newbie14
1
2K
Member Avatar for cynusalisa

Hello Guys, I am Confused between the two languages Java and C++ that Which is the better Language to learn? What do You Guys Think about These languages and Can You make difference between these Languages Guys?

Member Avatar for rubberman
-1
234
Member Avatar for Ghost

When using C++, how do you find the REMAINDER of two numbers and store it in an integer. I think the answer is: [B]X % Y = Int Z;[/B] :idea: Please help. Thanks :lol: , C++

Member Avatar for wangchung
0
961
Member Avatar for lianpiau

I want pop out a confirm message box like Response.Write("<Script>confirm('Are you sure???');</Script>"); But I want control if Ok then do wat else do wat.

Member Avatar for hericles
0
173
Member Avatar for ingus16

How can i change masked text box properties for IP address input. For example private void Interneta_savienojums_Load(object sender, EventArgs e) { maskedTextBox1.Text = " . . . "; maskedTextBox1.PromptChar = ' '; maskedTextBox1.Mask = "009.009.009.900"; maskedTextBox1.ResetOnSpace = false; maskedTextBox1.SkipLiterals = false; } In form text box show ( . . …

Member Avatar for ingus16
0
7K
Member Avatar for vincezed

Hi all, I'm struggling to create a treeview. I want the nodes to be added dynamically. For example consider there are two froms Form1 and Form2. Form1 is the main , on clicking on a New node button Form2 open. In Form2 i will give the new node name and …

Member Avatar for JirkaJirka
0
440
Member Avatar for prglili5994

Please help me Create a program to enter and average the high and low temperatures for the week.  Create a constant to define the size of two float arrays.  Create two one dimensional float arrays in the function main() called highs and lows. const int MAX = 7 …

Member Avatar for Lucaci Andrew
0
69
Member Avatar for megdan

hi, Please im developing an application reserves rooms for clients it is in a way that you cannot insert another clients details if another client has chosen the room for a particular date. i have binded a comobox with a database that contains information about the various rooms. MY PROBLEM …

Member Avatar for Pgmer
0
232
Member Avatar for yousafc#
Member Avatar for ChrisHunter
0
222
Member Avatar for james.price.39501

#pragma once #include <fstream> namespace testrun1 { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; using namespace System::IO; using namespace std; #pragma endregion private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { ifstream inputFile; ofstream outputFile; inputFile.open("1.txt"); outputFile.open("sum.txt"); int num1; int num2; …

Member Avatar for Ancient Dragon
0
442
Member Avatar for system_Broken

i going to make socket application in c# i dont know more about socket but i have tried but fail . now i want know some more information plz share with me. 1)my server is located in other city . 2)what type of socket i need TCP or UDP ? …

Member Avatar for gusano79
0
265
Member Avatar for damaritah

hello.... 1. how does one link a 2 radiobuttons in c# 2010 to the same column in ms sql 2005 2. what could be the problem when one tries to enter data from texboxes in c# 2010 to ms sql 2005 but its not reflecting? 3. what is the syntax …

Member Avatar for ChrisHunter
0
155

The End.