Software Development Network Logo
  • Visual C#
  • Microsoft ISV
  • SQL Server
  • Smart Device
  • .NET Development
  • VS Express Editions
  • Visual J#
  • Windows Live
  • Visual Studio
  • Visual Basic
  • Windows Forms
  • Visual C++
  • VS Team System
  • Windows Vista
  • Game Technologies

Software Development Network >> aaronexodus's Q&A profile

aaronexodus

Member List

patrick_henry_1776
Dennis L. Hughes
Perry Ismangil
pkdenver
Satishchandra999
CMCFelix
Arthur Dzhelali
Shane Pilo
Michael Mac
Will Lotto
Aravinth Kulasekaran
Kusok
yihect
ScottVault
iambic
Kamii47
Carlosmcg
ARichter
MilleniumHandAndShrimp
Neil Daniell
Only Title

aaronexodus's Q&A profile

  • .NET Development Setting DNS suffix through .NET?

    I'm trying to see if a machine has a domain suffix and if not add that suffix to the computer. I have something like this: System::Net::IPHostEntry ^rHostInfo = System::Net::Dns::GetHostEntry(System::Net::Dns::GetHostName()); String ^rHostName = rHostInfo->HostName->ToLower(); if(rHostName->Contains(".mysuffix.com")) { } else {    rHostInfo->HostName = String::Concat(rHostInfo->HostName->ToString(), ".mysuffix.com"); } This doesn't seem to do anything, Anyone know what I should be doing to set the suffix Thanks! I think you intended to do rHostName = String::Concat(rHo ...Show All

  • Visual Basic User session logon time!

    I am inquiring about information on whether it is possible to determine how long a user has been logged on for. What I hope to accomplish is to determine if a user has been logged on for more than an 24 hours and if so, display a splash screen of some type to tell them to log off. I don't want to log them off, politics involved. Every where I look I haven't been able to come up with a solution. I did find a sample script to check event logs, but how do you calculate the time the event was written and the actual time to determine if it is more than 24 hrs. Can anyone offer any help. You might be able ...Show All

  • SQL Server Header on Matrix Rows

    Is there any way to add a header to a Matrix row in RS SP2 Much like a header for fields in a table. I have multiple row groups in my matrix and want to label them so as to avoid confusion. However, I haven't had much luck in finding a way to do this. What I have looks like this: Tasks, Users, Billing 01 Jan 2005 Time External Billing (£) 1 to 1 2       SubTotal 5.25 270.00 6.2       SubTotal 1.50 0.00 10 South Way 1       SubTotal 3.50 245.00 106 Wetherby Road (Ian Mcleod) CS0344       SubTota ...Show All

  • SQL Server Error Msg 141 on Bulk Insert

    I've got the following SP to automatically insert all files in a directory into the database: SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE Imp_Header_PO_sp @FilePath varchar ( 1000 ) = 'D:\EBT\Outbound\' , @WIPPath varchar ( 1000 ) = 'D:\EBT\Outbound\WIP' , @ArchivePath varchar ( 1000 ) = 'D:\EBT\Outbound\Archive' , @FileNameMask varchar ( 1000 ) = '*Header.txt' AS BEGIN SET NOCOUNT ON ; declare @Filename varchar ( 1000 ), @File varchar ( 1000 ) declare @cmd varchar ( 2000 ) create table #Dir ( s varchar ( 8000 )) ...Show All

  • .NET Development how to concatenate data from two Byte arrays into one Byte array?

    Hello!   Does the .NET framework provide an easy way of merging two  Byte arrays into one boc First a low level one: byte [] one = { 1, 2, 3 }; byte [] two = { 6, 8, 9 }; int length = one.Length + two.Length; byte [] sum = new byte [length]; one.CopyTo(sum,0); two.CopyTo(sum,one.Length); Then a bit better, use the generics List<T> collection byte [] one = { 1, 2, 3 }; byte [] two = { 6, 8, 9 }; List < byte > list1 = new List < byte >(one); List < byte > list2 = new List < byte >(two); list1.AddRange(list2); ...Show All

  • .NET Development Parsing HTML with no UI context

    I'm trying to retreive and parse an HTML document from a website. I've succesfuly done so in a WinForms app using the web browser control. The problem is that I'd really like to create command line utility which just dumps the results to a file with no UI (and at some point migrate it to a service) - something akin to the "curl" linux utility. The issue is that webbrowser seems to insist on a UI context being present. Anyone know of a way to create a MSHTML parser from C# which would work with no UI context To answer the download to a file question, see System.Net.WebClient.DownloadFile ...Show All

  • Visual Studio Tools for Office c# counterpart of VBA for Excel

    hi, can anybody tell me the c# counterpart of the following Excel VBA code line: ActiveSheet.UsedRange.Columns(1).Cells i tried (and also its variations) ((Range)((Range)((Worksheet)((Excel.Application)app).ActiveSheet).UsedRange).Columns[Type.Missing,1]).Cells but doesn't seem to work. no matter what i tried i got an exception. neither could i find anything on google. i would appreciate any help. thanks. Hello, I believe your code is throwing an exception because the first parameter of the Columns property (which essentially calls into the native Range collection) is not optional. You are passing in ...Show All

  • Windows Forms Text entry controls with field masks!

    I'd like the framework to enable developers to define text boxes with masks for things like hex digit entry, amounts, phone numbers, date (in the localised format) etc, etc. I know all this is possible by over-riding the individual controls or creating new ones but this is too much to have muck around with when you're pressed for time on a client  ...Show All

  • .NET Development XmlNode in Generated Typed Class

    I generated a C# (or VB.NET) class using an XSD file supplied from a Java-based web service.  The schema includes a "body" element that can itself be more in-line XML as defined in a second XSD file (or in others).  The generated class declares this body element as an XmlNode rather than an object.  Why isn't the body element declared as an object like the other XML elements   Do I have to serialize the object based on the second schema and then deserialize it into an XMLDocument or XmlFragment to get it into this XmlNode    I've seen examples on similar manipulations on XmlDocument types, but I'd pre ...Show All

  • Visual Studio Tools for Office Can I create SharePoint Webparts with RTM?

    Is it possible Create SharePoint Webparts with VS 2005 RTM and .Framework 2.0 Thks, Max Andrade Did you resolve this issue Just curious as there has been no activity in this thread since 11/11/05. If I don't hear from you within a week, I'll just consider the matter closed. Thanks! Mike Hernandez Community Program Manager VSTO Team ...Show All

  • Windows Forms crystal reports

    I get the following error message when trying to run a crystal report "Unable to find the report in the manifest resources"  The exception is being thrown by the crystal reports engine when I try to set the datasource property to an existing data set. See your Crystal report code file. if the crystal filename is abc.rpt. see the abc.cs in  ...Show All

  • Visual C++ Why do I get "The transaction has already been implicitly or explicitly committed or aborted"?

    Without using TransactionScope the code runs fine.  With ts, the exception is throwed when I call Update(). Below is my code in C++: try {    Transactions::TransactionScope^ ts = gcnew Transactions::TransactionScope();    SavePatient(hPatient, hProgress);    ts->Complete(); } catch (Exception^ e) {    MessageBox::Show(e->Message, "Error!" ); } ////////////////////// void SavePatient(Patient^ hPatient, Progress^ hProgress) {    row = m_rtpDataSet->Patient->NewPatientRow();    row->StudyDate = DateTime::Now;  & ...Show All

  • SQL Server SQLSERVER 2005 Sept CTP BACKUP AND RESTORE Transactions

    Problems with Backup and Restore using WIN XP service pack 2, and the September CTP Standard Edition of SQL SERVER 2005. I have a empty database which is using the  full recovery model. To start with I run the following : backup database dbTO DISK ='E:\current\dbase.db' WITH INIT backup log db to DISK = 'E:\current\dbase.ldf' WITH INIT I then makes changes to my database, few inserts etc. Then backup the transaction log again using: backup log db to DISK = 'E:\current\dbase.ldf' If  I then try to restore the database on another SQL Server 2005 (or the same one), I find that when I restore using the following: RESTORE DATA ...Show All

  • Visual Studio Team System Documentation Checkin Policies

    Anybody know if it's possible to apply check-in policies to project documentation  I have a requirement that a project document can only be updated and up-issued if it is associated with an open work item (allows better traceability). Also, Is there a way that the version number of a document held in configuration control be reflected in the metadata for that document This would help keeping document headers/footers etc. up to date. Cheers. James Thanks for the reply. Its a shame it isn't in version 1 though, would have helped with our CMMI L3 auditing! Putting a link from the work item to the sharepoi ...Show All

  • Windows Forms Distributing required updates?

    Our company has written a WinForms application. Since not many of our customers have the .NET framework yet, we've put the download links on our homepage. We've also linked the required updates for .NET framework to make installation as convenient as possible. It seems that many of our customers still have ISDN and don't want to download ~200 MB. Are we allowed to se ...Show All

©2008 Software Development Network