sk80's Q&A profile
.NET Development Send directly to MAC address over Ethernet
I Need to connect to some hardware device (a lab instrument), which is connected via Ethernet to the PC and which has an unknown IP address or no IP address at all. This situation may occur, if the system is started up the first time and no DHCP server is on LAN. I thought it would be a good idea to implement some communication with ARP protocol, but I couldn’t find any .NET class helping me. I found a system DLL (iphlpapi.dll) which gets the MAC address from any client, if I know the IP address , but no method to send to a MAC address. My Questions: 1) Is there a way to communicate with ARP in .NET 2) Is there a plan B, which solves my pro ...Show All
.NET Development Jump while reading XML file
hi.. im reading a XML file using XMLTextReader, after reading some contents i want to jump back to first statement og the XML file...Is it possible .if yes plz help me out.. thanks i have the same trouble like you, because the XmlTextReader is forward only and readonly. may be somebody could he me ...Show All
Visual Basic Load Gif on Key Press up
How do I load a gif I want to load from specific gif on my computer... I have an empty picture box and I want a transperant Gif to load (and play) when i press key up. I also want to know how to move a picture with key up, my background picture down 1 pixel. when i press and hold key up. Easy stuff but i don't have the knowledge Alright this is the code I wrote...it works fine all alone but when its with my RPG code i get 2 errors TextBox1.KeyDown and Charcter.Image Private Sub TextBox1_KeyDown( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown Select C ...Show All
Software Development for Windows Vista Embedding Explorer window inside an application
The Shell in Vista build 5270 is great: it lets the user sort and search/filter by metadata like keywords, rating, creation date, and an application can add custom metadata for new file types. It's so perfect for my app, I want to use the existing Explorer UI and not have to develop my own! Is there a way to use a Vista Explorer window as a control or otherwise use it as a child window inside my application Is it possible to change the look of it ("skin" it) in any way Opening up an old topic again. I have implemented the CLSID_ExplorerBrowser and have successfully made it look just ...Show All
SQL Server Execute a SSIS master package through an ASP.NET web app
I am trying to execute a SSIS package via a web application built in c#. I found a sample to read the output of a data flow task, but I'm stuck. If I build the command line syntax for the package, create a DtsConnection object and set the connection string to the syntax, what else do I need to do Thanks. Clay Well, the critical step is to create a DtsCommand whose CommandText = the name of the DataReader Destination in the package, then to execute that command to retrieve the DataReader [contents]. Does your BOL version have our topic, "Loading Data Flow Results into a Client Application " ...Show All
System Center where i can find it to download?
i'm looking for SCCP 2006..i'm msdn subscriber..but i can't find it for download... Any help .. hi, i am still not getting what r u talking about plz help me in detail from where i can find Benefit Access Number.. thanks in advance plz help me in full detail . thank u again ...Show All
Visual Studio Team System Problems in mapping fields into project
I created new fields for my own work items, but I am having problems when I try to map these fielsd into project. When I create a new team project, based in my template process, I get an error. Please, anyone knows how I can change my mapping file in a good way Hello Hugo, Send us the mapping file and the error you are seeing when creating the team project. Did you use the tfsfieldmapping tool to map the fields to MS Project Thanks! ...Show All
SQL Server ReportingService2005.CreateReport() warning...
I am using Reporting Services 2005 on SQL Express with Advanced Services... I am dipping into the SOAP API and trying to add DataSources and Reports dynamically, as is how I would like to be able to deploy them... My problem is this: I have a shared datasource and a report that were deployed to the server via the 'Deploy' method in VSTS...I can access that report just fine, and it obviously uses the shared datasource... Next, I copy the .rdl file of the report I already deployed and give it another name ("NewReport.rdl"). What I want to do is add this report to the server (it's an exact copy of the functioning report wi ...Show All
Smart Device Development Native Exception Error - 0xc0000005
I am running the following code - which takes the data from an XML file and updates a SQL Mobile table - it seems to consistenly throw a native exception error (ExceptionCode: 0xc0000005) Here is the code: #region DataRefreshFromXML public void RefreshDataFromXML() { if ( File .Exists(appPath + @"\data\HandheldInventory.xml" )) try { DataSet ds = new DataSet (); ds.ReadXml(appPath + @"\data\HandheldInventory.xml" ); if (ds.Tables.Count > 0) { using ( SqlCeConnection cn = GetConnection()) { SqlCeDataAdapter da; da = new SqlCeDataAdapter ( "S ...Show All
Visual Studio 2008 (Pre-release) DLINQ Queries and observations
I have the following queries/Observations about DLINQ. 1. I could not find any direct way of handling many to many relations. Suppose if User and Role are related by a join table UserRole then I should be able to have a collection of Roles in User and vice versa. Which i think is not possible in DLINQ. (Please correct me if I am wrong) 2. State management is handle outside entities. In scenareos where a client grabs a entity from a WS , makes some changes and post it back to the ws for updation, how is the DLINQ framework handle optimistic locking Why can't state be maintained in the entity itself maybe by a base class, we already c ...Show All
SQL Server oledb source issues with parameters
Hi, I been having issues trying to use the OLE DB Source in the DataFlowTask. If I use the SQL Command to build a SQL Statement, i.e. "select * from tablea a join tableb b on a.column1 = b.column1 where column2 = ", I can't get the query to parse and it won't allow me to set a value to the parameter. It seems to be a bug as the only way I can see to get around it is to use a variable to place my sql statement into and use the "SQLCommand with Variable" option in the OLEDB Source. This seems pretty clunky to me as I should be able to just put my select statement in the SQL Command window, right Is this going to b ...Show All
SQL Server Replicate data only from SQL Express to SQLserver2005
We have merge replication, Publisher work on SQLserver2005 standard edition, Subscriber work on SQL Express. My problem is following. Considering that the Subscriber is on SQL Express we can use only Merge replication. Is it possible to develop merge replication to replicate data only from Subscriber to Publisher. Are you trying to prevent changes at the publisher, or prevent changes from being replicated from publisher to subscriber Regardless, there's a command-line parameter for the merge agent, -ExchangeType. You can set it to 1 to force subscriber to only upload changes, and not process any changes at ...Show All
Visual Studio About WSS and Versions of Documents.
With Vs 2005 team system can I control the versions of the documents. Can I know who did what on what day on any document Can I see the diffferent versions of the documents with WSS . Hi Luis, There are several forums available for Team System questions. You can move your question to: http://forums.microsoft.com/msdn/ShowForum.aspx ForumID=20 ...Show All
Windows Forms DataGridView Columns Changes Lost
I am having a problem with changes that I make to the DataGridView columns using the Designer being lost. The DataGridView is bound to a binding source object and is not changed and no other changes are made to the data grid. The designer automatically regenerates the code sometime during a recompile and does not keep the changes that were previously made. I have not been able to pinpoint the exact sequence of events to consistently reproduce the problem. This problem is preventing me from relying on the Designer to setup my columns. Has anyone experienced this behavior Thanks in advance Jorge ...Show All
Windows Forms How do I get the dimensions of the TRUE Drawable area of a form?
I am writing a DirectX app that uses windows form menus and controls. I want to get the TRUE drawable area of a form excluding menus and things like panels and other controls like that that cannot be drawn on.. I know about the Form.ClientSize property but that does not take into account any menus/status bars within the form. Only the size of the window minus the borders. I thought it wasn't possible for the Form to directly know its drawable area without manually calculating it until I started using the MouseEnter and MouseLeave events. These events trigger when the mouse leave the TRUE drawable area (eg if my mouse goes over them men ...Show All
