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

Software Development Network >> Bandile's Q&A profile

Bandile

Member List

Santhosh Pallikara
HarryKye
jyoti.sarkar
Vinod Seshadri
bobnalong99
Mr Dawson
S6oobyh
Brendan C.
Gravy
Ghanshyam Singh
Ice_
DanMeyers
Mike for VB
Gregor Suttie
Donaghy
JEP8979
Tomas Restrepo
Todd Thompson
Wazoo
D. Choquette
Only Title

Bandile's Q&A profile

  • .NET Development uniqueness of GetHashCode

    If I understand the docs correctly the Hashcodes returned by GetHashCode of two given objects have to be the same if they are equal (i.e. .Equals and .Operator== return true). However if the two objects are not equal (i.e. .Equals and .Operator== return false).  the Hashcodes don't necessarily have to be different. In other words: based on GetHashCode you can only find out if two objects are not equal but not if two objects are equal, because if two objects are different it is theoretically still possible that they have the same Hashcode . So it is not suggested to use GetHashCode to uniquely identify an object.   This of course makes sense just because of the simple fact that there are on ...Show All

  • Visual Studio 2008 (Pre-release) How to crop an Image using Stretch="UniformToFill" using center of image

      I have a ListBoxItem which is basically an <Image Source="{Binding }> of specific size and aspect ratio - I need to smartly scale and crop the source images to fit the <Image> element. The Stretch="UniformToFill" does exactly this, however, it seems that the cropping is a top or left aligned, and not a "centered" crop. uhgggg.... Is there a way to get UniformToFill do a centered crop I have assumed not, and gone down the path of doing the cropping myself as such" class ObservableCollectio<BitmapImage> foreach (FileInfo f in _directory.GetFiles("*.jpg")) {     bm = new BitmapImage(new Uri(f.FullName, UriKind.RelativeOrAbsolute));     if (bm.Height > bm.Width)  &nbs ...Show All

  • SQL Server How do I compact SDF with SQL Mobile 3.0 OLEDB Provider with VC++

    The interface ID IID_ISSCECompact has been removed from ssceoledb30.h thus causing a compile error on this statement: hr = m_pIUnknownProv->QueryInterface(IID_ISSCECompact, (void **) &pISSCECompact)); So how does one compact a database using the 3.0 OLEDB Provider and VC++ Thanks JEK May be this is what you are looking for. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=186641&SiteID=1 Thanks, Laxmi ...Show All

  • Visual FoxPro Problem retrieving the dates

    hi. I’m trying to retrieve the dates from the Option 5. When clicking on the Proceed command button to send to the report, nothing on the report designer to be displayed. Wondering whether I get the coding “report form…… preview” right. On this form Sort By: Option 5: Date Posted from <date1> to <date2> Proceed Command Button * date1 and date2 are textbox field. In Init procedure of the Form With thisform .date1.value = date() .date2.value = date() endwith In Click procedure of cmdproceed (command button) Select atnrepair do case case .opps1.value = 5 set order to tnrepaire endc ...Show All

  • Visual Studio Team System VSTE for Database Professional for MSDN Universal subscribers?

    Do I understand properly that people with MSDN Universal (VS Team System for Developers edition) are not entitled to use VSTE for Database Professional as part of their MSDN Licence I am sure a lot of us do both Database work and C# (or VB.Net) development... Isn't this licencing a bit mean PS: I know I could get the 180 days trial of VS Team Suite... but why buying MSDN Universal then Mairead, Yes, it explains quite well the licencing. Having said that, I had an MSDN Universal for 2 years (1 year left) and I had to convert it into to MSDN Visual Studio Team Developer but now that there is a Database Professional edition, can I use this instead of Team Developer Or is the only solution to install a 180 ...Show All

  • .NET Development Cannot update form

    GoodDay I have put a database onto a form designed in vb 2005 express. When I work on the form it sometimes cannot update with new data and leaves a message JIT debugging problem . How can I set the JIT debugging so that I can work on my data and update the form live. Thanks in advance Rob I don't know. This issue was raised in the following link. http://support.microsoft.com:80/default.aspx/kb/922214 and does not seem to resolve the problem. Still the same JIT debugger message. Maybe relook. this problem only occurs when I have a sql data base in my vb program . and to make it intresting , not all my programs which have the sql server in them. Only the more recent ones. Rgds Rob ...Show All

  • SQL Server How do I find the total memroy consumed by a SQL2K5 instance

    My Box: I have an SQL2k5 Dev 64 bit running on a Win2K3 64 bit box with 12 GB of RAM with two dual cores intel xeon processors. My concern: Task manager never shows sqlserver.exe consuming more than 500 MB of memory even when running very big jobs.( for e.g. joins on mutliple tables of 10 Million plus rows with lots of calculations while also using some CLR UDFs) My question: Is the task manager best way to find the total memory consumption by a SQL2K5 instance is there any other way to find the total memory consumption by SQL2K5 Apprciate any answers or leads. Thanks Saptagiri Tangudu PNT Marketing Services Inc. Yes there are other methods/mechanisms and in fact task mgr is horrible overall f ...Show All

  • Visual Studio Team System Access "Start Date" and "Finish Date" via TFS API

    Hi, I'm integrating access to TFS in one of our internal development tools. So far I have successfully connected to the TFS, retrieved a WorkItem etc. I was also able to modify the "Completed Work" field programmatically. How could I access "Start Date" and "Finish Date" Those fields seem not to be part of the Fields collection. I haven't found any samples. Any help would be appreciated. Regards Uwe Hi Uwe, You can find several tutorials on customizing work-item types on MSDN. You might want to start here: http://msdn2.microsoft.com/en-us/library/ms243849(VS.80).aspx Hope that helps, -Matt ...Show All

  • Visual Studio 2008 (Pre-release) ToggleButton.IsChecked Binding issue!

    I'm using the .NET Framework 3.0 RC1, and in my code I have something similar to: < c:Voice x:Key = " myVoice " /> ... < ToggleButton Content = " Ready " Click = " ToggleReadyState " IsChecked = " {Binding Source={StaticResource myVoice}, Mode=OneWay, Path=IsItPossibleToNotReady} " /> I want to bind from the read only "myVoice.IsItPossibleToNotReady" property to the "ToggleButton.IsChecked" property. So, I use the OneWay mode. The binding works well until I push the toggle button!!! Here is a snippet you can use in the XamlPad to illustrate the issue: < StackPanel > < ToggleButton x:Name = " myToggleButton " Cont ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. BUG: Device Created/Reset etc not called back

    The event handlers for Device Created/Reset etc are not called back when they are installed "too late", and that's the case for the SpaceWar sample. It seems that it needs to be done before the GraphicsComponent is added to the GameComponents collection. Can anyone confirm This is the intended behavior. The GraphicsComponent creates the GraphicsDevice when it is first initialised, and that happens when the component is added to GameComponents. If you subscribe to the events later on, the device has already been created, so the events will already have been fired. ...Show All

  • Visual Studio Express Editions VB 2005 to Send Email

    I regularly have to send on a daily basis approximately 20-30 emails which are processed by an email-based SQL server that then returns the results (via email) to my Inbox. And before you ask what kind of messed up approach this is - hey, I didn't make it, I've just got to live with it. Here's the deal - all the email I send has the same TO; SUBJECT; and nearly the same BODY (body is the same except for two items that are changed each time). Also, my evironment uses an Exchange server, so while I've seen some of the code for using SMTP, all of it references authentication - since I'm local to the Exchange server and use Outlook, I wouldn't think I would need to authenticate - but perhaps I'm wrong. What I'm trying to accomplish is tw ...Show All

  • Visual C# Exposing Types Across Assemblies

    I have a core library assembly that defines several enumerations. I also have a user control in a separate assembly; some of its methods require enumerations defined in the core library assembly as parameters. This user control is to be used in a VB6 application. The problem I face is that I do not want to expose the core library to VB6 (I do have access to the source code, but it would be nice if I didn't have to register and reference several assemblies just to get access to enumerations). The only solution to this problem that I have come up with is to redefine those enumerations in the user control's assembly and cast where necessary (these enums are just integers afterall). This seems rather kludgy and will cause version issues is ...Show All

  • Smart Device Development Error InvalidOperationException unhandled - help needed urgently

    hi, I have implemented the code for cameracapturedialog using WM 5.0 and VS 2005 and Windows 2000 professional OS .I m getting error using the ShowDialog() method of the CameraCaptureDialog. Code is like this CameraCaptureDialog cameraCapture = new CameraCaptureDialog(); cameraCapture.Owner = this; cameraCapture.Mode = CameraCaptureMode.Still; cameraCapture.StillQuality = CameraCaptureStillQuality.High; cameraCapture.Resolution = new Size(175, 150); cameraCapture.DefaultFileName = @"test.jpg"; cameraCapture.InitialDirectory = @"\My Documents"; cameraCapture.ShowDialog(); Stack Trace ========================== System.InvalidOperationExceptoion: {"An unknown ...Show All

  • .NET Development Ftp Upload File

    This is my code snippet for file upload. The problem is after all the bytes are written on the server, while doing requestStream.Close() I get error as underlying connection was closed. FtpWebRequest request = (FtpWebRequest)WebRequest.Create(serverUri); request.UsePassive = false; request.Method = WebRequestMethods.Ftp.UploadFile; request.Credentials = new NetworkCredential("xyz", "xyz"); Stream requestStream = request.GetRequestStream(); const int bufferLength = 2048; byte[] buffer = new byte[bufferLength]; int count = 0; int readBytes = 0; FileStream stream = File.OpenRead(fileName); do { readBytes = ...Show All

  • Visual Studio 2008 (Pre-release) Drawing a Bottom Border

    I want to have a bottom border which spans a single row and two columns. Is there any way to do this I tried playing around with the border object but didn't have any luck. Thanks! Can you be a bit more specific Where do you want the border, what object do you want it around Is this a Grid or something Thanks Neil ...Show All

©2008 Software Development Network