Haroonm's Q&A profile
Architecture Multiscreen/player synchronization
Hi, I need input and suggestion on how to design the project, digital signage. Here's the main feature requirements of the project. For example, there will be 5 computers in a room. Each computer has each screen. I need those computers run the same multimedia file and to be able to synchronize them, meaning, if computer 1 is running playlistA, the rest of the computers should be playing the same thing at the same time. I thought of a solution where each computer will have the exact same playlist as each other, then we should have some kind of the mechanism of checking that each computer is running properly. Another solution is to make 1 of them as a central computer and this one will "broadcast" to the others. This way we know th ...Show All
SQL Server Help with a special stored procedure
Hi I have a table there have a primary key, this value have i also in another table as a forreignkey, so good so far. Here it is If the number in may primarykey in table 1 , dosn't exits in table 2 then delete records in table 1 I have made this in a ASP page with a view there list all records where the forreignkey in table 2 are NULL and then delte all records in table one Can i made this as a stored procedure regards alvin You really want a trigger on table 1 to check table 2 before insert. Research INSTEAD OF Insert Triggers. What this will do is instead of inserting a new record into table 1, it will check table 2 for a match. If there is no match, no record is inserted into table 1. It's b ...Show All
SQL Server Remove old SQL 2005 Backup files
I am trying to configure a maintenance plan in SQL 2005 to do a full backup every day and to do log file backups every hour. What I want to do is to keep 3 days worth of full backups and 24 hours of log backups and remove all the backups older that this from the server so that I do not use all of my disk space. I will then backup these files to tape so that I have a good backup history. In SQL 2000 there was a simple option to remove backup files older than a given time frame. Is there an option to do this in 2005 If not can you suggest a way that I can do this. Thanks Andy, I gone throgh u r link but in my SQL Server 2005 editition under 'Maintanance Clean Up Task ' there is no 'Include Firs ...Show All
Visual Basic Filter chart used checkbox
Hi all nice to see you again i`m so confused with chart i have a problem filter chart used checkbox i want to show all result in one chart its mean i have seven field (7 legend) and i want to show it into mschart1 by selecting checkbox that i need to show so i can choose it i has been write some code but its only show one result whereas i has been click all checkbox and necessarily all result its show i put 2 codes here 1st code is my code (FROM ME) 2nd code from Larry Serflaten (LFS) please help whats wrong with the code and what code must i write into my program 1 or 2 both of the code is not show the result :( thanks all NOTE : I`m Sorry my speaking english was very bad :( THE 1st code ========================== BEGIN ========== ...Show All
SQL Server How to read sql tasks and so on from a package programmatically??
Hi everyone, Once I've accesed to package by means of LoadFromSqlServer method how to read its Sql Tasks, for example I'm trying with the Executables property but unsuccessfully results: pkg.Executables.Item(0) Thanks in advance, No, not all. I think that I wrote my post a little bit confused. I meant, how to see/read the properties for a Sql Task, as SqlStatement, Sqlsourcetype... I receive this: {Microsoft.SqlServer.Dts.Runtime.Sequence} Microsoft.SqlServer.Dts.Runtime.Sequence: {Microsoft.SqlServer.Dts.Runtime.Sequence} Thanks again, ...Show All
Visual Studio XSLT Debugging
I'm having problems debugging XSLT in Visual Studio 2005. When I click on the "Debug XSLT" button, I get this error: TypeLoadException was unhandled. Method 'Execute' in type 'Microsoft.Xsl.XslPlugin' from assembly 'Microsoft.XslDebugProxy, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' does not have an implementation. It does this no matter what kind of xsl file I have specified for the transform, and no matter what xml files I have specified as the input and output. Also, I opened up my XSL and XML files in another editor and the transform worked just fine. Has anyone else had this problem Could this be a problem with having the latest .NET Framework 3.0 installed Or Visual Studio 2005 SP1 Here is my information: Mic ...Show All
SQL Server How to form a list ?
Hi, I have a table like this: CatalogID CatalogName RootID -------------------------------------------------- 1 Microsoft 0 2 Macromedia 0 3 Office 1 4 ...Show All
Smart Device Development Culture prevents listview columns autosizing?
Happy new year all, I have discovered a problem in the Compact Framework that can only be reproduced by running the same code against an English and German emulator/device. I am setting ColumnHeader.Width to -1 and -2, to find the best fit for each column. Setting the width to -1/-2 does autosize the column on my English devices/emulator, but fails completely when run against a German emulator (the width is only set to 0). Example of the code: foreach (ColumnHeader ch in listView.Columns) { // get width by column header text ch.Width = -2; int w = ch.Width; // now get longest item width ch.Width = -1; // is this less than the column header w ...Show All
Visual Basic Passing values between forms
Hello! I have been trying to figure out the best way to do this, read so much about tonite, head is spining, must sleep. But before I go, hoping someone can help me out. I have a text box that holds a value in FormA. I would like to pass that value from that textbox to a diffrent textbox on FormB, c and other forms; in the same app. I saw example where you can make the form public, but can't I create the texbox as a public varaible Or would I try a diffrent way. Just not sure how to write this out in vb.net. Thanks for the help! Rudy There are two common solutions to this issue: 1. Expose the TextBox's value via a public property (the value, not the TextBox): Public Property Custom ...Show All
.NET Development Embedding DLL in Web Page and trying to Access Client machine from web Page
I have an DLL(Windows Control Library) for media player developed in C#.net.I embedded this DLL in my web page.I have to create and save an Audio file in the Client machine from my web page. Using web service later i upload Audio files from my client machine. This is what i am trying to do !!! But Problems arises in Scenarios like : Scenario 1 : In development System Control appears in Web page but when i try to access from other Client System i am not able to view Control in Web page.I have used I/O functions in my DLL.Since I/O operations in Client machine are Security issues. Operations which i Performed to Execute but Output is not obtained as mentioned above : - I Created Strong Name for DLL and imp ...Show All
Visual Basic my.settings string,integer,color,bool work, system.data.datatable does not?
I have a my.setting named DGVDataTable with system.data.datatable as the type. When the application is started it is nothing. As long as I do not close the app it works fine & I have verified values with watches. This is true for debug and for a published app. I have other my.settings with types of integer, color, bool, string, and they work just fine. I am fairly new at VB2005, so the answer may be something simple that I am just missing. Here is the code to initialize the Table which is called toward the end of form1.load. It throws an exception without the if because it is nothing, which I expect for the first run, however not for subsequent runs. If My .Settings.DGVSettingsTable Is Nothing Then My .Settings.D ...Show All
Visual Basic resizing application
im trying to resize my application when the screen is rotated. when the screen is flipped to portrait mode i do: datStart = Now Me .MaximumSize = New Point(768, 1024) Me .Size = New Point(768, 1024) datEnd = Now MsgBox(datEnd.Subtract(datStart).TotalMilliseconds.ToString() & "milliseconds(Subtract)" ) when its flipped back to landscape i do: Me .MaximumSize = New Size(768, 700) Me .Size = New Size(768, 700) going portrait takes 8 seconds vs nearly instant with going landscape. i inserted the timer until i found what was taking the most time... setting Me .MaximumSize = New Point(768, 1024) Me .Size = New Point(768, 1024) took over 5 seconds... but se ...Show All
SQL Server Question Regarding Scenario On DataMining
Hi to all I want to know how achieve the following scenario, I will highly encourage if anyone knows the solution please mention it through steps. The scenario is I have a table named “CreditCardTable ” with following schema , the table is pretty much what one expect from a simple credit card application that will present form to user who fills the application of credit card and data going to be filled into the table. Later an analyst will review the data and will be accepting or rejecting the Credit Card along with some other fields as seen in the schema. -----Schema -------- CustomerName Bigint Age int DOB DateTime LimitAssigned Bigint Analystname varchar Salary varchar Gender bit Qualification varchar Country va ...Show All
Visual Basic passing variables between forms/classes
I'm a VB2005 beginner (25yrs in COBOL, but a VB beginner) Trying to learn VB to keep myself employed, and I'm really struggling with some of the concepts. I've tried several books, but I must be searching using incorrect terminology - one of my many struggles. I have FormOne with a listbox and want to call FormTwo and pass it the lstSelectedIndex of an item from FormOne. When I get to FormTwo, I need to use the SelectedIndex to access items in an array. Once I get the selected index value into FormTwo, I'll be good to go. How do I pass it I'm trying to call FormTwo using Private Sub btnSelect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSelect.Click selectedItem = lstItems.SelectedIn ...Show All
Visual Studio Team System how to stress test ajax application?
I am writing an AJAX application and would like to run performance test on the server. How do I record the trafic to the server and play it back as if it was real a-sync test as it is in AJAX What tool should I use here Eran You could use the web test and load test functionality in VSTS. The one problem is that the web test recorder will not record the ajax requests. However, you can use fiddler, www.fiddlertool.com , to record all requests and generate a web test. Then you can take the web test and add it to a load test to stress the server. ...Show All
