4,588 Topics
| |
Hi, Is there a way to stop a function from returning a value if a condition evaluates to true. For example my function returns the sum of two integers. How can I stop it from returning anything if one of the integers is negative [CODE] Class C1 { ... public … | |
Hi Morning all, here I've code how to insert data into multiple tables in Sql Server using asp.net C# form but the data unable to enter ang got error, may anyone help fix it form me? because i've tried so many times already but still cannot, there is the code … | |
Hello, I want to put all my events in one class file and call them in a main window following is my code in mainwindow.xaml file [CODE] <Window x:Class="WPF123.MainWindow" xmlns:Local="clr-namespace:WPF123"> <Window.CommandBindings > <CommandBinding Command="Local:MyCommands.Print" Executed="PrintCommandHandler" CanExecute="CommandBinding_CanExecute" /> </Window.CommandBindings> ... <Button SmallImageSource="Images\Print.png" ToolTipTitle="Print" Command="Local:MyCommands.Print" /> </Window>[/CODE] mainwindow.xaml.cs [CODE] public MainWindow() { … | |
hi plz help me how to simple displaying 1 to 20 prime numbers with for loop plz help me | |
Hi everyone. I have a problem. I need to write a program where I can draw elements just by pressing the buttons on the form and I can do some operations with figures which I drew like (spin, delete, maximize/minimize). The task was given to me: use keys on keyboard … | |
hi i'm a vb.net programmer trying to learn C# for now. Let me ask you about simple questions in C# How do you do this in C#? this is a vb.net code: [CODE] TextBox1.Text = 1 [/CODE] | |
So need to use C# to create this tool I want for a game. It will involve an interop between Excel and my own program so I can easily tweek values on some items in my program or through excel. So far it's going ok, but when I'm constructing the … | |
Hi i am currently creating a login screen for my project.The logical error with this code is that it does not display the message "invalid password" although i have written a code for it.Can anyone please tell me whats wrong with this code.Thanks in advance [CODE]using System; using System.Collections.Generic; using … | |
is it possible to send data from remote object to the server in C# remoting using TCP channel???? Please reply thanking you in advance.................... | |
As you know I am new to C# and am having trouble with some code that I am writing, thats why im posting here to get knowledge from you guys:) Well, i have a text box in which i will enter the usersID of the user (the userID is in … | |
Hey guys! I'm taking a C# class this semester and I've been struggling extremely bad. It's like, I can't get my mind to think simply, everything I think, I over think. When I'm doing labs, I can break down what I want each thing to do bit by bit, but … | |
| hi i am trying to make a program that whilst ingame (magicka if anyone is interested) reads what is pressed on the keyboard and the simulates a combination of keyboard key down and keyboar key up and mouse press. eg if i press NumPad0 it would simulate Key Press A, … |
Recently started basic programming in uni and I am struggling with c#. One of my lab questions was write a dice program, i will write the exact question below. Because of anxiety I cannot ask the lecturer for help in class so thats why I am here. I am unsure … | |
I am writing a code that will login the user then one they are logged in they will enter in other information in textboxes. I wanted to know how to check that the username, password and ID match what is in a sql database. Also once it goes through how … | |
Hi guys, I have a small problem I am writing a program which adds informations about broken systems in my company. Customers are informed about new events (outages) via RSS (XML) channels. My program simply download xml from the web page and give a possibility to add new items (events) … | |
I am new to C# and am having trouble with some code that I am writing. Below is the code. I want the user to be able to enter a number between 10 and 50. Once the user does this, I want it to evaluate to Acceptable if it is … | |
hi, I've been working on a little program for my company for keeping the records of some members, it's basically a WinApp, but since the company has a website in which certain people visit and become members i was wondering if i could update my DB from the website, provided … | |
Hi all, Does anyone know how to convert raster images(bmp) to vector images using C#?. My task is to convert raster images(bmp) to list of vectors using C#. I surfed in the net, got many open source tools which does the job, but my constraint is not to use any … | |
Hello, I was wondering if I could get a little guidance regarding an error I keep running into on this assignment. I'm not necessarily looking for any answers as I'd like to complete as much of the assignment myself as possible. However, I've been beating my head against a brick … | |
Hey all, For my project I have decided to create a web app for a bus tracking system using ASP.NET/C# and SQL Server. The reason for doing it in ASP.NET is because I'm much better at it compared to writing PHP and Javascript code. For one part of my app … | |
I'm new to deployment of an application in C#, especially im running on a 64 bit OS. When i entered Visual Studio, i configured my application to run in 32bit, what happened was, it created a folder in the debug folder and it's name is "x86". When i checked it … | |
I am building a real estate website and I am getting a following error: aapkaghar2.UserLevelsdal_base+UserLevelsDataException: Object reference not set to an instance of an object. U can visit [url]www.aapkaghar.in[/url] for more error details When I run this same on my local pc, it runs fine, without errors. Please help me. | |
Here's my error. "[B]System.NotSupportedException[/B]" I have some problems with the StreamReader class. I have a textbox, and with the textbox, the text is the files location. I have tried with a pattern('@'), and with using the double slash character, and NOTHING has worked. Here is my function [CODE] static string … | |
| Okay hi, Firstly i have a border less which i need as i have my own custom 'skin' which looks like this and is found here.[URL="http://i51.tinypic.com/2i77o94.png"]http://i51.tinypic.com/2i77o94.png[/URL] As you can see it has no drop shadow at all. What i want to achieve is for it to have a drop shadow … |
Hi I just set up my IP Board. Now i want to retrieve some of the data via mysql, so far I have no problem getting a table into a datagridview, but what do i do to get a value from a table right now i got SELECT * FROM … | |
Hello! I'm doing a calculator in c# and I have one problem. I can't get the "%" button to work. I want it to work just like microsofts calculator and it would be great if annyone could help me! :) Its the code for how to calculate it I need! | |
Good Day All I have a Dynaically created a Textbox and i have a Dynamically created DIV. So what i want to do is to Find the Position of the Textbox and and Dynamically when this textbox is created , please a Div just next to this textbox. So my … | |
Hey, What is the fastest way to learn C#?? I need to clean out some source code with bugs... Help needed urgently! Thanx. | |
Hello, dear All I have the following problem: i have a .net (C#) app and a Windows Installer project to deploy it. Now i want this Installer project be able not just to install the app onto a 'bare' client machine, but also to check if some previous version of … | |
Hello daniweb! Yes, I'm another amateur coder who needs a little assistance getting some code to work, I hope it's alright :?: A little background is necessary I suppose, so the deal is I'm a self taught noob who's working on a pet project of crafting a little program that … |
The End.