usamaalam's Q&A profile
Visual Basic Uncompress zip files using a dll
Hi, i want to ask what dll can i use for a simple descompression of zip files, and how to use it...... is simple.. sometimes i have to work with files that comes compressed, and i want my program to automatically uncompress them Thanks ;) This is better explained, I am using what they say in the first link I import both Imports System.IO Imports System.IO.Compression But i dont really understand how to use this: CompressFile(PATH, GZIPPATH) DecompressFile(GZIPPATH, UNGZIPPATH) Actually, i coded: DecompressFile("Zippedfile", "Unzippedfile") And i get the error: 'decompressfile' is not declared ...Show All
Visual Studio Express Editions 3-pane explorer: docking existing split container in new split container
I would like to create a 3-pane explorer-type form. The upper part of the form will be the standard split container with a TreeView on the left and ListView on the right. The lower part of the form will contain additional information about the item selected in the upper part. The best way to do this seems to be to have a split container with a horizontal divider, and dock another split container (with the default vertical divider) in the upper half. I know I can create this from scratch in by designer mode, but the Explorer Form template gives me almost all I need, and I would like to start from that. The only thing I need to change is to add a split container with a horizontal divider and then dock the Explorer Form's existing split co ...Show All
Visual Studio Team System Webcast
Hi, I am looking for VSTE for Testers webcasts. Can anyone point me to one 10x, Hi, below link has a demo on VSTS tester. http://www.microsoft.com/downloads/details.aspx FamilyId=88F7CB8B-473B-4ED5-BA47-ABBC06D0048E&displaylang=en This link point to on-demand webcasts http://msdn.microsoft.com/vstudio/teamsystem/community/webcasts/default.aspx look for "Development and Testing" Thanks, Anjana [MSFT] Microsoft Developer Support This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
Windows Forms [Vb.net 2003] Monthcalendar Title area
Good morning everyone I'm new in this forum. I have a litlle problem with Monthcalendar Windows form control. How can I know when the user has pressed the mouse button on TitleMonth, because I don't want to show the list of months. Thank you, Chicomaravilha This code is using Windows messages, I've grokked them for quite a while. I think Petzold's Programming Windows is still around, now in its 5th edition (wow). ...Show All
.NET Development Reflection
Hi, What is Reflection What is use and where i can use it Any example pls Thanks Seshu Reflection is a fature of .Net through which you can find information about assemblies. Get types contained in the assembly, Get Meta data embedded in that assembly etc. Reflection is achieved through a huge number classes present in System.Reflection namespace for different purposes. Reflection is also used to refrence and use assembly programmatically at run time. You can load an assembly at run time using Assembly.Load and then we can get Attributes of loaded assembly, access meta data, List all classes in the assembly then methods in each assembly etc. Its a huge huge topic to cover here. It was just a definition of Reflection and yo ...Show All
SQL Server AS Configuration
Hi I try to run the following statement in “Server A” and it works fine then I make a copy of my cube (with backup & restore) in “Server B” and the MDX statement does not work. My statement: With member [Measures].[Acum_ Amount ] as 'sum( ( YTD([Time].[Time].CurrentMember) , [Scenario].[Scenario].&[PLAN]) , [Measures].[ Amount ] )/1000' Select [Measures].[Acum_ Amount ] on 0 , [Time]. [Time].[Year].&[2005E3].&[Q1/ 2005].&[2/ 2005] From [FT_BAB] If I remove the code in red, it works in both servers. But it is not what i want. What is wrong with the server configuration ...Show All
SQL Server Why isn't this trigger working?
The following is my trigger SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date,,> -- Description: <Description,,> -- ============================================= ALTER TRIGGER dbo.InsertPlaceTrigger ON dbo.Place AFTER UPDATE AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; SELECT CONVERT(NVARCHAR(100), EVENTDATA().query('data(//PostTime)')) EventType -- Insert statements for trigger here END GO The following is my sql update command update place set views = 2 where placeid = 2 When i execute the above sql query, i am getting NULL in Ev ...Show All
Smart Device Development Pocket PC languages
Hello, I have I-mate KJam Pocket PC 2005 and O2 windows mobile 2005. i want to change the language of the pocket PC from english to german but it didnt show the option of language . it show the regional settings option i select german ( germany ) from there but i didnt make change in the language.. please tell me how i change the language from english to german . please tell me how i change the language or these phones only support english by default. Thanks -Salman Hi Salman You can't - Pocket PC devices do not support this. The only option is to do a ROM update installing a german OS release. Contact the vendor to get the appropriate OS for your device. Hope this helps Michael ...Show All
Windows Forms Interrupt BeginInvoke
Hello, in the last two hours I tried to understand if it is possible to terminate from the calling thread a method called asynchronously using the BeginInvoke pattern, but I was not able to find any solutions. Can you help me to get an answer to this question Thanks in advance, Marco Practically you are saying that there is no way to retrieve the thread created with the BeginInvoke from the Thread Pool. So probably I have to use the Thread class or the BackgroundWorker in order to have the possibility to stop the thread from the calling form ...Show All
Visual Basic Help! VBScript text file read/write adding garbage on Japanese windows...
I have a very basic VBScript that's launched from our WISE Installer that does a search and replace on a text file on the user's system. The script works fine on US Windows, but for some reason on Japanese Windows, it inserts hex "81 00 45 00 BF 00" before the 3rd byte at the beginning of the first line in the file. I've searched the net and seen issues regarding reading and writing binary, but nothing about text... The main code is thus: Set FileSystemObject = CreateObject("Scripting.FileSystemObject") Set WshShell = CreateObject("WScript.Shell") LocaleLCID = WshShell.RegRead("HKEY_CURRENT_USER\Control Panel\International\Locale") function UpdateVersionNumbers(sFileName, SearchText, ReplaceText) ...Show All
Windows Forms DataGridView Vs ListView
I'm writing a WinForms app which need to display a list of data in columns and rows format. The data are sourced from TCP/IP messages (i.e. not from a SQL database). Could I still use DataGridView for presentation If so, how do I convert data into DataSet, which is used by DataGridView If not, am I forced to use ListView for presentation One thing you try is creating a DataTable and binding it to the DataGridView You can bind a DataTable to the DataGridView like this DataGridView dgv = new DataGridView(); BindingSource bs = new BindingSource(); DataTable dt = GetDataTable() // Gets the DataTable bs.DataSource = dt; dgv.DataSource = bs; The function ...Show All
SQL Server Help with Join Compatibility
I was hoping someone could help me or put me on the right path to re-writing the join portion of this sql query in ANSI form for compatibility level 90. Im just not sure how to handle the three join statements and if they should go at the top in the FROM statement (dont know if that would mess up the rows produced). The query exists inside a stored proc. SELECT S.TYPE, S.LOCATION_TYPE, S.LOCATION_ID, S.PLANNED_ARRIVAL, S.PROJECTED_ARRIVAL, S.ACTUAL_ARRIVAL, S.PLANNED_DEPARTURE, S.PROJECTED_DEPARTURE, S.ACTUAL_DEPARTURE FROM TAB1 S, TAB2 RL, TAB LS WHERE S.LOAD_ID = @V_CURRENTLOADID AND (RL.REGION_ID = @REGION_ID AND RL.ROUTE_DATE = @ROUTE_DATE AND RL.ROUTE_ID = @ROUTE_ID) AND (S.REGION_ID = RL.REGI ...Show All
SQL Server RDA with Identity column.
Hi Everyone: I am new to Mobile programming. I am now working on a mobile project. I encounter an issue when I sync the data: cause I can't modify the schema, so I have to use RDA instead of Merge replication on sql server 2005. However, There is an identiy column on each table I will pull them down to local mobile database. And I will use those identity columns to connect tables. Even worse, the photo's new name will combine the photoID which is an identity column. There would an issue, if i sync data, the photoID would be same on different local mobile databases. And there would be generate same identity value when users sync data. How can I avoid those issues If you have any good ideas, please help me out so that I can meet ...Show All
Windows Forms Combobox Databound Value Showing Up
I have a combobox bound to data as follows Company Name (Display Member) ------- CompanyID (Value Member) Company1 ------------ 1 Company2 ------------ 2 Company3 ------------ 3 The Selected Value is bound to the CompanyID in a data list, so that when I select a record whose CompanyID is say 2, then 'Company2' should show up in the ComboBox; however, '2' shows up in the ComboBox. The wierd thing is, if i manually change the values in the ComboBox, then switch through the data, the names start showing up correctly (rather than the CompanyID values). Any ideas Hi, Use same dataset and create relationships for binding the same dataset to different controls and use current position changed event of binding ...Show All
Visual Studio Team System Static Data Management
Hello, This is probably a stupid question, but I'm starting to play around with Data Generation scripts for unit tests in my database project, and I have a query about what I would call static or system data. For example, the data generation scripts take care of user data, but what about tables of types or the equavalent of enums for instance, a UserType table which contained data such as: UserTypeId | Description ---------------------------------- 1 | Standard User 2 | System administrator 3 | Editor Or similar The IDs would have to stay constant thoughout the system, so either I create a deployment script that creates the data or use the data generation tools. If I use a deployment script, will (1) the data ...Show All
