4,588 Topics

Member Avatar for
Member Avatar for VasquezPL

Hi guys! I have a code: [CODE] String Lastlogon(string username, string domain) { try { { DirectoryContext context = new DirectoryContext(DirectoryContextType.Domain,domain); DateTime latestLogon = DateTime.MinValue; string servername = null; DomainControllerCollection dcc = DomainController.FindAll(context); foreach (DomainController dc in dcc) { DirectorySearcher ds; using (dc) using (ds = dc.GetDirectorySearcher()) { ds.Filter = …

Member Avatar for VasquezPL
0
1K
Member Avatar for madfase

Problem: How do you dynamically update a chart / graph in a single iteration loop in Visual Studio 2010 WinForms C# application? Scenario: I'm doing simulation-based computations where I have an array to represent values for my function along an interval. The function is time-dependant and so the values in …

0
83
Member Avatar for Moirae

Hello everyone! I have field in database table that is image type. I have to create model for this table (mvc3) and I don't know which data type to use. Any hints??

Member Avatar for crishlay
0
70
Member Avatar for shyla

Hello i am trying to solve the second part of this question i am getting these errors Error 2 Only assignment, call, increment, decrement, and new object expressions can be used as a statement Error 1 Use of unassigned local variable 'i' [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; …

Member Avatar for abelLazm
0
754
Member Avatar for sachintha81

I want to add a custom configuration section to my App.Config file in my C# 2010 project. I want the section to look like the following. [CODE]<DmModules> <Module Name="Module1"> <add key="DbType" value="..."> <add key="ConnType" value="..."> </Module> <Module Name="Module2"> <add key="DbType" value="..."> <add key="ConnType" value="..."> </Module> </DmModules>[/CODE] Of course there can …

Member Avatar for sachintha81
0
315
Member Avatar for kool.net

hi, can any one tell me how to i print a page in c#.net. actually i need it to print receipt in my project. Help me. Thanx in advance

Member Avatar for ChrisHunter
0
400
Member Avatar for judithSampathwa

hi there, i want to develop a login in asp.net C#. please can someone give me a guide to develop a login web page using MVC pattern i am using visual studio 2008 please can some show how to create a login using MVC thanks

Member Avatar for abelLazm
0
168
Member Avatar for micmo

Hi Guys, I'm trying to create a simple webpage which has a login form. When the user successfully logs in, I want a cookie to be stored with the name "MyCookie", and a value of "1". Then I want the login form to hide and instead display a textbox with …

0
103
Member Avatar for vigneshkbv

I want to develop a Desktop application using web browser control and google local search API . could you give some idea? In my form have text box ,cmd button and web browser control.. when i type a search string in txt box and click button,the web browser control should …

Member Avatar for abelLazm
0
172
Member Avatar for VasquezPL
Member Avatar for VasquezPL
0
2K
Member Avatar for reet_bahl
Member Avatar for shyla
Member Avatar for Wegginho
0
55
Member Avatar for shyla

i am trying to solve that assignment and this is what i have so far [CODE]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; namespace CarInsurance { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, …

Member Avatar for pseudorandom21
0
183
Member Avatar for MoZo1

Ok, so I want to port my code to windows mobile, and I'm looking for a tutorial. I would like compatibility with WM5, and WM6 is a must. So I'll use the embedded whatever. I've got Visual Studio 2k8 and the 3 addon required to do the job. I've also …

0
148
Member Avatar for reet_bahl
Member Avatar for MackSwagga

I am trying to write a small program to keep track of my movie collection but I can't seem to get the streamwriter(I think thats what its called to work). Right now I am working on writing to a text file. I had a couple of questions though, will I …

Member Avatar for Momerath
0
166
Member Avatar for VasquezPL

I use code to retrive data from accounts in AD: [CODE] public string getproperty(string userDn, string type) { try { if (userDn == null) { err = true; return null; } DirectoryEntry uEntry = new DirectoryEntry(userDn); if (uEntry.Properties[type].Value == null) { return "No record found"; } return uEntry.Properties[type].Value.ToString(); } catch …

0
77
Member Avatar for geekman92

Hi me again! =) if you didn't already know i am making a simple HTTP Server using TCP/IP sockets for a project. i have a method to get an image and send it over to the browser but i am having problems doing so, i have tried doing it different …

0
109
Member Avatar for Skeldave

Hi, I have a few questions which I need answering please. I have a ListView and I need to get the text in the cell which is clicked. At the moment i have this but it only works for the first cell which is clicked and throws an ArgumentOutOfRangeException if …

Member Avatar for abelLazm
0
112
Member Avatar for kirtee2209

Hello. Im trying to add 2 times in C# windows form app. I have a function where I am retrieving a time field from database and adding it to another time which is in a texbox. I am able to retrieve the time field but when I am adding and …

Member Avatar for Mitja Bonca
1
5K
Member Avatar for Dean_Grobler

Hey C# people, Sorry for my topic title, I honestly didn't know what else to call it. I'm a Java developer and I'm looking into learning C#. I've read up a bit on it but I'm rather confuzed (as expected)... 1) Firstly, in java you can choose to use an …

Member Avatar for ddanbe
0
315
Member Avatar for geekman92

Hi i need to make a [B]BASIC[/B] HTTP server for a project using [B]JUST[/B] TCP/IP Sockets so please don't suggest anything that would use some of C#'s higher level networking components, Thanks =). [B]Anyway my problem:[/B] i have created the server and it all works so far but i haven't …

Member Avatar for geekman92
0
255
Member Avatar for goldeneagle217

I created an application in C# and then was told it had to be started from a button selection in a C++ exec program. How do I invoke my application from the C++ program?

Member Avatar for Suzie999
0
152
Member Avatar for vincezed

can any one please help me with this... I am trying to load a treeview and listview from sql database but did not work.... so if any one know how to do that please help me with it.... Thanks vince

0
59
Member Avatar for goldeneagle217

I created an application in C# and then was told it had to be started from a button selection in a C++ exec program. How do I invoke my application from the C++ program?

Member Avatar for Ancient Dragon
0
180
Member Avatar for shyla

Hello, i am trying to solve that problem, it was already due for my class, an i am disappointed that i wasn't able to solve it can any body give a descent solution for that Q: The tiny tots tee-ball league has 12 players who have jersey numbers 0 through …

Member Avatar for abelLazm
0
276
Member Avatar for CrazyProgrammer

Hi all, I have had a look around the forums but i could find anything, if someone could point me in the right direction for this. What is the best way to handle an sql connection, in my program I have to get data from the server on a button …

Member Avatar for gusano79
0
234
Member Avatar for easa056
Member Avatar for Behseini

Hi Guys, I am trying to make a connection with Oracle 11g which is installed on a server 2008 BUT have problems with the ConnectionString. Could you please let me know how I set a correct connection String while I have parameters like these: Database name: GISData Server Name : …

Member Avatar for debasisdas
0
324
Member Avatar for zifina

how to save the state of radio buttons on application exit.how to get or set check state of radio buttons of a form,from another form.pleasssssssssssssssssssssssssssss help me with dis..its very urgent.i am new to c sharp.i will be really very grateful. :) thank you

Member Avatar for zifina
0
236

The End.