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

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

justadam

Member List

oldolddba
Ravindra K Agrawal
mcabrera
jtl8678
chris lasater
MikeM-SF
Rockfan
Sedigh
d.v.d
Infodine
Melbert
MSwift
Leland Gary
rocco n
benobi
Sandyboy
Pin
Sunny Boy
HOANG THONG
Martin Ly
Only Title

justadam's Q&A profile

  • Visual Basic How to read hard drive info

    Is there anyway to get more detail info about my harddrive using VBX/2005... such as Serial number, clusters, heads, plates... anything. Thanks. You can use the wmi to get some of the info you are looking for. The win32_logical disk class. http://msdn.microsoft.com/library/default.asp url=/library/en-us/wmisdk/wmi/win32_logicaldisk.asp Simple wmi example http://www.vb-tips.com/default.aspx ID=632054ab-5fe5-4779-a6be-111ae0c748f2 ...Show All

  • SQL Server Cannot create a connection to data source

    I installed the SQL Server 2005 June CTP.  I created a datasource named Datawarhouse. I went into the Report Builder and created a report and could actually run the report successfully.  When I saved the report & ran it I got the following error:  An error has occ urred during report processing. Cannot create a connection to data source 'Datawarehouse'. For more information about this error navigate to the report server on the local server machine, or enable remote errors. I am not sure what I am doing wrong.  Why don't it find the data source   Any help would be appreciated.   Thanks! John ...Show All

  • SQL Server Set default value on column object

    I am trying to set the default on a column object and it does not seem to be the same as SQL-DMO.  In SQL-DMO, I just set the DRIDefault.Text property and it was all good.  Now when I set the Default property I get an error creating the table telling me that getdate() is not a default.  At this point, I tried creating a Default object and setting the TextBody and TextHeader.  When I try to create the default it says there is a syntax error in TextHeader.  I do not know what to put in there.  Any ideas or samples Thanks, Stephen I have added a small sample here that illustrates ...Show All

  • SQL Server Get FlatFile Columns through ConnectionManager

    The CreatePackage sample provided with SQL Server programmatically creates a package that has a source type of OLEDB to a flat file destination. I am building exactly the opposite, source=flatfile, destination=SQL Server. I expect that will be a more common scenario is using SSIS. The problem I have is populating the source columns in the FlatFileSource connection manager programmatically. I know it can be done because it happens when you build a package in Visual Studio. What I'd like to know is how to do it programmatically in the object model. How can I interrogate the datasource through the connection manager to find out what columns ...Show All

  • Windows Forms in arrays...

    Hi, I'm trying to read a text file, somewhat like this: #15-07-2001 sdkfhksdfhsdc cskjmcdfcsd #13-12-1999 asljkdaksjxd dcjdvf etc... I want to save the dates... so I put up something like this: string line; string date; StreamReader sr = new StreamReader(...); while((line=sr.ReadLine()) != null) {      if(line.StartsWith("#"))      {           line = line.Remove(0,1);     ...Show All

  • Visual C# Weired behavior of Timer

    OK, this is driving me nuts: I'm changing the size of a form, when a button gets clicked. The actual changing is delayed by a timer... just for an nice effect. :-) This works fine the first time. When clicking another buttons, the form goes back to its original size. And clicking the first button again, it will change its size... When the first button gets clicked the second time, the form doesn't resize as smooth, as it did the first time. Seems the like the whole form gets repainted every timer, the Timer.Tick() event gets called. Why is this I already tried the following: - Using just one timer for both buttons - Using two different timer ...Show All

  • Smart Device Development genasm error message when adding DesignTimeAttributes.xmta to my project

    This is weird. I have a Smart Device C# library that builds perfectly. When I add a DesignTimeAttributes.xmta to it and rebuild it I got the following error message: genasm.exe(1) : error There was an error finalizing type . Type 'MyNameSpace.MyClass, MyLibrary, Version=9.2.0.0, Culture=neutral, PublicKeyToken=null' was loaded in the ReflectionOnly context but the AssemblyBuilder was not created as AssemblyBuilderAccess.ReflectionOnly. My Namespace is MyNameSpace. My library is called MyLibrary. I have tried to reproduce it on a small project and I can't. I will keep trying to see if I can narrow it down. Thanks in advance for helping. ...Show All

  • SQL Server Hi Everybody, Sql Server 2005 SE installation problem

    I faced the following problem while installing Sql Server 2005 SE "Error 193 Installing .NET Framework 2.0" while installing Sql Server 2005 Please help me to proceed further Hi This might sound stupid but i copied the "SQL Server x86" folder from the DVD onto my local hard drive and ran the "\SQL Server x86\Servers\setup.exe" from the hard drive copy to install the server components. Lo and behold everything worked fine. ...Show All

  • Smart Device Development M2003SE SQL Data Collection Application

    I'm adding records to an SLQ Mobile database. Thus far I can view the data in a Grid Control and add new entries using the code below (without the 'Clear the fields section). My problem is that when I insert the handlers to clear the TextBox.Text fields and put the cursor back to the first data TextBox (ID) it does not save the record. Ideas, suggestions, clues, pontifications Private Sub btnAddRecord_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddRecord.Click Try 'Me.Validate()part of MSDN code for Northwind Me .InventoryBindingSource.EndEdit() Me .InventoryT ...Show All

  • Visual Studio Express Editions Books: Recommendations

    My hope is this will become a sticky posting, so everyone can see it, use it and reply to it. I am looking for recommendations on books for Visual Studio 2005 & Visual Studio 2005 Express Edition (if there's a difference). If you know of any good books related to these, could you please post them here This way people will have a resource they can go to so they can find this type of information, especially beginners like me. I think a good format would be. Title, Author (if known) Level: (Beginner/Intermediate/Expert/Reference, etc.) Subject: (Again, if there is a difference between VS 2005 & VS 2005 EE, then tell ...Show All

  • .NET Development Restriction base invalid, error

    Anyone know how I can get rid of this error   I included the beginning of a schema below that raises the following error in VS.NET 2003.  I don't understand where this error is coming from.  I tried changing the schema fro xs:string to xs:anyType, but that didn't get rid of the error for me. Neither did changing the xs: prefix to xsd: . Thanks, Paul ---------------------------------------------------------------------- ERROR An error occured while loading the schema with TargetNamespace 'http://www.w3.org/2001/XMLSchema' referenced in this document. The value for the 'base' attribute is invalid - 'xsd:string' is an inval ...Show All

  • Visual Basic GDI+ Questions

        I have this beloved old VB6 program that has been converted to a sleek new vb2005 program. It's name is "Color" Color is a utility. It will sample pixels color anywhere on the desktop. It also gives me the x-y coordinates for a given location. It gives me the RGB color value in hex and decimal. I find that I used Color to measure dimensions a lot. and that I'm always having to(x1-x1) and (y1-y2) and awful lot. It's natural that I'd like to use Color to measure anywhere on the desktop or more accurrately what I'm seeing in the moment. So tonight I've been playing with GDI+. It's no problem to: dim g as graphi ...Show All

  • Visual C# Cast string to variable?

    Is there a way to cast a string to a variable name In my code I need to instance classes on the fly. In psuedocode I want to do this: Variable KeyValue<x>; With <x> being replaced by an incrementing number on every call (so you might end up with KeyValue0, KeyValue1, KeyValue2, etc.). Is there any way to do this in C#  I recall a way in Pascal, but that was many years ago... No, there isn't a way as the variable name must be known at compile time. You could implement this using a collection class such as:   // in your constructor List<Variable> m_keyValu ...Show All

  • Visual Studio Express Editions multiline textbox

    Hi everyone, Im quite new to visual basic and stuck on a part of a windows application. i have a multiline textbox where different numbers are to be entered on each line. I need to insert each of these numbers into a different formula. I have all the form, code and formulas done for everything else. i just have no idea of the code to extract the information in each line to a integer or array, whatever the case may be, so i can use it in the formulas. would greatly appreciate if someone can help me. Cheers Probably the easiest way to do it would be to use the following Dim MyLines As String () = TextBox1.Lines Di ...Show All

  • Visual Studio Express Editions Problem using Add New datasource Wizard

    I'm trying to learn C# using the Visual Studio Express C# edition. I'm trying to add a new datasource and get the following dialog. Any ideas on what to do http://65.98.60.178/~austin1/vsexpr_sqlserver.jpg Hi, I think the below link will help you... http://msdn.microsoft.com/vstudio/express/visualCSharp/learning/ If you feel that this doesnt solve your problem, you can always click on Unmark as Answer button on the reply and re-open your post again. Thank you, Bhanu. ...Show All

©2008 Software Development Network