Top Solutions

Tags:[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

Event Category:      None
Event ID:      0
Date:            11/12/2008
Time:            12:46:23 PM
User:            N/A
Computer:
Description:
Service cannot be started. System.TypeInitializationException: The type initializer for...

Tags:append, file, text

Hi,

Lets say I have a text file.

Always when I try to write to it with the following code, It erases what was already in it:

                // create a writer and open the file
                TextWriter tw = new...

Tags:insert, oracle

I am new at this and need help with what I hope is a simple question.  I have a C# app that needs to insert records into an Oracle db.  The code I have runs without error but does not actually insert a record.  Here is my code so far.

string...

Greetings,

Thank you for assisting me with this show stopper. Apparently I'm attempting to run an app with a 32-bit dll on a 64-bit .net 2.0 system (hosted server, I can't fall back to Win2003 32-bit) and when this 32 bit dll code is executed...

Tags:vb.net asp.net, google maps, point marker

Hi all;

How to view messages for each point separately.
points comes from the database dynamically (multiple points)

My code (vb.net code behind)

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles...

Tags:c#, readerquotas, wcf, maxstringcontentlength, binding

I do not know how to create a WCF client in code with CustomBinding that has readerQuotas changed to larger value... I have attached a code snippet to show what I am trying to do. When I try to build the project, it says that the readerQuotas...

Tags:clientid, javascript, textbox, passing

I have developed a site that uses both static ASP.net Textboxes and Dynamically created textboxes to hold dollar amounts.  I have also created a javascript that allows the user to type in " 1+2+3..." and onBlur will add the totals together. ...

Tags:c# vb.net

The code snippet below calculates the timespan between two periods

            DateTime dtStart = DateTime.Parse(StartTime.Text);
                DateTime dtEnd = DateTime.Parse(EndTime.Text);
                TimeSpan ts = dtEnd.Subtract(dtStart);

...

Tags:C#

I have a .NET webservice that is called from a .NET webserver. If it takes more than 90 seconds for the webservice to return data, there is a timeout exception from System.web.services  

Where can I increase the timeout value to prevent this...

Tags:powerbuilder, object, null, error, reference

I am getting the following error message in PB 9.0
It does not occur consistently, so it's difficult for me to debug and find out why it's happening.

Powerbuilder Application Execution Error (R0002)
Application Terminated.
Error: Null...

i have a infragistics ultragrid populated. I gave the cell  click action as Row select. By default first row will we active and in blue color. But after selected any row the color should change to red.
I tried giving activerow.backcolor ,...

Tags:epson, logo, tmflogo

Hi all,
I'm trying to print a logo on a POS (tickets) thermal printer.
The model of the printer is Epson TM-T88IV
I already uploaded the logo with the TM Flash Logo utility and the test print from the TMFLogo app is printing ok.

My problem...

Tags:The client disconnected., asp.net

What does this error mean, and how do I fix it?


Error Message:
The client disconnected.

Method that Caused Exception:
ThrowError

Stack Trace:
at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState,...

How to convert the object into byte array and send it through sockets in C#?


The code given below does not work properly. I am making an Student object having two attributes name and rollno and then assign this Student object to an object...

Tags:Microsoft, Windows Server, 2003, Running CA Services

We are running Microsoft's CA Services on a Win 2003 box.

How do we generate a request for a Code Signing certificate?
We see the "Code Signing" template in the certificate templates and even extended it issue for 5 years as a default. But...

Tags:pole, display

Hi,

I use the code below to display message to the pole display (customer display), but i don't know how to clear the display screen before new message is display. and how display the message from the beginning of the screen?  Please help.
...

Hello All,
I'm looking into an issue with mscoree.dll and .NET 1.1 vs. 2.0.  I have both .NET 1.1 and 2.0 on my system and now the .NET 1.1 mscoree.dll .NET is in the system32\URTemp directory and the .NET 2.0 mscoree.dll is in the system32...

Tags:Microsoft`, C#

Thanks in advance for any assistance. Basically, I am trying to create a simple little application that will allow me to pick several Excel files (with the same schema) and then concatenate all these files into one large master Excel file (or...

Tags:VB.net, Vs 2005

Hello,
I have two DataGridViews  both are filled based on BindingSources which are using stored procedure with different parameter values.

Now I need to move rows from one DataGridView to other one. I know how to remove row from dataGridView...

Tags:VB.NET

I have a form with 6 panels and 6 buttons.  How can I display one panel and hide the others when I press a button, and then vice versa.  Here is a sample of my code, but it does not work:

Public Class FormShow
    Private fobjCurrentPanel As...

Tags:sybase, visual studio

How can I insert an if statement inside of a Sybase select statement. I am trying to do this from within Visual Studio. For example something like my code below.

Tags:C#

I need to populate the Infragistics UltraGrid. I am using the datasset. The stored procedure returns 2 columns month, year.For month it returns the 1,2..........or 12.I can't change the storedprocedure
I am thinking of adding a column to the...

Tags:MIcrosoft, ASP.NET, 3.5, c#, any

Hello,

My situation. I am using HTML-PDF dll to create dynamic pdfs. The HTML called by the pdf converter is protected with authorisation so only logged in users can view  PDF's (eg invoices, quotes etc).

My issue is when I need to send a...

Tags:VB.Net, logonuser, user, impersonation, service

I have a .Net system service that requires calls to start and stop 2 other services. I want to run this service in a limited context, but still be able to control the other 2 services. I am using the ServiceProcess.ServiceController object to...

Tags:ssis, ftp, task, script

I have a requirement in SSIS to connect to a remote ftp site, download all files to a local drive and then remove only the remote files that I've transferred. The file names will be different each time.

I've got the attached code in a script...

Tags:decimal, places, round, 2, datacolumn

I have a DataColumn expression that yields a result with 10 decimal places, I need to round this to 2 decimal places. I've tried wrapping my expression with the Convert(expression, type) function, I've also tried DataColumn.Format("#.00") but...

Tags:datetimepicker, clear, value

Hi guys..

I like to clear my DateTimePicker before the user "insert" the date

I tried
Me.DateTimePicker.CustomFormat = "MM/dd/yyyy"

but i start vith the value is has from the designer

I got this error when MapPoint crashed my system.  Does anyone understand this?

Please advise if you do.

Thanks,
newbieweb

The machine wide Default Launch and Activation security descriptor is invalid.
It contains Access Control...

Tags:.Net C#, Visual Studio Tools for Office

Greetings:

I have a project that is distributed/published to the company via a file share.  The certificate for the Visual Studio project recently expired and was replaced/updated in order to publish successfully.  However, after the publish...

Tags:perform, unauthorized

Hi All,
My app supposed to set an Owner and Administrator rights to remote directory.
The App is running under domain Administrator account. When I login with this account I can do anything manually with the directory, but from the code:

             ...

Tags:datagridview, format

Does anyone know where I can find out all of the difference formatting codes for:
DataGridView1.Columns(1).DefaultCellStyle.Format = ?

I have seen examples of "c" & "d" & "C" & "C2" but have no idea what they mean.

Tags:remote, desktop, access

Hi,
      I want to develop an application in C# to access the remote computer like VNC, Remote Desktop Capture. I would like to know how to start to develop such type of application. Please give me some useful link or document or source code for...

Tags:file, check, use

Hi,

How do I check if a file is in use?

F.ex. this code works perfectly if the file isn't open.
If the file is open I get an error saying:
"The process cannot access the file 'c:\\file.txt' because it is being used by another process."}...

Tags:does, match, target, reflection

I need to discover the value of a property in a class by using reflection.

I need to create a form with a property grid that dynamically binds to a class object of which could change as it will be based on a collection in another program.  I...

Tags:C# (WinForms), N/A (WinForms), N/A

I am binding a collection of a class to a DataGridView using a BindingSource.
The binding is working fine but I am unable filter the list.
I am able to set the Filter on the BindingSource but the filter is not applied.

I have done this...

Tags:c#, SQL

I am trying to do a SQL JOIN in C# but I can't seem to get the propper SQL statement.

I have 2 tables:
tblClient - ClientIndex, LastName, FirstName
tblCase - ClientIndex, Worker

I have 2 textboxes for searching - txtLastName and...

Tags:cancel, bindingsource, addnew, bindingnavigator

Hi,

I am new with Visual Studio .NET 2005 and I need some of your imput. I have created a small application using the wizard to create a data source and then clicking and draging the table in the dataset over my form (standard windows form) to...

Tags:file, check, exists, delete

Hi,

How do I check if a file exists, and if it does how do I delete the file?

Thank you very much! :)

Tags:dpi, get

I am looking for C# code to get the DPI settings of the display (usually it's 96)
Thanks!

Tags:Microsoft, Visual studio, 2003, trial version

Where can I find to download the visual studio 2003 trial version

Thanks

Tags:ASP.NET C#

I have a GridView with many columns.  Since this table is very wide, I'd like the two-word column headers to wrap.  Visual Studio shows the headers wrapping, but browsers still show them all in a single line.

Tags:datatable, column, delete

Hi
Vb.Net (Vs 2005)

Is it possible to delete a specific column in a datatable

Tags:Microsoft, .NET

I have a utility written using C# that -

Makes HTTP requests
Edits and saves the hosts file
Repeats the above

The problem is the changes to the hosts file are not being used by the new http requests being made by the application unless I...

Tags:Microsoft, Windows, any

If I develop an application (e.g. in Visual Basic.NET) that writes to the Windows Application Event log, are there any accepted public ranges of Event ID numbers that I should use?

Tags:c#

I have a re-sizing panel in my application which I want to add a 'border' to in the form of a rounded rectangle.  Drawing a standard rectangle seems easy using the following code:

private void WorkflowTabView_Paint(object sender,...

i have a infragistics ultra combo box (databound) with 2 colomns A(ID) and B(NAME). I also have a ultra grid with some data .I have given the combo box as editor control to one of the colomns of the grid.
So now the user can make selection from...

Tags:C#/ASP.NET, Firefox 2.x , 3.0 , IE 7

Hi,
I have a page with gridview where each row in gridview has the following columns:
1) Employee Description
2) Employee Number
3) Checkbox to multi select

Once I multi select rows, I wish to perform action(say Suspend) on the selected...

Tags:service, start, from, command, line

I have downloaded a sample asp.net app that uses a windows service.  I am trying to install the windows service but get the error "cannot start service from command line or debugger"  - the service has an exe file and I am just clicking that.

Tags:Microsoft, MS SQL Server 2005, SQL

Hello Dear Expert,

I got this error in SQL Server 2005, when I tried to import data from Excel using import/export wizard.

"Error 0xc00470fe: Data Flow Task: The product level is insufficient for component "Source - Sheet1$" (1)."
...

Tags:Microsoft, Visual Studio, 2008, Set Focus to Text Box on Form Load

My application opens to Form1 when loading.  Form1 has two tabs and many controls, one of them is a text box - txtPolNumber.

I am trying to set the cursor focus inside the text box when the form loads.

I have tried both:
...

Tags:Microsoft, .NET, 2.0, Project Server 2007, C# 2005, IE 7

I have a C# file that has the following in its list of 'using' statements:
using System.Data;
using Microsoft.Office.Interop.Excel;

Building it gives me an ambiguous reference to type DataTable.
Leaving off just the System.Data makes...

Tags:assembly

I have written an application which programatically imports data from an Access database into a SQL Server database using DTS. The program runs correctly on my own computer but when I run it from a computer that does not have SQL Server...

Tags:reporting, services, default, all, parameter

Hi there,

In reporting services, I've got a multi-value variable called @location_id. When the report renders it gives me a drop down list with a list of checkboxes so I can set the location_id.

How do I set initial the report so that all...

Tags:focus, set, button, setfocus

How do you SetFocus in VB.NET?  I have a VB.NET application that has a button on the main form called Merge.  When Merge is clicked, there is a loop that reads image files from a directory and (hopefully) displays each image in a new form and...

Tags:C#

I have created three data tables by pulling data from an Oracle database.  DT1, DT2, DT3.  I have added these three tables to a data set, myDS.  I have added relations between these three tables (See first part of attached code snippet).  I then...

Tags:SQL Server 2000

The log file of one of the databases on my SQL SERVER 2000 has grown to over 123GB.  I need to shrink it down and control it's growth.  It's on a 250GB drive with only 15GB free.

In SQL Server Enterprise Manager the database properties are...

The VB.Net File Copy and Move commands are easy to use if you want to rename the files.

Dim fFile1 As New FileInfo("C:\\abc1.txt")
fFile1.CopyTo("C:\\abc2.txt", True)
Dim fFile1 As New FileInfo("C:\\abc1.txt")
fFile1.MoveTo("C:\\abc3.txt",...

Tags:Visual Studio 2003 2005 2008 2010 Amazon Unshipped Charge when shipped orders HttpWebRequest getresponsestream

I want to load my table into a datagridview.  Here's what I have:

I am receiving an HttpWebResponse with an Order Report as the Body.  I am able to use streamreader with getresponsestream and read that into a string.  The string displays as a...

how do I delete row from datatable asp.net vb?

Tags:C#, LINQ, .NET

Hi,

I am using LINQ to SQL and are dragging and dropping my tables and stored procedures to the LINQ designer file .dbml. This works great and I can query against this object relational model in my C# code. But since I am developing I am also...

Tags:c#

I have a 800mb wma file that I need to split into multiple files programmatically on the fly by specifying a start and end point in bytes.

I tried doing it by reading a file into a file stream and then writing it back out changing the start...

Tags:ORACLE, ODP.NET, 11g, XCOPY version, C#

I have created a Windows service that interacts with an ORACLE database. For talking with the database I am using the latest version of ODP.NET.
Now, I want to install the service on a client server. However, I do not want to install a...

Tags:excel, import, file

I have a file browser that will select an excel file.  How do I import it into the application?  Do I open and read each line, one at at time?  Can someone post some code?

Thanks

Tags:VB.Net (VS 2005)

Hi I need some help to get this code to work

The function should switch between Dynamic and static IP modes

Tags:c#

hi
(c# windows form)
i have  some rows in my datagrid i just want to move the selected rows up or down using the up down buttons(which i had in my form)
can any one provide the sample code
thank you

Tags:microsoft, .NET, Visual Studio 2005 Professional Edition. .Net Framework 1.1/2.0, Windows Services

Hello

I have created a service which would allow the service to be installed automatically using the createservice() API. The code is as in the code snippet.

I have manage to install the service automatically. The problem is, when i start...

Tags:error, 2007, exchange, owa, server

Exchange 2007.  I've had a succession of problems getting OWA to work, my one is:

Server Error in '/owa' Application.
--------------------------------------------------------------------------------
Runtime Error
Description: An...

Tags:asp.net, c#, AJax, jquery, .net, javascript

Hi,
I am creating a user control which should have a date picker. I have this code in asp.net page with content place holder and ajax and it works. but when i place it in user control, it doesnot work. I dont know whether content place holder is...

Tags:serialport, datareceived, rs232

I have created a custom windows software in vb.net, VS 2005.  I am reading data from a Pennsylvania scale (model 7300) via my development computer's RS232 port.  I am using the SerialPort object and Handling the DataReceived event.  I first send...

Tags:ASP.NET C#, .Net 1.1 Visual Studio 2003

Please see the attachment. This will explain thing better.

Basicaly, when the Back to Login Page button is selected, the application goes to a page with double login pages. I only need the login page showing once at the same time.

The code...

I need to turn the mute to off on Windows XP, using C# and suspect that I need to instantiate an object similar to AxWindowsMediaPlayer.

Could someone please tell me what object in C#.NET I need to create for this and how to work with it??
...

I am trying to format a textbox when someone leaves to put it in a currency format.
I am getting this error:
cannot convert from 'string' to 'System.IFormatProvider'

        public string FormatMoney(string StringToFormat)
        {
      ...

Tags:Visual Basic, ASP.NET, All, Infragistics Controls

I am a beginner in this realm, so bear with me - I have to replace one third party control with another, and the selected replacement comes from Infragistics.  The specific control I am looking to implement is the webhtmleditor.dll - it places it...

Tags:parameter, crystal, enter, reports, values

I am opening up a Crstal Report through VB 2005.  The report works exactly as it should except the enter parameter values dialog keeps popping up.  I have no idea why this keeps happening .

Here is my code

Private Sub...

Tags:timeout, web, service

Hi,

I created a console application to load test my web service. I created 10 threads that I execute at the same time.

Each web service thread queries a database with a query that takes 2-3min.

When I start the 10 threads and wait for...

Tags:iis, pickup, get, cannot, directory

Help!!!

I setup a new computer for my development.  I re-installed VS2005 and the service pack.  All Windows XP updates have been applied.  I am now getting the following error when I try to send e-mail.

A first chance exception of type...

at CrystalDecisions.ReportAppServer.DataDefModel.FieldsClass.get_Item(Int32 Index)
   at CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinitions.get_Item(Int32 index)
   at...

Tags:null, ajax, fileupload

 Hi

Im using VC#.NET 2.0 and AJAX

Im trying  to display an animated gif while Im uploading a file to my server. However the string "File1" in the (button3_click event below) is always null. This has something to do with using AJAX. If I...

Tags:.NET C#

I'm new to this 'IEnumerable interface'.   Can someone say a word or two about it as in contrast to the world before .NET ?

Thanks!


Which one of the following is a limitation resulting from a class that has an indexer property but does...

Tags:zoom, rotate, images, manipulating, c

I need to zoom and rotate images in C#. Can this be done with standard .NET library calls? If so, what do I need to use?

I will be using JPG photos.

I have a property DOB that is of type datetime

newClient.Dob


However I need to display the datetime as a date like 31/07/1955

But currently it displays 31/07/1955 00:00:00

How can I do this so it only displays 31/07/1955 ?

Tags:stdtype

Dear Experts:

I want to setup and run an existing Visual Studio .Net 2003 project on a computer. The computer is not the one that was used to develop the project.

I checked the references of the project in Solution Explorer, and found that...

Tags:datagridview, cell, edit, programmatically, mode

How do you move the focus to a cell (0,0) in a datagridview and enter edit mode, so the cursor is blinking and the user can type?

Hi
i am working on integration of our web application project with windows sharepoint server.

all the documents which are uploaded through application needs to be copied on to the sharepoint server.

i need to create folder on the...

Tags:microsoft, .NET, 3.5, c#

Hi,
Please let me know
How to unzip a zip file Using System.IO.Packaging . and reading a file inside the Zip file.

Thanks

Tags:soap

I am attempting to make a SOAP call in c# and I am receiving the following error.

System.InvalidCastException: Unable to cast COM object of type 'MSXML2.ServerXMLHTTPClass' to interface type 'MSXML2.IServerXMLHTTPRequest2'. This operation...

Tags:rsaccessdeniedtosecuredata

We had some kind of update pushed out to our environment last night and our application took a pretty good hit.  Got almost everything cleaned up but this last error is dug in.  On our home page we have a SQL Reporting Services report but instead...

I have created a shared folder as follows :-

            // create a directory
            Directory.CreateDirectory(folder);
            // Create a ManagementClass object
            ManagementClass managementClass = new...

Tags:C#

Hello all,

I have run into an interesting situation... I used to have my appConfig files local, but have recently moved the xml into a DB.  The problem I am having is getting this xml string into a ConfigurationSection

The code is...

Tags:C#

I am working on Infragistics ultraWinGrid in windows application.ultraWinGrid populated with the dataset.
The ultraWinGrid has one column cmf.whenever the copydown button is clicked,we have to capture the last changed cell and cell value in that...

Tags:page, web, matrix, master, webmatrix

How can I create a master page in webmatrix (framework 2.0)
thanks in advance

Tags:file, send, post

I need sample sourcecode to send files via POST method to a web form. The webform is .php, but I think that it is indistinct, right?

Tags:form, after, load, code

I want to execute some code after form loads  

It's mean :
Action 1  private void myForm_Load(object sender, EventArgs e)
Action 2  myCode()


How can I do it in C# ?
Thanks

I need to isolate access to my data access layer (DAL) from my user interface layer through a business logic layer (BLL). I love the way ADO.NET DataTables and DataRows work and need to leverage all the built-in binding that they do, so I want to...

Tags:C# DataGridView TextBox -- default to today ?

How can I get the attached "DATE_ENTERED" column to
automatically display today's date (i.e. 01/30/2012)
when adding a new record ?

Tags:C#

I need to read an image file from a blob column in MySql database into a byte array that can be used as an image source in a WinForm. I do not know the size of the blob.
The code:
{
...
int id = 1;
UInt32 FileSize;
            byte[]...

I want to change one column in an Infragistics ultragrid to allow multiline entry (visual basic). When a user reaches the end of a certain ultragrid column, instead of the beginning of the text disappearing to the left, the data can wordwrap to...

Tags:animation, ajax, autocomplete, example

I am using the following autocomplete control:

<cc1:AutoCompleteExtender
    ID="AutoCompleteExtender1"
    TargetControlID="txtProjManagerSearch"
    ServicePath="../Services/AutoComplete.asmx"
    ServiceMethod="SelectProjectManagers" ...

Tags:Microsoft, Visual Studio, 2008, font size

My C++ source code occupies the left half only of the code window in Visual Studio 2008. The font size is painfully small. I do NOT want to be forced to change screen resolution.

Is there a way of changing the font size within the code window...

I want to use emacs editor to write system verlog code, does anybody have the necessary code for .emacs file so that I see system verilog reserve words highlighted. At present there is no color to this file.

Loading Advertisement...

Top .Net Editors & IDEs Experts

  1. JamesBurger

    3,000

    0 points yesterday

    Profile
    Rank: Sage
  2. TheLearnedOne

    2,800

    0 points yesterday

    Profile
    Rank: Savant
  3. kevp75

    2,800

    0 points yesterday

    Profile
    Rank: Genius
  4. SStory

    2,800

    0 points yesterday

    Profile
    Rank: Sage
  5. masterpass

    2,800

    0 points yesterday

    Profile
    Rank: Sage
  6. mroonal

    2,800

    0 points yesterday

    Profile
    Rank: Sage
  7. dtodd

    2,000

    0 points yesterday

    Profile
    Rank: Genius
  8. jonnidip

    2,000

    0 points yesterday

    Profile
    Rank: Master
  9. bcdudley

    1,000

    0 points yesterday

    Profile
    Rank: Master

Hall Of Fame