sohaibi's Q&A profile
.NET Development Specify Initial Schema in Connection String for SQL 2005
Is there any way to specify the Schema to be used for specific ADO.NET 2.0 connection It defaults to dbo, which is how the previous release would of had to support it. But if procedures/tables are seperated into different schemas within SQL 2005, then all lookups for the different tools (Like SQLDataSource configuration) only reference the dbo schema to fill information and would not see a procedure in the specific schema I want to reference. Thanks, Mike It appears the answer is no, you cannot specify the initial schema for use in SQL 2005. It is indeed frustrating that SqlDataSource configurati ...Show All
Visual Basic Is at website...
I was wondering how to Check if my webbrowser control is at a cirtain page... My problem is that that page includes a "sessionID" which means a simple IF page.url = needed_page then wont work... Does anyone know the answer do you mean that your url includes sessionID in the queryString why don't you check the beginning of the url : If page.url.BeginsWith(needed_page) Then ...Show All
Visual C# How do I use XSD in 2005
I am a beginner with C# and I am trying to use datasets. I have been tiring to find some good books on how to use xsd or dataset class in VS2005 and haven’t' found much like this. Does anyone know of good examples or books I can buy that has this information. I understand Datasets (limited) but xsd just are confusing. Any help appreciated A dataset is a collection of tables. An XSD is an XML schema. Datasets can be populated from XML, I believe, but I'm not entirely sure what it is you're trying to do with the two An XSD will let you validate XML data, that is all. ...Show All
Visual Studio Tools for Office Deploying Outlook Add-In (after following tutorial Part 2) - fixed!
First off, it's worth saying that VSTO 2005 is excellent both as a product and as supported by all of the great articles and samples. Office has become a very important Hosting environment for enterprise applications and VSTO (and the community) is exactly what we need. I just finally got my Outlook Add-In to work with one-click deployment, but I needed to customize the SetSecurity project referenced in the Part 2 Walk-thru. I added a "trustTargetDir" parameter and when "trustTargetDir" is true, then the AddSecurityPolicy method uses "FullTrust" o the targetDir. In my case, I'm using Redemption.dll beca ...Show All
Software Development for Windows Vista Runtime Workflow Design
Scenario: An application allows multiple end users to define their workflow, then run the application based on that workflow. Real-world example: A defect tracking system wants to allow some clients to route new bugs to a manager and others to route directly to a developer. The nearest solutions I can think of are: 1) embed the designer in the application, 2) make the workflow be the most complex case and build in lots of if/elses, and expose those choices in the application. Both have their drawbacks. Any suggestions John Chris, Yes, you can do this. Look at Lab10 example. This hosts the designer and serializes ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Tutorials build but will not run
I figured I would give DirectX programming a try since I've been finding myself frustrated with the old school ways of OpenGL. I downloaded the October SDK and installed it, I am using Visual Studio 2003 Professional on a Windows XP Professional operating system. This is running inside a VMWare machine. I can run the example executables just fine, albeit in software mode, but it does work. Now for some reason when I load the tutorial 01 solution (createdevice) and attempt to run it I get the message 'Could not initialize Direct3D...'. I changed the exception handler in InitializeGraphics() function to output th ...Show All
Smart Device Development "\Windows\wceload.exe", "/noaskdest/noui ?
Hi, I am installing cab file of my application using wceload.exe. While my application already exist it gives message "My application is already installed.Reinstall I should not get this message and the application should silently installed.I tried using Rapi class of Opennetcf.Desktop.Communication as shown below. Dim m_rapi As New RAPI m_rapi.CreateProcess("\Windows\wceload.exe", "/noaskdest/noui \Windows\MyApp_PPC.ARMV4.CAB") But still i am getting the message .So how can i prevent it Regards, Senthil. That is no really a surprise because you're trying to install that from none-existing fo ...Show All
Visual Studio Team System why the daily build failed?
in the team explorer, I rightclick the teambuild to new create a team build type as "dailybuild", then I rightclick the new build type "dailybuild", then click "produce the team project", a dialog appeared, I click the "produce" button, the build programme is running, After the running is ended, I can see some build results in the build drop location. this is a success. but I add a new windows schduled task , select the "E:\Program Files\Microsoft Visual Studio 8\Common7\IDE\TFSBuild.exe" as the programme to run in the schduled time. but after ...Show All
Windows Forms Host Controls in Windows Forms DataGridView Cells
Hi all, I'm trying to create a new cell within the new DataGridView (.NET 2 Beta). For example, I'm trying to create a cell which contain a RichTextBox, I succeed with the appearance of the rich text box controll but there is a lot of irregular behavior. Does someone did it already(not particular with RichTextBox) and can send an example. Unfortunately Microsoft example in the link below doesn't accessible. http://whidbey.msdn.microsoft.com/library/default.asp url=/library/en-us/dv_fxmclictl/html/e79a9d4e-64ec-41f5-93ec-f5492633cbb2.asp 10X in advance, Nir Oren The Rows collection has two Add method overloads that let you populate t ...Show All
Visual Basic Updating a dataset help...
Allright, well it seems simple enough, but I'm kind of stuck. First of all, I'm using VS 2005. I've run into trouble while trying to use the save on the navigator tool bar that automaticaly appears when you drop a table onto a form. After I delete a row from my table, I want to save the data; thus, I click the save button on the navigator toolbar. Here is the code that is automatically generated when the toolbar is created to handle the save button click event: Private Sub TblTeamInfoBindingNavigatorSaveItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TblTeamInfoBindingNavigatorSaveItem.Click ...Show All
Visual Studio Team System TFS Source Control - Get Latest not working properly - Files are not marked ReadOnly
A couple problems with TFS Source Control. 1. Sometimes when getting latest, it will tell me that I have lots of conflicts because there are writable versions of a file in my working folder. I go and look and the file attributes are marked with an "A" instead of "R". This happens a lot and some of the files I never even worked on. Is there some way I can re-get everything from source control to overwrite all my files with the "R" readonly flag flipped. This also causes a problem when I try to edit one of these files that doesn't have the "R", it doesn't ask me to check it out. It seems quite random ...Show All
Visual C++ Sometimes I need to do a clean/build on VS2005. Why?
I've noticed when working on my VS2005 C++ application, that sometimes the debugger will report memory leaks or heap problems. I've learned that if I do a project clean and rebuild, that these problems go away. There are also cases where my app will get ASSERT failures that I resolve by doing a clean and rebuild. I have not been able to firgure out what I'm doing that is causing the incremental builds to produce these errors. Has anyone else run into this Hi, I found the solution for my problem I just removed /NOENTRY from the linker options, it works! thanks ...Show All
SQL Server Stored Procedure runs but no records inserted
I have just installed a fresh copy of SQL Server 2005 on a new server. I transferred over one of my stored procs which has been working beautifully on another SQL Server 2005 server. This time though when it's run, It runs but doesn't insert anything into the destination table. I recreated the tables that were on another server on this server by using the SQL query that you produce when you do a Right-click | Script Table As | Create To | New Query Editor Window and simply copied and pasted the table creation sql script on my new server, changed the database name and it created it fine. What else could it be I ...Show All
Visual Studio Express Editions VB.Net & WMI & BCD
All, I am trying to use enumerateobjects() in the BCD WMI programming and are having some problems. I have everything working except for this one function. If anyone has any experience with this please help. Here is the MSDN information on it. http://msdn.microsoft.com/library/en-us/BCD/bcd/enumerateobjects_bcdstore.asp My biggest problem is that I am getting a "Type Mismatch" error any time I pass a UInt32 into EnumerateObjects. That is what the value type is suppose to be but for some reason it is not working. I have tried to use Convert.ToUIn32(Cint(1)) and Convert.ToUInt32(CInt("1")) and even just use 1 a ...Show All
Visual C++ Error C2440: '=' : cannot convert from 'const char *'
Cgraus was kind enough to send me the following piece of code: void ShellExecuteAndWait( const char * path, const char * params, const char * message) { // Run the .NET installer and wait until it's done SHELLEXECUTEINFO ShExecInfo = {0}; ShExecInfo.cbSize = sizeof (SHELLEXECUTEINFO); ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS; ShExecInfo.hwnd = NULL; ShExecInfo.lpVerb = NULL; ShExecInfo.lpFile = path ; ShExecInfo.lpParameters = params; ShExecInfo.lpDirectory = NULL; ShExecInfo.nShow = SW_SHOW; ShExecInfo.hInstApp = NULL; ShellExecuteEx(&ShExecInfo); WaitForSingleObject(ShExecInfo.hProcess,INFINITE); } Co ...Show All
