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

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

Microflashp

Member List

Ahmadreza
dumian
George Waters
Gary DeReese
mustangBE
Sajitha Jose
FatAmos
Peter Wellington
barkingdog
Bill API
Samoyed
Octopus384
Dorisdvu
CJones1100
JeroGrav
041661K
Duncan Woods
Khass
Karin P
bxchan
Only Title

Microflashp's Q&A profile

  • Windows Forms getting ComboBox to Open MyPictures

    I'v been trying to get a ComboBox to open My Pictures Folder so a image can be Selected...I was woundering if someone could help me out with this issue... Code: private void pComboBox( object sender, System. EventArgs e) { OpenFileDialog dlg = new OpenFileDialog (); dlg.Filter = "MyPictures(*.jpg)" + "|*.png|All Files (*.*)|*.*" ; dlg.InitialDirectory = MyPictures.DefaultDir; try { if (dlg.ShowDialog() == DialogResult .OK) { _MyPictures.Open(dlg.FileName); } } catch ( Exception ) { MessageBox .Show( "Unable to open " + "album\n" + dlg.FileName, "Open Album Error" , MessageBoxButtons .OK, MessageBoxIcon .Error); } } } ...Show All

  • Visual Basic Temp Image file is locked and cannot delete

    Hello, I just can't seem to get this to work right for some reason. I am getting pretty frustrated and I am sure it is an easy fix. I have the following line of code: Dim pictForm As Image = Image.FromFile(strFilenameJPG) In the next couple of lines, I draw the image into my graphics object. The strFilenameJPG varaible is just a temp file. When I have completed my grahpics work, I want to delete the file. I use the following line: Kill (strFilenameJPG) However, I get an I/O error every time saying that the file is in use. I have tried several methods such as disposing the pictForm object and setting it equal to nothing, but I always get the same error. Any help would be appreciated. Tom Thanks again for t ...Show All

  • Visual C# Using numeric literal suffix 'M' on a constant value passed to an attribute

    Hi, I was surprised to find that I could not use the literal suffix for decimal: "M" or "m" to explicitly represent a decimal literal value as a constructor argument to an attribute. I require this because I need to perform a cast and comparison at runtime using the literal boxed value that was passed to the attribute, and if the boxed value is not of the expected type then an InvalidCastException is thrown. Therefore the literal constant value must be of a specific type, which is normally achieved via the suffix approach. For example, given the following attribute declaration: [ AttributeUsage ( AttributeTargets .All)] public class MyAttribute : Attribute { public MyAttribute( object someval) { ... ...Show All

  • Visual Studio 2008 (Pre-release) What is the best way to use DataContext in ASP.NET app?

    Hello! I have an ASP.NET app. where I use DLINQ. I want to find out the best way of using DataContext because perfomance is a critical thing. I have these variants: 1) DataContext will be initialized only once and placed into the Session. (But my DB structure is quite big) 2) DataContext will be initialized every time when a query executes. 3)... Please tell me your suggestions. Well, just because you have a lot of tables doesn't mean that your app needs to concern itself with all the tables, all the time. If you drop the metadata requirements, you might be able to shave a little be a performance if you restrict your view of the database. Honestly, I'm suspecting this isn't as much a concer ...Show All

  • SQL Server I forgot my SA password for my instance of SQL 2000

    Hi all, I have SQL 2000 and I forgot my SA password and cannot login as administrator using windows authentication. Is there any way to reset SA password "Mixed Mode" authentication is enabled. If I change authentication mode in register to Windows only and then after restarting SQL change it back to Mixed, will it reset SA password to "null" Thanks in advance. Just in addition to Glenns post and your qustion: It won’t reset the password to null with changing the authentication type back and forth. If you don’t have any GUI to administer your passwords you can use the procedure sp_password passing in a NULL for the old password parameter, as you don’t need the old if ...Show All

  • Visual Basic textfield

    if i create a button named add text feild in vb6.0 how can this button add a textfield on the form Your question isn't very clear. I assume you want a button's Click event to add a TextBox control to a .NET form. Try this: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim box As New TextBox box.Location = New Point(10, 5) box.Size = New Size(100, 20) box.Name = "TextBox1" box.Text = "nobugz waz here" Me.Controls.Add(box) End Sub Add or modify properties as necessary to get the TextBox the way you want it... ...Show All

  • Internet Explorer Development Horizontal browser window under main page.

    I am developing an application inVS2005 that requires me to open a web page that has 3-4 lines of text in a seperate browser page underneath the normal window in ie6 or ie7. This browser is controlled by the localhost web engine in .net2, so I don't need any controls for web access. I will be using html links to control user access. How do I go about creating such a page I fairly new to programming and I have no clue as to how IE works. Thanks for any help you can give me. Is this along the lines of what you were looking for http://www.codeproject.com/csharp/dotnetbandobjects.asp There is another article on MSDN about Creating Custom Explorer Bars, but it's not for the faint of heart. http:// ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA Games OUT OF THE BOX??

    I cant make them work on a PC with just .NET 2.0 DirectX and the XNA Framework, it still needs the GSE and VC# Express, otherwise I get an error that the framework dll should have been installed into the Global Assembly Cache. Make sure (i.e. run the app) you have all of DX9.0c including the optional components by running the web installer. The SDK does not install everything (I think its jsut the latest versions and XNA relies on the October components) and the OS does not come with ANY optional components. http://www.microsoft.com/downloads/details.aspx familyid=2DA43D38-DB71-4C1B-BC6A-9B6652CD92A3 I've lost count of the nubmer of people on the forums who assure us they have DirectX 9 but this in ...Show All

  • Visual Basic Windows Form Display Problem in Visio

    I apologize if this is the wrong forum for this question. I have a COM interop program which loads into MS Visio 2003 and displays a menu command bar upon seeing the correct drawing template. One of the menu options displays a Windows Form (modal). The problem is the display and graphics quality. There are four groupboxes which contain text boxes for user input. Not only is the font slightly different (almost like a red trace around each character), but the groupbox outline does not appear. The items in the groupbox appear, but the title and box outline do not. I designed the form in Visual Basic 2005 and refer to it in my code as ------------------------------------ Dim form As New form form.showdialog() ------------------------ ...Show All

  • Visual C# combobox selectedindex issue

    I have application in which combobox are filled with following methodology. comboBox.displayMember=”displayString”; //property I have in collection object comboBox.valueMember=”code”; //Property I have in collection object comboBox.datasource=arrayList comboBox.SelectedIndex=-1; comboBox.Text=null; So initially when application launched nothing is selected in combobox. Now I have button in application which swap these combobox containing panel. During these swaping of panel when combobox are re-visible again,some how combobox autometically display the 0th index item. for e.g. Panel -A has combobox1 and Panel-B has combobox2. If initially combobox1 text is null and with following sequence combobox1 displa ...Show All

  • Windows Forms find out if data on the form has been changed/edited by a user in VB 2005

    I need to find out if data on the form has been changed/edited by a user in VB 2005. I think there is a event "HASCHANGES". How do i implement this If the user has made changes to date, a messagebox must pop up asking to save changes or ignore changes. Alex Public Class Form1 WithEvents dt As New CostingDataSet.Bill_TypesDataTable Private ds As New DataSet Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load dt.TableName = "dt" ds.Tables.Add(dt) Me .Bill_TypesTableAdapter.Fill(ds.Tables( "dt" )) Me .BillTypesBindingSource.DataSource = ds.Tables( "dt" ) ...Show All

  • Visual Studio Express Editions Default Application

    Hello, I have a list of files in my app. I'm keeping track of thier URI and their name. I'm wondering how can I open the files using thier associated default reader. I realize that I can code this myself (either with if statements or introduce different FileTypes each with its own default application), but is there a way I can hookup into existing OS call Thanks Houman you can start an external process, giving it the filepath or link which should execute assuming that the type is registered in Windows: System.Diagnostics.Process.Start(" fileNameOrLink "); would this be something you are after you can also use the assistant class, ProcessStartInfo, to customize the wa ...Show All

  • Software Development for Windows Vista State Machine Workflow doesnot persist with ManualWorkflowSchedulerService - RJ

    Hi, I have a statemachine workflow with web application, SqlWorkflowPersistenceService does not persist workflow to database if I use ManualWorkflowSchedulerService so last statement instance.Unload(); throws exception since it tries to look for the instance id into database but it was not saved. System.InvalidOperationException: Workflow with id "c3a32e79-89dc-4dad-9ba9-7850ca479f35" not found in state persistence store. at Humana.WebArch.TCW.WebServices.TCWService.GetTCWWorkflowInstance(Guid instanceGUID) in C:\DotNetRoot\Projects\TCW\TCW.V1.0\Humana.WebArch.TCW.WebServices\TCWService.asmx.cs:line 1004 at Humana.WebArch.TCW.WebServices.TCWService.SubmitToWorkflow(String requestId, String workFlowId, String ...Show All

  • Visual Studio Team System ConnectionPool VS ConnectionPerUser

    Hi, For a LoadTest's "Run Settings" properties, 1. whats the difference between using ConnectionPool and ConnectionPerUser 2. Which setting "DOES NOT" cause any bottle necks on the Agents. Jesudhas Yes, I would think that if your coded web tests were leaking memory that would also occur with a connection pool (which is why I wanted to make sure). My overnight test did not show any signs of a leak. My email alias is "billbar" (domain: microsoft.com). ...Show All

  • SQL Server About the visual of SQL Server Reporting Services

    Hi, I would like to know if it is possible to change the appearance of SQL Server Reporting Services that we see when we are navigating in the reports by the browser. Like change the name "SQL Server Reporting Services" to the name of my company, change the default icon and the size of it, etc... Thanks for the attention, Gus ...Show All

©2008 Software Development Network