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

Software Development Network >> Mansoor Shiraz's Q&A profile

Mansoor Shiraz

Member List

N B
RB_Banc
Safar
Zath
xr280xr
Sang Hoang
Joseph Stalin
Irfon Subhan
codetale
bluexx
xRuntime
Jim Sn
morpheus3230
joynerCN
Kanhaiya
Joe Simmonds
Rob Fallone
Mr.Bean
Pankaj11
Peter_vienna
Only Title

Mansoor Shiraz's Q&A profile

  • Windows Forms parsing a datetime field

    For your consideration: Using VB.Net in VS2005 I'm loading a text box with the value of a datetime field from a sql db - from this one field on the db i want to put the date in 1 text box, and the time in another. I've got my ParseDate function down, no problem, but haven't been able to figure out how to grab just the date from this datetime field. 1. Take the first part of that field and fill this text box with the date txtOrderDate.text = ParseDate(_ServiceOrder.ServiceOrderDetail("order_date") & "") 2. Take the second part of that field and fill this text box with the time txtOrderTime.text = (_ServiceOrder.ServiceOrderDetail("order_date") & "") Any suggestions wo ...Show All

  • Visual Basic Opening Forms

    Is it possible to have a function to open a form by parming in the form Name as a string It's simpler than that..... Private Sub OpenForm (byval FormName as string) Select Case "Lassie" FormLassie.Show Select Case "Timmy" FormTimmy.Show End Select End Sub ...Show All

  • Visual Studio Express Editions Changing memory value

    I'm working on several programms, and I stuck at something. The problem is I don't know how to change a value in my memory. let's say it's in 0x0231002c and the initial value is 10... how do i change it to e.g. 2 or something Poking (no pun intended) is not a really very wise thing to do, but you can use the Marshal class to do what you want. Off the top of my head, you can use something like: System.Runtime.InteropServices.Marshal.WriteInt32(address, value) If you attempt to write to memory you don't 'own' you'll get an error, however. ...Show All

  • Visual Studio Tools for Office Cannot open VSTO 2005 projects in VSTO 2005 SE

    When I try to open my VSTO 2005 projects in SE, I get the following error: Microsoft Office Outlook 2003 SP1 or newer is not installed on this computer. You must install a version of Microsoft Office Outlook 2003 that supports Microsoft Visual Studio 2005 Tools for the Microsoft Office System projects. I have Office 2007 B2TR installed so have no clue what is going on. Thoughts Hi Bill, thank you for that answer. Would it help to replace the namespaces and references in the. csproj file before i open the solution It will be another Namespace in VSTO SE, but the Objects and Methods are still the same - am I right I will try this and give it some investigation. Greets, Helmut ...Show All

  • Visual Studio Report Viewer returns Object reference not set to an instance of an object.

    Hi, I'm having a problem using the report viewer with a remote report on a server. Whenever I try to load a report in the report viewer control or from the Report Manager website I get a " Object reference not set to an instance of an object" error where the report should be. The parameter bar shows up with the right parameters, but no report. If I use the ReportExecution Web service I can get the report to output to pdf or whatever format I want and save it, but those same reports won't display in the reportviewer. This happens with any report even if all the report contains is a static textbox. I can use the reporting serivces on my development machine and everything works fine, I just can't get the reports from the other se ...Show All

  • Visual Studio 2008 (Pre-release) Drawbacks with "Add Service Reference"?

    Hey! I have built a contract(classlibrary) that my host(consol application) are hosting, then i have used the "Add Service Reference"(Orcas) on the client(winform) which will eliminate the need of manualy use svcutil.exe. It also generates a correct app.config file with the right adr and binding rightaway insted of demand a manual touch. 1. My question is, are there any drawbacks with "Add Service Reference" 2. Will the app.config be generated every time 3. Is it still prosible to use SvcConfigEditor.exe and SvcTraceViewer.exe to log message flow I am not sure I understand #1. If your service changes (eg now listens on a different port or endpoint address), you will need to regenerat ...Show All

  • Visual FoxPro Error Problem in FoxPro application

    Hello all, I am trying to open an application that was build using FoxPro and when I open it, I got this error message. I have no clue at all that it means. And if I click "Ignore" the application will run just fine. Here is the message error that I am getting: Error #1429 in Init line 27 OLE IDispatch exception code 0 from Nodes: Element not found.. Call Stack: 7 Surveys001.Oletree.Init (..\..\..\..\..\program files\tfhudgins\compressormanager\source\surveys.sct) 6 Cmstatemanager.Cmformcollection.Add (..\..\..\..\..\program files\tfhudgins\codemine\common50\cmstate.vct) 5 Cmstatemanager.Openform (..\..\..\..\..\program files\tfhudgins\codemine\common50\cmstate.vct) 4 Tbrlaunchpad.Chktoollaunchbutton1.Launchform ( ...Show All

  • Visual Studio Team System How to check whether any MSOffice file exist in any TFS project programmatically using TFS API

    I want to make sure that none of the projects in TFS has MS office files, programmatically.can anyone suggest me how to do the same   Thanks gentlemen, for the info    Now final my code goes something like this    Workspace workspace; VersionControlServer versioncontrol = ( VersionControlServer )tfs.GetService( typeof ( VersionControlServer )); workspace = versioncontrol.GetWorkspace( "MSOfficeExist" , versioncontrol.AuthenticatedUser); try { workspace.Map( "$/" + teamproject.Name, @"c:\temp\MSOfficeExistNew" );   ItemSet itemset=versioncontrol.GetItems( "$/*.doc" , RecursionType .Full); Item [] items = itemset.Items; if (i ...Show All

  • Visual C++ Which icon appears in the task bar?

    First, I apologize if this is in the wrong forum (the "VS General" is to be shutdown). I have created in VS C++ 2005 a project with two icon types in the resource list: 32x32 and 16x16, both 16 colors. Thus, in Explorer (details view, large icons view, desktop, etc.) the executable is represented properly. However, when the program is running, the process tab icon in the task bar is still the generic Visual Studio icon. Which kind of icon is that and how do I create it (if it is more than simply different size/color depth). Thanks. Kamen Make that SM_CXSMICON and SM_CYSMICON . Bill ...Show All

  • Visual Basic Problem with looping

    I've been working on some programming homework and my sentinel controlled loop won't terminate when I type in the sentinel value. My sentinel value works if I delete the gallons used prompt in the loop, but when I don't, it doesn't work. If anyone could help it would be great. Here is my code so far: Module MPG Sub Main() Dim milesDriven As Double Dim gallons As Double Dim totalMi As Integer Dim totalGal As Integer Dim miCount As Integer Dim galCount As Integer Dim mpg As Double Dim combinedMpg As Double Console.Write ( "Enter the miles driven or -1.0 to quit: " ) milesDriven = Console.ReadLine() Console.Write ( "Ente ...Show All

  • Visual C# Chr (VB.NET) vs char (C#)

    I am converting a VB.NET program to C#. One of the features is returning the character code for an ASCII value. The (char) cast or Convert.ToChar seems to work in most situations. However, in some ASCII(134) I get different returns between the VB and C# code. In VB, Chr returns the small 't' symbol alla http://yorktown.cbe.wwu.edu/sandvig/docs/ASCIICodes.aspx . In C#, (char) or Convert.ToChar returns the 'square' symbol alla unrecognizable. I've looked all over but have not seen how to resolve this(other than setting a refernce to Microsoft.VisualBasic which is something I frown upon). Any help would be greatly appreciated. Thanks James, Thanks for the response. The problem ...Show All

  • Visual Studio Express Editions dates and null values

    My column in sql is of a date data type. I have a textbox that a user can enter a date when certain parameters in the program are met. On occasion a date does not have to be entered in the textbox. This is where I have a problem. The column can accept null values but I am not sure how to program this part. I have a date variable = cdate(txtbox1.text). If nothing is entered in the textbox I get an error message of "can't convert "" to a date) Any help would be appreciated. Well you have 2 ways. Set the date/time property (retrodate ) to an object (dim retroDate as Object) then IF the textbox (the date textbox) contains no text, then set the retroDate property/object to DBNull.Value: ...Show All

  • SharePoint Products and Technologies Customize the look and feel of a webpart

    Hi there. I would like to change the look and feel of my webparts. For example, change the font,colour,background color,text decoration etc. I have looked through the core.css file using Sharepoint Designer however I'm not sure which element to change in the css file. I thought maybe it might have been something like ms-WPHeader. Does anyone have an ideas how I can customize the webparts . George: Do you know of any tutorials that show the process for modifying the XSL in those controls I'm not looking for XSL tutorials...just the process of modifying the web part. Also, can you modify the XSL of a content query web part and only have it affect that one instance of it, or does it effect every single con ...Show All

  • Visual Studio Prevent control from showing in toolbox?

    I have a C# control library (Windows.Forms controls) containing several controls. Some of these controls are base classes I don't want the user to have direct access to. I would like to prevent these base class items from showing up in the toolbox when the library is added to the toolbox via 'Choose Items...'. The question, then is how does one prevent a control from appearing in the control list when the library is added to the toolbox (I have no problem supplying custom bitmaps for the items I DO want displayed.) Add the <ToolBoxItemAttribute(False)> attribute to the base class. See: http://msdn2.microsoft.com/en-us/library/tx1k7z59.aspx ...Show All

  • Windows Forms How do i bring my application to foreground

    I am facing problem when my application icon is clicked in the taskbar then it does not come into foreground as any other windows application does.Even though i have written code for window activate method.This is on c#. When i start it will come to foreground.After that if I open other applications like excel spreadsheet,etc now it will be in the background,now if i click my application in taskbar then it doesn't come to foreground. And also i have observed that actually my application is receiving the control but its not coming to foreground why i am telling this is because even if some other window is in foreground if i hold the control bar of my application and move it around it moves but doesn't come foreground. Tha ...Show All

©2008 Software Development Network