Software Development Network Logo
  • Visual Studio
  • SQL Server
  • Game Technologies
  • Smart Devicet
  • Visual C#
  • Visual FoxPro
  • Windows Forms
  • IE Development
  • SharePoint Products
  • Visual C++
  • .NET Development
  • Windows Vista
  • Microsoft ISV
  • VS Team System
  • Visual Basic

Software Development Network >> Tarek Ghazali's Q&A profile

Tarek Ghazali

Member List

erikkl2000
Jacx
Michael Herman - Parallelspace
zeroguitar
h3nry
the_chad
Shamila Prabhath
StarsFire
Rain3204
Ananda Ganesh
Pockey
SmartSpy
Werner Clausen
SunilRS
Keith Chapman
Ray Mordy
naffets
Alex G.
Codeme
Tovdb
Only Title

Tarek Ghazali's Q&A profile

  • .NET Development Unable to load Cursor object in VS2005/Vista

    Hello! I'm developing a C# user control application in Visual Studio 2005 on Windows Vista.  I recently added the following lines of code to my project, and now it blows up.   // In the class definition... private Cursor _cursorBox;   // In the class constructor... _cursorBox = new Cursor("box.cur");   When I run the control, I get an error dialog that says the following:   Failed to create UserControl 'ActiveLayoutWorks.LayoutWorksControl' The error message was 'Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.'   I can only assume this has something t ...Show All

  • Visual Studio Package 'Visual Web Developer Trident Designer Package' has failed to load properly.

    I've been using VS 2005 Beta 2  for a few weeks now on a win2K machine, with nothing else installed at all. It's been working fine every day for three weeks, but today I get the following error message whenever I try to open an .aspx file. "Package 'Visual Web Developer Trident Designer Package' has failed to load properly. ( GUID = {30AE7E2B-6CO2-496D-8E43-85F7A90AEFF1} )..." I have not had any previous versions installed, and installed directly from DVD part no. X11-16280 EN SKU 121-00019. In fact I assembled this machine especially to test out VS 2005. However, I have VS 2003 installed on another machine on the same domain which I also log into and use, and I may have logged off/on the VS 2005 Beta 2 machine for the firs ...Show All

  • SQL Server Setup failed - no package <sqlncli.msi>

    I tried to install a sql 2005 desktop engine. This fails with the error: An installaton package for the product Microsoft SQL Server Native Client cannot be found. Try the installation again using a valid copy of the installation package ‘sqlncli.msi’   I used a fresh, new download SQLEXPR.EXE. What shall I do   I had a similar problem installing SQL Server 2005 Standard Edition (not the beta) on Win 2000 SP4. It refused to install properly, leaving me without a SQL Server Management Studio. It didn't like the sqlncli.msi file. My solution was similar to that suggested above. Uninstall SQL Client from Control Panel. Then reinstall it from the CD by double clicking direc ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. The values used in the attempt to create the GraphicsDevice were invalid.

    Is this because my graphic card does not support shader model 2 I didn't even know of this requirement till I saw it on the readme file. Time to change my geforce4 I got it to work. Add this line after the Graphics component is created: graphics.AllowMultiSampling = false ; Then in the WindowsGame_Starting function set graphics.AllowMultiSampling equal to false again. ...Show All

  • SQL Server Filtering on a date comparison in a dimension table

    I'm trying to create a Customer Count measure. Each customer has a open date and a close date in the Customer dimension, so I need to filter the count based on this date range. For each time period the count should include customers where Open Date is <= the current time period and CloseDate >= the current time period. The measure needs to work for any time granularity (years, months, etc.). I think this query is close but it is returning a 0 count for each month: With Member [Measures].[Customer Count] As Count ( Exists ( [Customers].[Customer ID].Members, Filter ( [Customers].[Customer ID].[Customer ID].Members, [Customers].[Customer Open Date].CurrentMember.MemberValue <= ...Show All

  • Smart Device Development Is there a reolution limit on creating a bitmap in CF1.0

    Is there a resolution limit for created Bitmap images in CF1.0. When I import a small (320x240) type image, it works fine. But when I try to bring in a higher resolution photo, the Bitmap creation fails. I can take the same code, resize the embedded image to something smaller, and it works fine. I can also take the same code with the big images, run it on the desktop, and it too works fine. I check the memory on the device and there's plenty. It almost looks like the CF has some limit to the size of how big an image you can bring in. Thanks Thanks Ilya, That was the answer. I forgot about when you expand the jpeg into the image, it takes up ALOT more space. (100k => 900k for one jpg, 990k => 11.9 MB ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Collision

    I've created a few bounding spheres thanks to some of the kind folks on this forum . I've now got to implement some basic physics for ball to ball collision. (for a snooker style idea) any ideas how I would do this Thanks, I haven't read Jeff Lander's article yet, but have just implemented some swept sphere intersections tests (sphere-sphere and sphere-plane). One of the references I used was (also on Gamasutrua): Miguel Gomez, Simple Intersection Tests For Games, 19991018 http://www.gamasutra.com/features/19991018/Gomez_1.htm ...Show All

  • Visual Studio Team System Field type 'DateTime'

    There does not appear to be a field type 'Date', similar to 'DateTime'. Is there a way to create a new field type containing just the Date Thanks, Maggie But what would the field type be "Date" According to the Field Types page ( http://msdn2.microsoft.com/en-us/library/ms194980(VS.80).aspx ), this field type does not exist. Thanks, Maggie ...Show All

  • .NET Development Transfer data form webpage to other application

    Hi All, I want to transfer the data form webpage to any other own application which is running in backend.How i develop this web page. which technology is good for this or any particular protocol i have to use for this. Please suggest if any idea regarding data transfer. Thanks Shiva Vrata Anand Actually I want to implement Push Technology means our own web page transfer the data to the other (VC++) exe which is continous running in backend. Our requirement is when browse web page it send the data to our exe (VC++ server exe) and then our (VC++ server exe) continous make the connection with the client and this server exe send msg to client exe .By this method i want to transfer data from server to client. b ...Show All

  • Windows Forms beginner question

    Hi. I have just began writing code in C# and tried to write my first app as sort of training. It's a game where the computer chooses 4 colors and the player needs to guess them. my problem is in the place the player changes the color of the ball. private void pictureBox4_Click( object sender, EventArgs e) { // http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1083842&SiteId=1 // how to set an image in an imagebox MessageBox .Show( "pictureBox4.Image" ); switch (pictureBox4.Image.ToString()) { case "BallNeutral.png" : pictureBox4.Image = Image .FromFile ( "Blue.png" ); break ; case "Blue.png" : pictureBox4.Image = Image .FromFile ( ...Show All

  • .NET Development calling a stored procedure

    I want to call a stored procedure from my data source with a drop down list box or any control......... Any c# code lying around out there which might point me in the right direction Anything......thanks this would be the correct answer.. http://msdn2.microsoft.com/en-us/library/57hkzhy5(VS.80).aspx ...Show All

  • Windows Forms StartupNextInstance and ClickOnce

    I'm trying to use the StartupNextInstance event to get the values passed to the My.Application.Deployment.ActivationUri.AbsoluteUri of a clickonce application when it is started again. If this were a standard application I could obtain the startup parameters from e.Commandline , but this is empty when the application is launched via clickonce . Is it possible to get the startup URI of the second instance from the StartupNextInstance event If you haven't had a chance yet, take a look at the "hack" in the last post on this site: http://dotnetslackers.com/newsgroups/microsoft_public_dotnet_framework_windowsforms/ng-156718_VB_NET_StartupNextInstance_and_ClickOnce_NET_2_0_.aspx This should be able to get you past this bug ...Show All

  • .NET Development Where to download interop.mapi.dll?

    I need to create a email project and need interop.mapi.dll Where to download it it should come with the outlook application. you are aware you can programmatically send emails using the System.Net.MailMessage classes as well as launching a process of outlook with fields populated (but non attachments as its blocked by Windows but can have a workaround using the Outlook COM Interop approach) ...Show All

  • Visual Basic know a file size

    Im trying to know which is the size of a file in my hard drive but i cannot find the way to do it. Can anyone help me Thanks Dim fi As New IO . FileInfo ( "FullPathAndName" ) Dim FileSize As Long = fi . Length ...Show All

  • .NET Development OleDbDataAdapter, Fill, Update, CommandBuilder and PrimaryKeys

    Hi again, I used to change my database-tables using an OleDbDataAdapter, filling a DataTable with the table-data, change it and call Update again to save the changes. This was easily possible with the help of a CommandBuilder. No I've got the problem that a table has no primarykey and i can't define it because there are no (not even mutliple-column) unique entries.     m_dbAdptrRemedies = new OleDbDataAdapter("","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + m_RemediesFilename);     m_dbAdptrRemedies.SelectCommand.CommandText ="SELECT * FROM tMittelListe";     new OleDbCommandBuilder(m_dbAdptrRemedies); So how do i update my changes in the DataTable to the database ...Show All

©2008 Software Development Network