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

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

HanSoloIsSoCute

Member List

Hoodwinked
Fahad349
levsha
Madhu_TN
Jellyhead365
gafferuk
krunal k
jvillwock
David Sadler
Brian Kramer
edsela
Lawrence Parker
kcchesnut
chooinggam
Connie Chan
JamesMitchell
Shahar Prish - MSFT
baldeagle16
vbnetdiscuss
Alan Chong
Only Title

HanSoloIsSoCute's Q&A profile

  • .NET Development Implement "?ustomize" menu in WinForms application

    Can I implement "Customize menus" dialog to choose buttons in toolboxes using some standart .NET class or I must do it manually You have to do it manually or use a third party control. .NET does not support customization out of the box. Third party libraries from vendors normally do though. Note however that the .NET MenuStrip does support reordering items within a menu. Fortunately it isn't that hard. You need to remove any explicit menu definitions from your application and move them to a external data or configuration file. You then need to work out the details of how to detect when the user has overridden the menus, how to merge the menus and how to track the changes that were made. After you get the data storage ...Show All

  • Visual C# Cannot show generic collection that has been created with reflection emit in the propertygrid

    Hi I have the following problem, I have created a object that has a property that is a collection of other objects that also are created with Reflection::Emit. Type* ListType = Type::GetType( "System.Collections.ObjectModel.Collection`1" ); Type* InternalType = "Some type created with reflection emit" ...... Type* TypeArray[] = {InternalType}; Type* GenericListType = ListType->MakeGenericType(TypeArray); ... I later manage to create an instance of the GenericListType with Activator::CreateInstance(). But when I bring the new collection up in the in the property grid I only se the text of the overriden toString method in the field and the property is grey instead of black. It is also impo ...Show All

  • Visual Basic WebBrowser Refreshing Problem

    I've got a WebBrowser control in my current program that, every minute and a half, loads a web page and parses some string information out of it. The problem is, after running for a while, it stops reloading the page; everytime it 'loads' the page, it loads the exact same contact the page had the last time it was loaded, although the actual page content has changed. Viewing the page in IE outside the program, I can see visually that the site really has changed; but the program continues only to see an older version of the page. Why is this happening, and how can it be fixed Note: the problem persists when I log on/off the computer, and when I restart the computer entirely. It doesn't happen for all pages being dealt with in thi ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. putting background image in Console applicaiton

    I have an application and i want to place an background image to my console application. The image that i want make background image is in the Resources file. Does anybody know how i can do that pls help .... I try to make a game like mario. I want to move the object from my keyboard. And the its interface is appearing like this http://rapidshare.de/files/33624920/deve.jpg I think i should do game with console application. But in console application i can't display background image of the game instead of black screen. Which application is suitable for this aim ...Show All

  • Internet Explorer Development Still another report on this...

    Having an intermittent problem printing To: From: CC: Subject: Attachments: headers on emails. Usually happens with larger emails or emails with large attachments or emails that have been replied to or forwarded from other people. Have installed Generic/text printer and sent the email to this printer but sometimes the headers are still missing even printing this way. I have if I open the offending email and highlight just one or two words in the text of the email eg Dear John and then print the email using my HP printer (not as text on Generic printer) - the headers then print and so does the selected words. Don't suggest using Outlook as often we only print the first page of emails as we already have the rest of the email on file especial ...Show All

  • Smart Device Development Wheel input on Smartphones

    Is there a way to distinguish the up and down events of a wheel in the smartphone, as opposed to the up and down arrow key. Right now they both fire the Keys.Up and Keys.Down events but I want to do different actions based on whether this comes from the wheel or the keys. Any ideas Thanks The .NETCF team is unaware of how to do this. There is no explicit support for this in the managed API. As far as I can discover, this would require using a phone vendor specific api, or it may be the case that this can be done by using the HardwareButton class. David Wrighton .NET Compact Framework ...Show All

  • Visual Basic BeginInvoke Hang...

    I just finished fixing one Threading problem only to smack right into another. Hehehe As usual, worked in VS2003, but in VS2005 I have an issue. I am trying to call a method on a new thread using BeginInvoke, but when the compiler executes the BeginInvoke() method, the system inexplicably hangs...I am totally baffled. Here is the code: you may need to try it another way.... I have C# code but will try to convert to VB.NET for you: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=564275&SiteID=1   create a delegate as a public member:   public delegate sub theDelegate(Byval theMessage as string)   then create a public method:   Public sub DoInvoke(Byval theMessage as String) &n ...Show All

  • SQL Server Chart Grouping Label Formatting

    Is there a way to adjust the orientation of the grouping labels (x-axis) of a bar chart in a report. So instead of displaying the grouping label text horizontally I want to display the text vertically Is there any way to access the chart object and code this in the report from properties ->code tab Any suggestions From the "Axis Label Formatting Q&A" section of the following whitepaper: http://msdn.microsoft.com/library/en-us/dnsql90/html/MoreSSRSCharts.asp frame=true#moressrscharts_topic3 Question (X-axis): How does automatic x-axis label positioning work Answer: Currently, built-in Reporting Services charts only allow automatic positioning in order to avoid overlapping the x- ...Show All

  • Windows Forms Datagridview GUID as primary key

    For the life of me I have forgotten how to handle this. I have a primary key that is a GUID another column that is a NChar 'FName' for first names. These items or I should say datagridview is bound to a dataset. When I start to enter first names in the column and move to the next column I get an error stating that the primary can not be null. How do I stop this Thanks. There are 2 ways you can handle this. First is to assign a value to the primary key in datatable's TableNewRow event. The other is to assign a value in the datagridview's DefaultValuesNeeded event. ...Show All

  • SQL Server open cube to browse takes very long time

    I broke up my cube into 24 partitions. There are about 630M total fact rows in that cube. When I open the cube to browse in BIDS or SQL Management Studio it takes very long time to open (I think 30 minutes). Profiler does not show that it's running a query, but messages like this keep appearing throughout the time it's opening to browse: Progress Report Begin, 14- Query, Started reading data from the 'p0' partition. Progress Report End, 14- Query, Finished reading data from the 'p0' partition. Progress Report Begin, 14- Query, Started reading data from the 'p10' partition. Progress Report End, 14- Query, Finished reading data from the 'p10' partition. and goes on like that.... While we're ...Show All

  • Visual C++ calling jscript dll function from c++

    Hi all, I created a jscript dll using jsc compiler. Now I want to use its functions from vc++. What is the best way to do it I tried various ways but did not succeed. Here are the details : 1. I added the reference to dll as : right click on project name -> add reference -> browse to myjs.dll. But when I define and call the class (foo) constructor, I get an error saying An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module. Additional information: File or assembly name myjs.dll, or one of its dependencies, was not found. 2. When I use LoadLibrary and GetProcAddress functions, it always returns the function pointer as null. Here is the code : using namespace myjs; HINSTANCE hinst = ...Show All

  • .NET Development How can I return an object with arguments using CodeDom

    hi, Trying to generate the following line return InsertEmployee(EmployeeID, LastName, FirstName,etc,etc) or employee= InsertEmployee(EmployeeID, LastName, FirstName,etc,etc) return employee Basically I cannot seem to find a way with CodeMethodReturnStatement. I am looping through the storedprocedure parameters and building up the parameter list With the CodeParameterDeclarationExpression you can add item to a collection and  so on. I cannot seem to be able to do the same with for instanse the CodeArgumentReferenceExpression. May be I dont need to use it. Any suggestions     The CodeMethodReturnStatement accepts a CodeExpression that specifies what will be ...Show All

  • SQL Server Linked server from SQL 2005 64-bit to SQL 7

    I've experienced the problem with creating a linked server from SQL 2005 64-bit to SQL 2000. "The stored procedure required to complete this operation could not be found on the server. Please contact your system administrator.". I have resolved this by upgrading the system stored procs on the 2000 machine by running instcat.sql, documented in http://support.microsoft.com/default.aspx/kb/906954/en-us . Works great. However, I'm now experiencing the same error when linking from SQL 2005 64-bit to SQL 7. I'm concerned about applying 2000 code onto a SQL 7 machine. Any ideas on how to handle this case Thanks Paul Hi Paul, You can gohead and apply the 2000 code instcat.sql in SQL server 7.0, Upgra ...Show All

  • .NET Development fill datasource using SqlDataReader

    Hi, Can anyone give me an example of filling a listbox datasource using SqlDataReader. I want to be able to choose on my lisbox, the display and value members. Tnx. Okay, please when you post a question try to mention which version of datagrid you are talking about, as there are so many differences between the web DataGrid and Windows DataGrid, for example in web you can bind the DG to DataReader, DataTable, and DataSet, but in Winforms you can only bind the DG to DataTable or DataSet. Try to modify your code or you can use a function to transform a data reader into a datatable but I strongly recommend the first solution to get away from looping stuff ! Regards, ...Show All

  • SQL Server Every other page is blank after i set my report properties to landscape 11 x 8.5

    Please does any one know what is causing my report's every other page to be blank. i made the changes to the report properties layout width = 11, ht = 8.5 the report looks good in landscape but everyother page is blank. Please help thank you very much for the info. Maybe you need to make sure that your report elements fit within the margins of your page. Whats probably happening is that it's not really a blank page just some report element that didn't quite fit forcing a page break. So if the contents is just a little too wide it will print a seemingly blank page. Setting your margins to 0 kind of gets around this issue meaning your report body must fit within the report size as there are ...Show All

©2008 Software Development Network