ArchanaG's Q&A profile
Visual Basic Can I set userscale of picbox, like possible in VB6?
Dear all, it used to be possible in VB6 to define picboxes as carthusian axis crosses with user-defineable min and max for both X and Y direction. With the advantage that you can draw on them just as you would do in math. I am trying: Imports System.Drawing Public Class Form1 Dim g As Graphics Private Sub Form1_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Load g = PicBox.CreateGraphics() End Sub Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim a(5000) As System.Drawing.Point 'points are paired numbers: a.X and a.Y Dim i As Integer For i = 0 To 5 ...Show All
SQL Server Service Packs for Express Edition with Advanced Services?
Hello, I use Windows XP Profesional. I have installed SQL Server 2005 Express Edition with Advanced Serices. The problem is that my databases attach always as Read-Only. I have learned that I sould install Service Pack(s), but I cannot find any for Express Edition with Advanced Services. Could youe help me please Here is a list of files I have installed: SQLEXPR_ADV.EXE, SQLEXPR_TOOLKIT.EXE, SqlServer2K5_BOL_Jul2006.msi, SQLServer2005_ReportAddin.msi, SQLServer2005_SSMSEE.msi, SqlServerSamples.msi, SSEUtilSetup.EXE. /RAM/ Hi Robert, There are no service packs for SQL Express with Advanced Services yet. Service Pack 2 will be the first and is scheduled to be released in the first quarter of 2007. You problem is not rela ...Show All
Smart Device Development restart after installation
hello, i m newbie. i have develop the cab file from smart device cab project. what i want is that when i complete my installation. the mobile will reboot as like normal installer. because i have paste the exe in the windows startup on time of cab creation. and that exe will run my other background services(exe). so how after installation through cab i want to restart the device. how i manage it device is imate sp5m, and C++.2005 for development. Thanks in advance Regards Salman And how to soft reset programmatically: http://www.pocketpcdn.com/articles/softreset.html ...Show All
SQL Server SUM
I need to calculate the Total of particular column.This column is of varchar data type.So I have used the function CInt.My parameter is like this First(Salary). I am getting runtimer error aggregated functions can't be nested. Please help me. can u please paste the code snippet, well besides this i just can suggest you to try this =Sum(Parameters!Salary.Value) OR if there is a group then =Sum(Parameters!Salary.Value,"Group_Name") hope it may help. ...Show All
.NET Development Uri: getting everything but the filename
Argh! Is there a way to get everything but the filename with Uri Sure, I can just remove everything after the last /, but I was wondering if it's already built in. I can't seem to do that with Uri.GetComponents(), which would seem like the perfect candidate. Similar to Path.GetDirectoryName(), but for URI's. Uri link = new Uri ( @"http://www.somesite.com/someDir/someDir/someFile.html" ); Console .WriteLine( Path .GetDirectoryName(link.ToString())); ...Show All
Visual C# Passing two paramaters
I have an app that I am trying to build using the BackgroundWorker Component, and I am having a little bit of trouble figuring out how to pass multiple paramaters back with ReportProgress. Below you can see the two small code snippets. Any help would be greatly appreciated. Thanks, Russ ////////////////////////////////////////////////////////////////////////////////////////////////////// (sender as BackgroundWorker ).ReportProgress(currentCount, totalCount); ////////////////////////////////////////////////////////////////////////////////////////////////////// void backgroundWorker_ProgressChanged( object sender, ProgressChangedEventArgs e) { progressBar1.Value = (e.ProgressPercentage); progressBar1.Maximum = ...Show All
Visual Basic Implicit ReDim - Is this a bug ?
No cracks about the 'bug' is sitting at the keyboard Try this: <Code> Sub Test Dim a(0 To 9, 0 To 5) As String a = FuncX() End Sub Function FuncX() as String(,) Dim Ret(0 To 4, 0 To 5) as String < Code to fill Ret > FunctX = Ret End Function <\Code> When you check 'a' in Test, it has been redefined as Ret: i.e. (0 to 4, 0 to 5) No compile warning ... although I can see where it might be hard to checks this. No Runtime error - except when I try to use 'a' with the full dimensions. Is this a bug or is it intentional and I'm missing something (other than my mind for such poor code consistency). Roger It is not a bug and is the expected (and desir ...Show All
Visual Basic Efficient programming of repeating tasks. Possible?
Dear all, I have a form with picturebox (picInput1) and a number (say, 20) of radiobuttons rbLut1...rbLut20 that, when clicked, will impose 20 different LookUpTables (LUTs, or palettes) onto that picturebox. Luts are derived from other picture boxes that exist: lut0....Lut20. What I made (see below) works but it is typing-inefficient AND I don't like it because it is not elegant: '***Start current code:------------------------------------------------------- Private fyCurrentLut As String = "Lut1" Public Sub rbLut0_CheckedChanged(ByVal sender As Object, ByVal e As _ System.EventArgs) Handles rbLut0.CheckedChanged, rbLut1.CheckedChanged, _ rbLut2.CheckedChanged, ............ rbLut20.CheckedChanged 'KJ aug 2006. Det ...Show All
SQL Server Returning resulsets between procedures !!
Hello, I need to do the following, But I receive an error: CREATE PROCEDURE dbo.EJEMPLO_A AS BEGIN SELECT TOP 10 NAME, ID FROM SYSCOLUMNS END -- and Later use the one above... like this... CREATE PROCEDURE dbo.EJEMPLO_B AS BEGIN DECLARE @temp_lista TABLE (NOMBRE VARCHAR(500), IDENT NUMERIC(5)) INSERT INTO @temp_lista execute dbo.EJEMPLO_JULIAN END Pd. I just have to capture the dbo.EJEMPLO_A resulset... and I can't modify It Hi Dave, thank you so much for your answer... The problem here Is that I can't modify the dbo.EJEMPLO_A procedure, I just can change the second one... ...Show All
Software Development for Windows Vista Is there automatic reloading and executing when recovering from a crash?
Hi This may be a stupid question but I really need to know what to do in this case. I'm developing a state machine workflow, I have an EventDrivenActivity with a TransactionScopeAcitivty in which I have activities to save to my data model. If something goes horribly wrong after the persistence point on the close of the TransactionScopeActivity before the persistence on idle (I have this set). Can I expect that when the outside factors are resolved the runtime will take care of reloading this partially complete EventDrivenActivity automatically and finish exection from after the TransactionScopeActivty. Or... am I going to need to somehow check for this situation and load the workflow instance to have it continue exection Any help wo ...Show All
Visual C# Convert string to operation
Hi! Is it possible to convert strings to operations in a relatively simple way For example convert this string: string OperationInString = "3+3+9"; somehow, so I get back "15". Thanks in advance. ;) Code generation is not as difficult as it appears at first. If you want to customize the code later or extend the class or the method that is generated, e.g. by adding parameters, it also makes sense to take a look at the actual code that it compiled. If you want to do so, just at this peace of code before the comment "//check for errors": using (System.IO. StringWriter stringWriter = new System.IO. StringWriter ()) { provider.GenerateCodeFromCompileUnit( ...Show All
Visual C++ Different function of COM dll between .tli file and OLE/COM viewer?
I am doing the development of microsoft visio viewer 2003 type library,I find something strange, that is: when I use OLE/COM library to see the method of com dll, I can see the function of Zoom(double par), but in viewer.tli which is generated by vc, I did not see any function like that ,but i see different function like PutZoom, SetZoom(), Please tell me why this happen, why I can not use the function shown in OLE/COM view I apprecaite your help. Hello Re: Different function of COM dll between .tli file and OLE/COM viewer The right place for your question is probably the COM newsgroup: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.ole&lang=en& ...Show All
Windows Forms How to select single combobox in a panel or groupbox?
Hi I have 4 combobox grouped in a panel. Each combobox has the value from 30 to 35. My question is if any of the combobox selected with value, the messagebox should display the following "One of the combobox has value selected" when leavel the panel. Advanced Thanks Hi, You need to capture the SelectedValueChanged or SelectedIndexChanged events for the comboboxes and set an integer variable to the value that was selected in the combo boxes. Then on the Leave event of the Panel, display the variable contents through a MessageBox. Here's the code for it: //declare the variable int selectedvalue = 0; . . . private void comboBox1_SelectedIndexChanged( object sender, System.EventArgs e) { s ...Show All
Visual Studio Express Editions Again, Mortgage Calculation C++ Console Application
Hi, This time is about application's execution. I have been my brains out of problem, but I can't solve that, and I don't now a debug tric to help to solve the problem. The linker don't complains about that. The issue is: calls to function's member of class PresVal declared in PresVal.h and implemented in various .cpp, do anything , when called from PresVal.cpp. Where is my mistake, here Thanks in advance for help. See the code, and at the botom, the messages the output of ide debug execution of application. Annuity.cpp #include "PresVal.h" #include <conio.h> #include < iostream> using namespace std; int main() { cout <<"********************************************************* ...Show All
Visual Studio Express Editions How To Add 3rd Party Control To My Project
Adding a 3rd party control to a VB6 application was pretty easy. But I'm missing something in VB 2005 Express. What are the steps to add a 3rd party grid that I've downloaded and installed Thanks, gs From the Project Menu select "Add Reference" The you have the option of adding a .NET reference, COM reference, Project Reference, and even browsing for the reference....find the 3rd party control and make the reference Then in order to get the control to show up in your tool box ...you may have to right click on the tool box and click "Choose Items..." Sorry SJ...didn't mean to post on top of you...timing issue ...Show All
