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

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

airin

Member List

xRuntime
FRED COLES
robinjam
h1
Sergiulica1
jumpKnot0
qpsk
Larra
TonyTech06
fibonacci1123
Mohsen Kokabi
smalamas
Tbom7
ruckycharms
GeoffSeattle
djm-web
jchau
sureshsundar007
dtrenaman
Auax
Only Title

airin's Q&A profile

  • Visual Basic Tracking user controls - very simple, I'm sure

    Hi everyone - hope you can help me with this. I'm new to .net, and it's been a long time since I've used VB at all... I have made a modified version of the PictureBox, which the user can drag around the form. It just does this using the obvious technique of tracking the mouse position if the 'button is down' flag is true, which is set to true during mouseDown and set to false during mouseUp. It all works fine. BUT I need a way to let the main form know that the user has dragged the control around, so that it can store its current position for later. There are plenty of really ugly ways I can think of to do this, but I'm sure there must be a simple way - anyone In the old days, I think I would have just posted a message to say &quo ...Show All

  • SQL Server OWC, Pivot & "OR" queries

    this is probably a very easy question but I can't seem to find an answer... Is there any visual way of building a query in OWC that includes a couple of conditions included as 'OR' basically every dimension I drop becomes a condition but they all get added as 'AND' & I can't seem to have a way to do 'OR' - even cube browser in BI studio doesn't have this option... if it was the same dimension it'd have been easy, but it's a bit complicated since it's a role playing dimension & so even though it's the same hierarchy & same level it becomes 2 different dimensions. something like this: DateOpened.Year = 2000 or LastRenewalDate.Year = 2000 ...Show All

  • Architecture Runing web apps with Windows NT Load Balancing Service

    I was assigned to solve problem with our IIS web server cluster. The problem is when we need to boot one of our servers, the sessions connected to server are lost. Which means that the client needs to login. Is there a way to do this without losing the logins Is your cluster configured with high server affinity and without a shared session store between all servers in the cluster If you configure it right, this shouldn't happen. Sure, some connections will be lost when the server that has them breaks the connection, but after a simple client-side refresh it should connect to one of the other servers and if the session is in a shared store, it should pick it right up again. ...Show All

  • Visual Studio Express Editions Passing Variables to Shell command

    Hi, I would like to start a program, but also pass a variable to that program. For an example System.Diagnostics.Process.Start("c:\prog\test.exe"); But I dont know how to give test.exe the extra info For an example: c:\prog\test.exe test.txt Can anyone help with this Sure. you can: System.Diagnostics.Process.Start (@"C:\prog\test.exe test.txt"); or System.Diagnostics.ProcessStartInfo theProcess = new System.Diagnostics.ProcessStartInfo(@"C:\prog\test.txt"); theProcess.Arguments = "test.txt"; System.Diagnostics.Process.Start(theProcess); does this help ...Show All

  • Visual FoxPro Why tooltips won't work for Expressions?

    I've noticed that tooltips won't work for expressions. I'm refering to the tooltips VFP provides when the with of the column is smaller than its content. Is there a way to make tooltips work for column1 in the grid below Public oForm oForm = Createobject('MyForm') oForm.Show Define Class MyForm As Form Width = 420 Height = 460 showtips=.T. Add Object grd1 As Grid With ; left = 10, Top=45, Width=400,Height=200,RecordSource='Orders' Procedure Load Use (_samples+'data\orders') In 0 ENDPROC PROCEDURE init thisform.grd1.column1.controlsource= "('The quick brown fox jumps over the lazy dog')" endproc Enddefine I don't know why. It sounds the ...Show All

  • SQL Server Add Titles to columns in a matrix report

    I have a matrix report and it doesn't add titles to the different groupings. And when you try and add a text box it spans across all grouping columns. How do you add titles to these columns Cheers Damien In a matrix report I need a way to provide titles for the groupings not the detail listings. There doesn't appear to be a way to do this in reporting services 2005 ...Show All

  • Software Development for Windows Vista Help me for BDA with USB in KMDF!

    Can BDA work in WDM-lower-edge USB,just as the sample code in Ndis And is there any samiliar api in BDA ,just like WdfMiniportUnload Thanks for help. ...Show All

  • Visual Basic Error handling in timer callback functions

    I use a System.Threading.Timer object (VB.NET 2003) to call my object's execution method every second. It all works fine until there is an error and no matter how many try/catch blocks surround the offending code, once an error is generated, the execution routine is then constantly in some error state and never recovers (even though the source of the error is gone). There is obviously something I'm missing about what happens when an error occurs on a separate thread - any insight how to handle errors on a separate thread correctly Thanks Dave Taylor There are a number of problems that could be occurring here. Can you provide more detail as to what errors continue to happen after the first Also can you post some of the ...Show All

  • .NET Development pulling info out of a string(xml) in c++?

    I am new to XML and I don't really know how to access the information in c++. I have some code that is returning a directory and file tree to me in a string that has xml code in it. I need to know how to get all of the information pined between the href tags and stick them in a vector. I just don't know how to parse the string easily. I could write my own string parser specific to this case but I would rather not. Any thing out there already If you need a sample file I can post a simplified version. And if you need code I can post that also just let me know. Thanks a lot Matt I am using the IXMLDOMNode interface to get the information out between two tags e.g <sometag>info wanted</sometag> ...Show All

  • Visual Studio Passing a Parameter Stored Proc to Local ReportViewer

    I have a report written for Server mode that I've converted to Local mode. The original report had two parameters. Since I know that you don't pass parameters in local mode like you do in server mode, I removed the parameters from the .rdl before converting to .rdlc. I created a new form for the ReportViewer and used the SmartTags to setup my data source. My source is a stored procedure which has two parameters, a customer ID and an identifier to know whether to look in company #1 data or company #2 data. I have a line of code to pass the sp and parameters to a datatable in the form_load event: Me .Sp_OpenDraftNoticeTableAdapter.Fill( Me .PetroDataSet.sp_OpenDraftNotice, 46, 2) but when I run this I get a blank report. However, if ...Show All

  • Visual Basic Generate a compiler error?

    Hi all, I've created a custom component which can be dropped from the toolbox to any form. It interacts with any form that has a treelist on it. After you drop it on to the form, you must set a property of the component which is treelist it applies to. At the moment if you forget to set the property, the app builds, but as soon as you attempt to use the component, you get a nullreferenceexception. What I'd like to know is whether it's possible to force a compiler/build error if that property has not been set at compile time i.e., if one of our other developers uses the component on his form but forgets to set the property in design mode, then I'd like it to not build and show an error message in the error list. This ...Show All

  • Visual C# IE BHO show history

    i'm writing an IE BHO and can't find the command to show the default IE history pane. can anyone please point me in the rigth direction ...Show All

  • SQL Server How Start/Stop shortcuts in system tray ?

    Hi, I want to tell to user about SQL Server Configuration Manager and wants to allow him "START / PAUSE / STOP" for SQL Server Express in system Tray. It is easy for the end user who don't know SQL Server. Thanks hi, you can perhaps have a look at http://www.sqldbatips.com/showarticle.asp ID=46 , a replacement for the "old" SQL Server Service Manager available for SQL Server 7.0 an 2000... as a side note, remember that users require admin permission to start/stop Windows services, and usually you'll not grant them this high level membership to traditional interactive users.. so SQL Server should already be started as they log in (as it actually does), and they should be ...Show All

  • Windows Forms Progress Bar - ListBox

    Yeah, I fugured that out when I translated it into C++...I had noticed that it didn't actually add the event handler.  Anyway, there is only one more problem, the cpu usage isn't very acurate compared to that of the Task Managers. I have a label that I use to show the % of the CPU Usage using your method, but It ALWAYS either stays at 0% or 100% while the progress bar jumps around like crazy.... This is what I am using to show the label: this ->label1->Text = "CPU Usage: " + Convert::ToString(( int )CPU->NextValue()) + "%" ; I have tried using other processor timers but nothing seems to make a difference.  The one you provided works like a charm on the progressbar, but then again the label doe ...Show All

  • Windows Forms MDI App: Multiple Excel files and Multiple WebBrowser controls

    I'm writing an MDI winforms app that displays multiple excel documents in multiple WebBrowser controls/child windows. If I open just one excel window at a time, interaction with the spreadsheet behaves normally. However, if I open a second excel window while one is already open, interaction with the spreadsheet in the first excel window transfers to the second window. For instance, if I click on a worksheet tab on the first window, it is removed from the the first window and displayed in the second. Or, if I start entering data in a cell on the first window, the cell doesn't enter edit mode but the formula bar in the second window shows the text i've entered. What I think is happening is that the second window takes the Excel Applica ...Show All

©2008 Software Development Network