8,298 Topics
![]() | |
this my following code not returning all forms name......plz help me.. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Telerik.WinControls; using System.Collections.Specialized; using System.Data.SqlClient; using System.Reflection;//to fetch all forms of the current project private void fillForm2() { Type[] AllTypesInProjects = Assembly.GetExecutingAssembly().GetTypes(); foreach (Type … | |
here are the files guys all I need is to connect my C# app to my sql in server management studio, please help and if possible, please include the step by step on how to do it. Thank you very very much! | |
Hello guys, I am trying to insert watermark as text in word 2007 using c# but getting error can u pls help me out. here is my code... //THE LOGO IS ASSIGNED TO A SHAPE OBJECT SO THAT WE CAN USE ALL THE //SHAPE FORMATTING OPTIONS PRESENT FOR THE SHAPE … | |
Hi there, I have a project consisting of a asp.net webpage generating report of total usage per day of a pertucular item. the code worked in CR 9 with VS 2008 but since i converted it to CR 13 with VS 2010 the report is throwing error as "Parameter values … | |
I have this code, but when i type in one comand and then the next comand it does doe the comand i type in but the first comand i typed in. * I think it is becuase i dont clean my vector string, if so how do i clean it. … | |
Hello everybody, I was wondering if anybody knows whether or not it is possible to send data too fast over a NetworkStream? I have an issue with my client/server program, where I am sending large files over normal IP address (Not Local) where everything used to work fine. It would … | |
Hello guys I'm new to C# programming. I'd like to know what's the equivalent of this Java static to C#? class NMM { public static void main(String []args) { System.out.println("java"); } static { System.out.println("great"); NMM.main(null); System.out.println("programmer"); System.exit(0); } } Any help would be appreciated. | |
Hi, I'm trying to build a multiagent system that deals with a device with Android and a C# system made with framework 4.0. I need some advice on how to do that. On my research I found JADE for the agent management, but it's for java. Is there anything like … | |
I have a Storyboard which targets an Ellipse. How do I make the Storyboard target an image which I have in a List<>? This is the code: <Storyboard x:Name="sbMoveImages"> <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ellipse"> <EasingDoubleKeyFrame KeyTime="0" Value="-1"/> <EasingDoubleKeyFrame KeyTime="0:0:3" Value="641"/> <EasingDoubleKeyFrame KeyTime="0:0:5" Value="640"/> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="ellipse"> <EasingDoubleKeyFrame KeyTime="0" Value="1"/> <EasingDoubleKeyFrame KeyTime="0:0:3" … | |
I'm not sure how to do this, but i'm making a small shell in C++ in command line, with a few external scripts and executables being called. What I want to do is either make a simple web browser or a way to show web pages in C++, or if … | |
I just learned C++ style casting and the 4 types of casts. I'm not sure if I'm abusing it though. Examples: typedef long (*stringFromString)(int, char*) __cdecl; //TO: typedef long static_cast<*stringFromString>((int, char*)) __cdecl; SmartSetup((char*)World.c_str(), (char*)",f5", 765, 503,(char*)""); //TO: SmartSetup(static_cast<char*>(World.c_str()), static_cast<char*>(",f5"), 765, 503, static_cast<char*>("")); memcpy(&INH, (void*)((DWORD)Buffer + IDH.e_lfanew), sizeof(INH)); TO: memcpy(&INH, static_cast<void*>(static_cast<DWORD>(Buffer) … | |
Develop an application to help store scores in an array called TestScoreArr.The application has four methods and a main method: Input names method:-these methods receive scores from the user and store them in an array for 10 students. Display method:-display method clears the console application and display all test scores … | |
Hi All, I would like to start a web site that build from ASP.net & C# and database using MS SQL 2008. Got any good website, source code or book recommend to me to doing this project. Thank you | |
Hey all, I am new to C# and want to learn it. Can anyone tell me a good book for beginners? Your help is greatly appreciated. thanks. Luckydude | |
Hey I am trying to find a way for the user(not the programmer) to determine how many decimal places a number will print out to. I have tried pointers, precision mods and even a sub program to bypass my lack of knowledge in this area. Any help would be greatly … | |
Following the "Head First eBook". First Chapter has a contacts excercise where controls are added. The attached image shows a drop down option for the people table. Although I found it by chance in Visual Studio 2008 Team System, I have not been so fortunate with C# 2010 express. An … | |
I am developing a website in which i am showing the hexa code into bgcolor of td of table. The problem is that when someone like that page or print the page then that color is not showing because the color is bgcolor color of td. So, i want to … | |
#include<stdio.h> #include<conio.h> #include<string.h> struct person { char name[10]; int rno; }; typedef struct person NAME; NAME stud[10], temp[10]; void main() { int no,i; void sort(int N); clrscr(); fflush(stdin); printf("Enter the number of students in the list\n"); scanf("%d",&no); for(i = 0; i < no; i++) { printf("\nEnter the name of person … | |
I have listbox in c#form in one corner and right corner is blank till i select from listbox. So the problem is If i click outside the listbox it gives null exception error. How can i check if user is not clicking outside the listbox. | |
I know this question has been asked many of times about how to create a search button. I am very new to C# programming and I am having a hard time creating a search and just haven't found what I am looking for from other posts. So I hope someone … | |
Hi guys I've been trying to connect my c# file to my database file(in .mdf format created in SQL Server Management Studio 2008). So basically I used visual studio 2008 for my C# file and SQL Server Management Studio 2008 for my database file. Now I'm sure that the naming … | |
**Dudearoo** *Useing Code::Blocks* Heys you guys! ive got a question, i want to know if its possable to read a file name like for example dudearoo.dat and output the name ive got an idea for it, just i dont know how to read file name not coded into the program. … | |
Hi guys I've been trying to connect my c# file to my database file(in .mdf format created in SQL Server Management Studio 2008). So basically I used visual studio 2008 for my C# file and SQL Server Management Studio 2008 for my database file. Now I'm sure that the naming … | |
Can some one provide me an example to call dll from java? I learning some thing about JNI , also linkage with c++ but doesnt found any cool stuff on c# and java... I want a free solution. Thanx in advance. | |
Answer by true or false : a) There could be several function calls in a program. **True** False b) Function call can be placed wherever it is required, regardless of the function’s number of calls. **True** False c) There are no conditions on where to place a function prototype. True … | |
Hello daniweb people! I'm having a few issues with this triangle program. We're supposed to make a few different triangle shapes, including the two i have in this. The first triangle works, but the second triangle displays xxxxxxxxxxxxxxx times infinity. Any ideas on what i'm doing wrong? And another question, … | |
I am making a c# level editor and it is a bit out of my league but it should be good to learn oop algorithems. I have only just started and have already come across a problem. ** I need to load images as sprites and then create a button … | |
Can someone please help me on this problem. I am trying to send the updated changes to the sql database when I remove a row. I use the delete method to delete the numbered row through a dataview and then use the upate command to update the changes to the … | |
hello i want to paging in repeater control asp.net using c# .i want to 10 record show in one page how its possible..?? | |
How i can make player to dont go inside walls An idea i have is to create a class that draw an model, in that constructor i will add also some informations about model like ID-NAME-Position. So i will create an function that will check if if ( Abs(Player.XYZ - … | |
Hello, How cameras works in games? i should add cameras in every object in game? I tryed add camera only in player and follow player but i have problem with other objects, other objects dont change in screen. I mean when i press UP key to move player the player … | |
Hi, How do I programatically find the GUID for the Sharepoint List **View** given that the name of the view is known. A user has to input the view name and the program should be able to spit out its GUID. Thanks. | |
Hello! I have a problem with my C# Client/Server network program. This problem only occurs when connecting via an IP over the internet, whereas everything works fine using a local address (127.0.0.1). What happens is while transferring a file (10kb or more maybe) using the below code, my receiving program … | |
Hi, So this is my first time creating a web service and I am a bit stuck. This is the code I have used for my web service: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; using System.Data; using System.Data.SqlClient; [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] … | |
![]() | I'm making a math problem generator in visual c#, using a series of random number generators to create a unique math problem each time with some protocols implemented(later to use this for harder difficulties). There are different types of math to be used but right now I'm working on a … ![]() |
Hi! I am trying to create an application in C# that will take a list of IPs from a text file and display whether or not a ping is returned from each IP. I was wondering if it was possible, with a loop or something similar, to create two labels … | |
Continuing with the Head First C# programming eBook. This is a windows form application. Followed the text: <i>__ Chapter 2 The IDE is great at writing visual code for you. But don’t take our word for it. Open up Visual Studio, create a new Windows Forms Application project, and see … | |
Hi guys, I have found interesting code.. Unfortunatelly I dont know how to use it :/ [CODE]public void Delete(string ouPath, string groupPath) { if (DirectoryEntry.Exists("LDAP://" + groupPath)) { try { DirectoryEntry entry = new DirectoryEntry("LDAP://" + ouPath); DirectoryEntry group = new DirectoryEntry("LDAP://" + groupPath); entry.Children.Remove(group); group.CommitChanges(); } catch (Exception e) … | |
i am getting "Unhandled Null referenceException "--object reference not set to an instance of an object at below mentioned code in bracket (return System.Configuration.ConfigurationManager.ConnectionStrings["unitmoduleconnectionstring"].ConnectionString) and below is the total code help me to get out of this bug.... namespace TIMS { public partial class Form1: Form { public Form1() { … ![]() | |
Hello everybody, I'm in need of a bit of help here. I got this C# snippet: public static byte[] StringToByteArray(String hex) { int NumberChars = hex.Length; byte[] bytes = new byte[NumberChars / 2]; for (int i = 0; i < NumberChars; i += 2) bytes[i / 2] = Convert.ToByte(hex.Substring(i, 2), … | |
OK it deserts this to put it in a new thread. I've found this: using System; using System.Net; using System.Web; using System.Collections; using System.IO; namespace WebRequestExample { class WebPostRequest { WebRequest theRequest; HttpWebResponse theResponse; ArrayList theQueryData; public WebPostRequest(string url) { theRequest = WebRequest.Create(url); theRequest.Method = "POST"; theQueryData = new ArrayList(); … | |
Why dont we use '&' in the case of strings in function scanf ?? e.g. :- scanf("%s",date); here date is a character arraymeans string. Plz help | |
How can i update data from data grid view into SQL database using C#. Actually i m working on windows form app and i have to write update code in click event of the button.I am trying to update single row of data grid view into database. I have tried … | |
I have an object hierarchy that can be represented simplistically like: public class ChannelEntity { ... public properties .... public FramesetEntity Frameset { get; set; } } public class FramesetEntity { ... public properties .... public List<FrameEntity> Frames { get; set; } } public class FrameEntity { ... public properties … | |
I have a program where am trying to access a dataset in the main form from a 2nd Winfrom. I have created a form 1 ref but when I use this to access the datatable in the dataset it doesnt seem to work. The following code is for Form 2 … | |
Hello everybody!I want to ask you something. I want to send values from C# windows form application in php webpage.In other words send post values from C# to php. The problem is that php script cannot read this values and preview this results which comes from C# app.Could you help … | |
hello ! i am new in c# , i have images in my mssql table and i want to show those images in the datagridview , i add a column type image , but i am not able to show images in it , please help me in this . … |
The End.