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

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

MyoZaw

Member List

yosonu
none_justreading
luca82
barchard
chazparks
butterfly13
Jeremy Jarrell
Pradeep T
WillTurner
VB Overlord
Mateusz Rajca
Palmi
Bruce Nichelson
Bltfast
Qiuwei
Tryin2Bgood
windows_mss
Ashish Derhgawen
Vyatsek
Chiro
Only Title

MyoZaw's Q&A profile

  • Visual C# Using OleDbConnection to populate DataGridView

    I'm a bit new to this, so pardon my ignorance if this is well-known. I've been searching the net, but no luck yet. I have an established OleDbConnection that I want to use to populate a DataGridView. I can run SQL queries on the connection and see data sets, but I would like to present a view of that data in my grid. Also, I'd like to be able to only show a fouple of the columsn, but hold on to the full data set for later use. Any pointers would be appreciated... Thanks. take out the dataSet.AcceptChanges() and see what happens. have you set some mapping before hand or in some area of code with the dataAdapter make sure you clear the table mapping anyway (if you don't need them) by: _dataAdapter.TableMappings.Clear(); ...Show All

  • Visual C# Is there a way to not have to type KeyValuePair<blah, blah> every time you use dictionary

    E.g. I would like to class DictEnt : KeyValuePair<fu, bar>{} Dictionary<DictEnt> mydict foreach(DictEnt myrec in mydict) { myrec.value ............. } but it says its sealed, is there another way to do this instead of this class DictEnt : {} Dictionary<fu, bar> mydict foreach(KeyValuePair<fu, bar> myrec in mydict) ^^^^^^^^^^^^^^^^ looks messy imo { myrec.value ............. } using DictEnt = System.Collections.Generic.KeyValuePair<fu, bar> ; ...Show All

  • Visual C# Shell Context menu (aka Win Explorer context menu) in my app?.. how?

    Hi all.. I have for a time now tried to take advantage of some of the implementations the Shell32 api can offer regards to file management, mainly i have been successful. The one thing i have not been able to do is implement the explorer context menu in my applications. I want to be able to get the same context menu Windowns explorer shows, with all the addins that may include (eg. winrar-addin, sendto, openwith and so forth) in my application. I have found code for this in both C++ and som e VB like apps, but nothing in C#. I would be extreamly glad if someone who knows how to do this could post a small app where this is done or perhaps post a link to a site where this information can be found!! If its still unclear what i mean: ...Show All

  • Visual Studio Tools for Office How to set the Excel pivot table fields to xlPercentOfTotal

    Hi all, Nice to meet you, here. I got one problem: You know that we can set the PIVOT data field format with Macro. Macro: With ActiveSheet.PivotTables("PivotTable1").PivotFields("Sum of LENGTH") .Calculation = xlPercentOfTotal .NumberFormat = "0.00%" End With But, I need to operate this with C#. How can I do Thank you in advance. As the " Please Read First " message at the top of this forum states, this forum is for asking VSTO-technology-related questions, only. Your question involves automating the Excel object model, and is better asked in the office.developer.automation newsgroup (as listed in that post). Yongjun.W ...Show All

  • Visual Studio Team System Database Validation Rules

    I see built-in database validation rules that can be used with webtests. My quick try to use them the way I use the other validation rules failed, I get an error "DatabaseFieldValidation Validation Object reference not set to an instance of an object. Column=TestColumn, ExpectedValue=Test, WaitTime=15, Retries=1, DatabaseServer=servername". I could not find any document which explains them, can anyone direct me to the documentation or any idea on why I get this error Can these be used with Webtests that test webservices The build-in validation rules for VSTS web test are rules for Form Field, Find Text, Maxium Request Time, Required Attribute Value, Required Tag, and Validate TagContent. Are you us ...Show All

  • Visual C# sending and recieving mail in c#

    I need help again :( I'm trying to do send mail to a user, with a OK and Cancel button, I can send mail but I couldn't add buttons. The second and the more important problem is that: I want to take feedback from user. If user clicks Ok button then my code will add a record to my MS SQL SERVER database, if user clicks Cancel button then my code will delete a record from my SQL SERVER database. that's an interesting one. I'm not even sure you can. you can embed HTML elements in the body I believe as long as you have the mailMessage in HTML format but when you want to actually go ahead and delete that record, you cant do it from HTML. You need pretty much .NET to do this (or some other way) ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XBox has died how do I go about transferring my creators club etc. to the new unit when it arrives?

    Having just started some serious dev work on my personal 360 project, the danged box up and "three reds" on me. How do I go about getting all my stuff i.e. live arcade games, gold membership and more importantly creators club membership onto the new box when it arrives Has anyone had to do this before and what are the steps needed. I know about having to generate a new code for the link but, this is more about what I need to do to have live recognise the new box as being me etc. etc. All your accounts (live, xna) are related to your gamer profile so you just need to recover your gamer profile from Your account management section. You'll need to remember your password and profile name thats about it. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Newb question: different textures for different resolutions?

    Hi there, I've made a couple of games in GSE now, and in each case I programmed the game in 800 x 600, which is rather silly given that I have a monitor that supports resolutions all the way up to 2560x1600. I understand that I can get the user's window size and adjust my game to fit it at startup, though I haven't really played with that yet. But what about textures Is the best practice to include one texture for "maximum" resolution and then let Windows scale it down to size depending on the user's window size Or do developers include several copies of the same texture for different resolutions Likewise, I'm wondering how to handle different aspect ratios. To release a game that supports both 4:3 and "widescreen&q ...Show All

  • Windows Forms How to detect when ToolStripTextBox loses focus?

    I have a ToolStripTextBox in my toolstrip, and I need to know when the user clicks away from the text box after the textbox has previously received focus. Seems impossible! :-) I've tried to handle the ToolStripTextBox's Leave event, as well as the "inner" textbox's Leave, with no luck. Any ideas Thanks! Jeff I can't reproduce your problem; LostFocus, Leave and Validating fire just fine. "Clicks away from the text box", what do you click on ...Show All

  • Visual Studio Organizing additional content

    Asside from interrupting the processing and using a external script or executable, how does one go about organizing additional content within the help file Thanks! Rory I'm most of the way there in making it work, but I have a task to complete still.  And it now generates a hierarchical format of additional content. If you're interested in seeing how I've done it, I'd be more than happy to share. Now I just need to modify the ItemContent and ItemContentCollection classes so that they load the children in the project file correctly.  Otherwise, it's done and it works. Thanks! Rory ...Show All

  • Software Development for Windows Vista CM_PPPEntries: how to specify extra parameters

    Hello, I'm working on an extension of an existing order entry application running on Windows Mobile. The extension allows the automatic configuration of email and internet connection - and I've done them using the Configuration Service Providers CM_PPPEntries and EMAIL2, and the DMProcessConfigXML API. Now the customer asked me if it's possible to configure in CM_PPPEntries parameters such as the baud rate, the "Wait for dial tone before dialing" flag and the extra dial-string modem commands (as defined in the advanced settings using the connection wizard applet). Is this possible Thanks Antonio Hello Antonio, Thanks for your post. This forum is patrolled by folks who are experts in dev ...Show All

  • Visual C++ Multi-dimension arrays in VC++ 2005 for n00bs

    Okay, a little background: I'm an aerospace engineer, not a programmer, but I'm experienced in C, and I'm using VS2005 to make some simple-ish tools for our group. I'm trying to declare a multi-dimensional array in VC++ through the 'standard' method... double test[5][5]; ...and then access it in the 'standard' way... test[0] = something I'm putting in there.; ...but it's not working. When I debug, the Watch says that test is a double[][] of length 5. So far, so good, but when I expand it, instead of the 'standard' syntax, it comes up like this.... test[0,1] Length 0 double[] test[0,2] Length 0 double[] ...and so on. I've dug through our copy of MSDN, and online and there ...Show All

  • Visual C++ A null reference pointer was passed to the stub

    Hii All, I am working on the project where the client uses vcc++(ATL-COM) API from the internet to connect to the database.The server in Window NT.The request and response is all in xml format.Some times we get the error as showm below. COM ERROR: Code = 0x800706F4 Code meaning = A null reference pointer was passed to the stub. Source = Description = Can anybody help on this,I am stuck here For such issues, please use the newsgroups at http://msdn.microsoft.com/newsgroups where folks will be more familiar with such issues. OTP Thanks, Ayman Shoukry VC++ Team ...Show All

  • Visual Basic Accessing other applications

    I have a plan for a program that I am going to create, however to do so I need to be able to do things (e.g. close) with other applications which aren't part of the programs project. I have only beginner knowlege of visual basic .net so any help would be appreciated. Thank you in advanced. You may also want to take some time looking into the process class: Dim MyProcesses () As Process = Process . GetProcessesByName ( "Notepad" ) Dim MyProcessId As Integer = MyProcesses ( 0 ). Id ...Show All

  • Smart Device Development Pocket PC help

    Hello, I am newbie. I want to listen and perform certain action. When light pen touches the screen of Pocket PC 2005 which API i use to detect that light pen touch the screen.I want to create the simple application like, messagebox will display (contain co-ordinate of the screen ) when i click on screen. I am using C++ for development purpose. Pocket PC 2005. Any event listening or API for that Thanks, -Salman Hi, The windowing framework does pass on a paint message to the windows that gets the focus. This isn't a known issue and I can't understand the reason why may it happen for your application. Please share some more information about the code. Thanks ...Show All

©2008 Software Development Network