Mike @ DanRic's Q&A profile
Visual Basic Read files in a directory
Does anyone have a code sample of how to read files in a directory..what im looking to do is read a file name and run checks to verify its authenticity..then excute it...also looking for a code that would read the file name..for example files are called WW487487.exe WW154874.exe WW244874.exe I need code that will only read the numbers not the "WW" or the ".exe" Thanks in advance! More suggestions - this code will do some filtering on the f ...Show All
SQL Server Cannot open a connection with SQL Server 2005 Developer Edition.
I have installed on one computer Sql Server 2005 Developer Edition (CTP Version) together with a Visual Studio 2005 Beta Edition (July Version) and after configuration some properties by example the Network access, I had a lot of errors from the SQL Server Management Studio received(The most of them are a Connection timeout error but others errors too). In the same time I have made a test program to test the new SQL Server 2005 using DB Li ...Show All
Visual Studio How to make this kind of report?
Hi. I have a report like this at the moment: Device1 Device2 Recipename1 Date1 SummaryData SummaryData Recipename1 Date2 SummaryData SummaryData Recipename2 Date2 SummaryData SummaryData The data source is a dataset that I manipulate by C# code after getting the raw data from a sql server. I then use the push model to put this data into a crystal report. I summarize column data above by recipe name ...Show All
Windows Forms more efficient control programming
Hi all, I want to learn more about control development and how to structure a controls internal code correctly to write more efficient controls. Does anyone know some good sources where I can found some informations about the following topics: - Howto make&nb ...Show All
SQL Server Empty cube after date dimension added
In 2000, we could tell immediately whether there was data in the cube by running the SQL Statement that was used to process it. We could also troubleshoot join issues between dimension tables. In 2005 the process has changed. The cube update appears to be independent of the dimension update. When I add a custom date dimension to my cube, all data within the cube disappears. My measures are empty, and I cannot get data back no matter what I sl ...Show All
Windows Forms configure layout & formatting of columns of bound DataGrid
I'm new to Windows Forms ... I'm not seeing how to control the size and formatting of a bound DataGrid's columns. I set DataGrid1.DataSource = DataTable1 The DataGrid displays the two columns of data from DataTable1, but the columns are displayed with identical&nb ...Show All
Visual Basic DataTable is not defined
Ok I'm first to admit that I'm no legend when it comes to .net programming. I'm slow to make the transition from VB6 - so I jump straight into a beta- maybe not the smartest thing to do. Anyway, I've got a smart device project - and I want to reference a datatable. I've added the reference to system.data but when I declare 'Dim NewTable As New DataTable' for example, it tells me that this is not defined What am I doing wrong. I have ...Show All
.NET Development How to send mail from a Windows Application??
I am attempting to write an application which will send a mail message with an attachment. Here's code: using System; using System.Drawing; using System.Data; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Web; using System.Web.Services; using System.Web.Mail; string filename = "c:\\stuff.xls" MailMessage send = new MailMessage(); send.To = " validmail@mymailserver.com "; s ...Show All
Smart Device Development wse3 runtime
There is also a runtime available from wse3. Means this that everywhere you want to deploy your application, this has to be installed Also on the compact framework ty I'm not quite sure what exactly you’re asking and what do you mean by "wse3". Please clarify. ...Show All
Windows Forms Databind to object with null field
I'm currently binding my object to the DataGridView. The only problem is that some fields of the object may return nothing. I found that the nullable type seems helpful at first, so I've used nullable(Of decimal). However, exception will be raised when I run under this setting. The exception message is "Nullable object must have a value." It doesn't make sense to me as I don't think I can give any value to DGV if my field is nothing ...Show All
.NET Development Given XML, how to build schema and data tables?
I'm looking for the "proper" way to do this: I've been given a web site that generates some XML. I need to load the XML from the site (that's trivial, of course) and then populate a database table with the information contained in the XML. For example, the XML looks something like this: <OutputData> <Response> <Result code="0">Operation Successful</Result> <Agents> <Agent code="45 ...Show All
Visual Basic Compare two text files
Thanks for taking the time to read this. My problem is below. I have two directories with music in them. one on my C: the other on a removable drive. I use dir > list.txt to output a list of the contents of both folders. I want to build a program that will compare the two text files and show me what is in the C: and not in the H: i have the GUI developed and some basic code, however, i am undersure how to do the actual comparision. Any help w ...Show All
Visual C# Read from html file
how can i get my email on hotmail from my application like outlook You want to get the e-mails from Outlook You can find a article on code project that shows you how to interact with Outlook, go check it out here . ...Show All
Visual Studio AssemblyInfo task
I am trying to use the AssemblyInfo task in my team build, from this blog: http://blogs.msdn.com/msbuild/archive/2005/11/11/491947.aspx A few questions: - rather than editing each .vb/.csproj file, is there a way to set assemblyinfo details across all assemblies in a team build - what about web apps that dont have an assemblyinfo file - is there an easy way to use the $(BuildNumber) property in Team Build as the assembly version n ...Show All
Visual Studio 2008 (Pre-release) Getting System.InvalidOperation Exception
Service 'ADAMMemberShipProvider' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because there was a problem with the type in the configuration file, or no endpoints were defined in the configuration file. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the ...Show All
