iconjunky's Q&A profile
Visual Basic application has focus or active or being used
VB 2005 and windows form application I am having difficulty putting my question into words but.. Is there a way to determine whether my win form application has focus or it is active or being used Try this: Public Declare Function GetForegroundWindow Lib "user32" () As IntPtr Private Sub Timer1_Tick( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Me .Text = IsApplicationActive() End Sub Public Function IsApplicationActive() As Boolean Dim intFormCounter As Integer Dim ptrActiveForm As IntPtr = GetForegroundWindow() With Application.OpenForms For intFormCounter = 0 ...Show All
SQL Server Job scheduling for Packages in SQL Server 2005
---------------------- MS Win XP Pro 2002 SP2 MS SQL Server 2005 MS Visual Studio 2005 ---------------------- Can anyone help me (even by pointing me to a documentation) in order to schedule Packages (from file system source) in SQL Server 2005. I've configured providers logging, but still the error file doesn't give me any explanation why the error happens: "#Fields: event,computer,operator,source,sourceid,executionid,starttime,endtime,datacode,databytes,message OnPreValidate,PC1234,NT AUTHORITY\SYSTEM,D_AGR,{8A4FA774-F5F0-40DE-AB16-A93F27950E09},{8A918844-8E43-403D-A606-C8CB4B7D8238},31/08/2006 16:42:55,31/08/2006 16:42:55,0,0x,(null)" I've also done the same on the Step properties under 'Logging' In Manageme ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Smooth movement
I did a "game" where a ball bounce around the screen. It's running at 60 fps but it isn't a smooth movement. It's an issue from XNA Framework Beta I am working with SpriteBatch class... Are you using a mult monitor setup I found the same thing. Switching to full screen v-synch didn't help. I was however, running my nvidia 5300 with two monitors. After disabling the 2nd monitor it's now smooth. Maybe my results are unique, but I'd hazzard a guess that XNA beta doesn't play well with multi monitors. ...Show All
SQL Server Reporting Services Web Services schedule reports
I'm grasping for straws here, so any help would be appreciated. So we are migrating from Crystal to MS Reporting Services. Over on the Crystal world we had a custom report page that would gather rpt parameters and schedule the rpt to run immediately. I was told by my manager (who happened to be the one that wrote the code for Crystal...) that the reason for that was because Crystal didn't handle too many requests at once and would eventually lock up and all users would be out of luck. So, if there are 20 users generating rpts, instead of all of them having to wait for all reports to be done to see theirs, they would queue up and get their report on their turn. Also, if I'm the 20th user to run a rep ...Show All
.NET Development Can u demystify the concept of serialization for me pls
Hi. I read Microsoft doc about serialization, but since I never used it. I didn t understand it well. What do we need it for in real business. Is it mostly to save data in file formats or what. Thanks for demystifying the concept for me. serialize is a method in the XmlSerializer class, which actually performs serialization of an object to a stream. A stream is like, how can I put it...some form of backing storage to write data to. This could be: MemoryStream (data written to/read from in memory) streamwriter (data written to another stream or to a file) networkstream (data which can be sent/recieve from when connected to another application, such as a server/client application) So if you wanted t ...Show All
Windows Live Developer Forums Custom Domains SDK help
Hello I wanted to know what I need to do to get the CD SDK working! as you can see here http://xpmail.net/wsdlclient7.php I am getting the data I need most of the time. but I can't get stuff like "GetLoginDataTemplate" if I use the url as is in "https://domains.live.com/service/managedomain.asmx WSDL" with just http:// I get an error saying it needs https:// then it says it not there! can any one help with this since the example in the SMK download is lacking the most important parts! I mean it shows how to call functions that don't exist unless you have HTTP/Request.php I don't see what good SampleSOAPphp.txt is with out the functions! any way thanks for any help! Aquilo, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What happens when your subscription ends?
Does the XNA game launcher stop working completely after your subscription to the Creators' Club ends This is a thing that has been bothering me for a while. Basically, if I pay for a year of subscription, write a bunch of games, but then after a year notice that I won't have enough time to write games for a while, will I still need to pay for a new subscription just to play my games on my XBox 360, or will just the deployment of new games be disabled For now, you must have an active subscription to the XNA Creators Club in order to deploy, debug or play your games created with XNA Game Studio Express. We are working on solutions to enable sharing and distribution outside of the Club. As details become av ...Show All
SQL Server SSIS XML Configuration updating at runtime
How can I update a variable in the XML configuration file. Can I use the configuration object for it or do I need to use XML objects and do it just like any other XML file Another problem I have is, I know I can reference the same XML config file from 2 different packages. But every time I do that through the wizard, only the last package configurations are placed in the XML file. Any help is appreciated! Hi Jamie, Right on the spot. That is exactly why I need this. I will pull records delta from a vendor and I need to persist the date somewhere. I've seen code with LoadPckage and app.LoadFromSQL etc. It seems not logical to load the same package while still in the package script ta ...Show All
.NET Development Unable to emit assembly
Hi, I have an excel program that was created in VS2005/VSTO. I am notsure if this part of the issue. The program runs great but when I added in a class from a different developer, who designed it. I am getting this error: Error 4 Unable to emit assembly: Referenced assembly 'LoginForm05' does not have a strong name He did create a strong key added to the program, checked it back into source safe, then I added to my program….. I am not sure if I need to create a key too for his program Or if there is something else he needs to do Or is this where I need him to sign his project before I added it my project I do have strong key for my program. I was told that has caused him to need one fo ...Show All
Software Development for Windows Vista Distributed Transaction is faster than ADO transaction?
We have a load testing for distributed and ADO transaction with SQL 2005 and Oracle 9i, the test results are quite interesting. The distributed transaction is faster, both for SQL and Oracle. I can not understand. :( We have 2 simple pages, and the load testing simulates 100 users click the button at the same time, the database operation will batch update 10 records with DataAdapter. Can someone explain it for me Hi Jack, Can I get your email I want to send you the complete code. My address is xiaofeng_at_ncsi_dot_com_dot_cn . Please replace 'at' to '@' , 'dot' to '.', and remove all '_'. :) Thanks. ...Show All
Windows Forms refresh image problem
in my button click i have some codes like this for uploading photo to my page ; file is uploading correctly; but i want that after file uploaded succesfully!! label message it must put this photo to my image1 control; Boolean fileOK = false ; String path = Server.MapPath( "~/UploadedImages/" ); if (FileUpload1.HasFile) { String fileExtension = System.IO. Path .GetExtension(FileUpload1.FileName).ToLower(); String [] allowedExtensions = { ".gif" , ".png" , ".jpeg" , ".jpg" }; for ( int i = 0; i < allowedExtensions.Length; i++) { if (fileExtension == allowedExtensions ) { fileOK = true ; } } } if (fileOK) { ...Show All
Visual Studio Express Editions Windows Installer 3.1 can't be installed
Anyone know why it gives me this error, and how i can solve it Im trying to install visual basic express edition, but come to think of it whenever i try to install anyting using the windows installer it dosen't work Im running Windows XP proffesional (service pack 2 if you need that) And im not really sure if its up to date. Im pretty sure it is though ...Show All
Windows Live Developer Forums Drawing an area using a set of zip codes
Hi All, Does anybody know how to draw an area, using polygons, using a set of zip codes Or reversely, a user can click on a map and draw a circle where you get the zip codes from the selected circle area.. Would be very cool when this is possible! Thanks, Henk Ok clearly my memory for US cities is not good. Hopefully my coding memory is better. You have permission to call Sydney the captial of Australia and say "Is Brisbane near Melbourne ". John. ...Show All
Visual C# Using Calendar.SelectedDate to update Gridview
Hi, I'm fairly new to C# and Visual Studio, so any help is much appreciated. I am attempting to create a webpage with two webzones, one containing a Calendar object and the other containing a Gridview which is (currently) linked to an Access database. I have a "Created" date field in the Gridview and I would like to filter the Gridview to show only rows in which the "Created" date equals the Calendar.SelectedDate. I've added the SQLDataSource to the page and configured the Data Source in many different ways with no success. The SELECT statement that I thought should have worked is: SELECT Created, Event, Personnel_Contacted, Remedy_Num, Created_By FROM tblOpsLog WHERE Created = wpCalendar.SelectedDate (th ...Show All
SQL Server Is lineage more trouble than it's worth?
Very often during dev. I add processes that don't change the metadata of a data item (for example a new sort) yet the linieage id is changed. This causes lots of headaches down the pipe. If metadata of a data item is not changed in the pipe, why is the lineage id changed If lineage is not smart enough to figure out when some metadata was actually changed, should it be made smart enough Or optional Ken kenambrose wrote: Sort with "remove duplicates" unchecked. Wouldn't that be syncronous One row in, and guaranteed one row out No. SORT is always aynchronous. it has to be. It needs to know about all the data in order to sort it. Synchronous components work on a buffer at a ...Show All
