smigger666's Q&A profile
Visual Studio Express Editions Buttons
I'm wondering can i make buttons in a form link to a ms dos command and if this is possible respond pls greets a new noob. do you mean to start an instance of command prompt If so, this can be done using the System.Diagnostics namespace, in there a class called Process exists, and its assistant ProcessStartInfo, which allows you to configure how the application to be executed externally, is behaved. So, lets do a quick example. Import the System.Diagnostics namespace at the top of your class file, next to your import statements, then: private sub button1_Click(byval sender as object, byval e as Eventargs) handles button1.click Process.Start("cmd") end sub this will launch ...Show All
SQL Server CrossTable - SQL Server 2000 Help me
Hello, sorry for my English.. i have this problem two tables TABLE_A Import 65 132 244 165 TABLE_B FromValue ToValue 0 100 101 200 201 1000 i'd like a query that have to result this Field1 Field2 Field3 (Count of table A) 0 100 1 101 200 2 201 1000 1 and if i change the table B this query automatically change.. thank's very much Try SELECT FromValue ToValue, (SELECT COUNT(*) FROM TableA A WHERE A.ImportBETWEEN B.FromValue AND B.ToValue) AS Cnt FROM TableB ...Show All
Visual Studio 2008 (Pre-release) DropShadow proper usage
Hi! I have window <Window x:Class = "App.WndMain" x:Name = "WindowRoot" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" AllowsTransparency="True" WindowStyle="None" Background="Transparent" Title="App" Height="400" Width="380" > And i want to have window body with rounded edges and shadow effect so i've tried such window content: <Border CornerRadius="15"> <Grid Height="345" Width="325" VerticalAlignment="Center" HorizontalAlignment="Center"> <Border Width = "Aut ...Show All
Visual C++ Problem trying to uninstallk microsoft business 2003
When I go into control panel and add/remove programs and I go to uninstall Microsoft business 2003 I get this Error message. MICROSOFT VISUAL C++ RUNTIME ERROR. THIS APPLICATION HAS REQUESTED THE RUNTIME TO TERMINATE IN AN UNUSUAL WAY. PLEASE CONTACT THE APPLICATIONS SUPPORT TEAM FOR MORE INFORMATION. Then I also get this pop up. THE EXCEPTION UNKNOWN SOFTWARE EXCEPTION (OX40000015) OCCURED IN THE APPLICATION AT LOCATION 0X7813461A. All I want to do is uninstall this program as well as Microsoft Visual Studio. Can anyone help I would drop a line to the Microsoft business support area, If you go to the product home page on Microsoft you will find a link to the support area for the product in question. ...Show All
Visual Studio Printer tray selection
Is there a way to specify which tray to use Someone asked this a few months back but didn't get any responses. One of my users has a complex printer that has multiple trays, and the default appears to be a tray that holds letterhead and that isn't what I want. This is the web control on VS2005 (sp1). Thanks. If you are printing from Word you might like to try www.trayselector.com it allows you to add single printing profies to different printers and printer trays. For example, you can setup a button to print to a laser printer with the first page to tray 1 and the rest to tray 2 and another button to print all pages to a colour printer. It is free to try for 30 days and just $19.99 for a single ...Show All
SQL Server object required jave script error occurs
Hi, I have designed a report in sql server reporting services using SQL Server Bussiness Intelligence Studio tool. I have applied sorting feature for a column. Sorting facility is working fine when there is one or more records. Its giving "object required" Java Script error When there is no record. Kindly help me how to fix this issue. Regards Sagayaraj R Hi I have tried this statement. SortExpression>=IIF(ROWNUMBER(NOTHING) =0, Nothing, Fields!Date.Value)</SortExpression>. I am getting below error when i am uploading in report manager. SQL Server Reporting Services Error ...Show All
SQL Server Setting Report Parameters
Just working on my first report and am having trouble get the report paraments set up. When I try to set a parameter on the Data tab such as @Zipcode it treats it as a string and surround it with quotes. Also it does not automatically create a parameter in the Report Parameters collection on the Layout tab. Even if I manually create the parameter it does not tie back to the query. Any ideas of what I should be doing Thanks, Paul Hammond Richmond, VA If you write a query for a SQL Server data source, such as SELECT FirstName, LastName FROM Employee WHERE EmployeeID = @EmpID report designer will automatically detect the query parameter. Once you move to the Layout mode, it should also automatically create a report para ...Show All
.NET Development Jet 4.0 Service Pack 8 for x64 bit XP Pro. Is it available?
Hey guys, just wondering, is there a Jet 4.0 SP8 install available for XP x64. because i tried to install the x86 and it didnt work. no suprises there. How does this relate to Office2007 Office 2007 is 32 bit only! As far as I remember MSFT stated that Jet won't be ported to 64 bit. Willy. < allstar1234@discussions.microsoft.com > wrote in message news:3f1c6be4-2968-488f-86f0-d78279afd021@discussions.microsoft.com ... With the official release dates for Vista and Office 2007 (November 30, 2006), can you confirm me that 64-bit version of jet will be available Regards, Eric ...Show All
Smart Device Development How to use Serial Ports !
Hello, I don't know using which component to control serial port on Device. The OS runing on device is WindowsCE 4.2 and .NET compact frame work 1.1. I added reference System.IO but not found class SerialPorts in this package. Can you help me solve this problem Thanks for your help. Steven UK. Hi Michael, Thank you very much for your help, I will upgrade to NETCF2.0 SP1 and writing applications by VB.NET 2005. Steven. ...Show All
Windows Forms HeaderCell text in datagridview
I have seen various examples of how to set the text in the row headercell, however none of them actually work. Here is one example that I tried with no results. This is the event handler for RowsAdded private: System::Void dataGridView1_RowsAdded(System::Object^ sender, System::Windows::Forms::DataGridViewRowsAddedEventArgs^ e) { this->dataGridView1->Rows[e->RowIndex]->HeaderCell->Value = e->RowIndex.ToString(); } That compiles just fine, but doesn't set any text. The interesting thing is, hovering over the headercell displays a tooltip with the CORRECT value, however it's not displaying. Ok I am retarted, I had my header cell to narrow and it wasn't showing up. Here is my nex ...Show All
Visual Studio "Webs do not support linked files" Exception
Hi All, Whenever i wish to add files to a webservice programmatically using objVSWebsite.Project.ProjectItems.AddfromFile(filename) It throws exception-- Webs do not support linked files Can somebody please let me know the remedy of this exception regards Hi Rajiv, WebSite projects does not support linked files. That is the nature of the WebSite Project. As know probably know there is no project file for WebSite project. Therefore it can not know about linked filed files. Ole ...Show All
Smart Device Development How to use SimWriteMessage ?
My SMS message application need to write a sms message to sim card, it call SimWriteMessage function, It return 0x80070057(E_INVALIDARG), I change the input parameter's value and retry it, BUT it always return 0x80070057(E_INVALIDARG). does anybody know how to use it the follow is my source codes, it run in the windows mobile pocket PC phone emulator or a windows mobile pocket PC handset. // source codes: { HRESULT hr; DWORD dwMsgIndex; DWORD dwTmp; SIMMESSAGE SmsMsg; memset( &SmsMsg, 0, sizeof(SmsMsg) ); SmsMsg.cbSize = sizeof( SmsMsg ); SmsMsg.dwParams = SIM_PARAM_MSG_ALL; wcscpy( (SmsMsg.lpszAddress), TEXT("+8613812345678") ); SmsMsg.dwAddressType = SIM_ADDRTYPE_INTERNATIONAL; SmsMsg.dwNumPlan = SIM_NUMPL ...Show All
Visual C++ call function in a C# class from a project created in Visual Studio C++
Hello I have created a project in C++ an added an other project to the solution. This is a C# class library. What i want to do is to call a function in my C# library from my C++ code. Does anyone know how to do this I'm rather new at programming in C++. I have added a reference to the C# class library, but now I'm blank. Don't know where to go next. Are there a kind person out there that can help me with this Regars, Thore C# library can be called directly from C++/CLI project. If you want to use it in unmanaged C++ project, select "Register for COM interoperability" in C# project properties. This option registers C# classes in a library as COM classes. See also Regasm.exe util ...Show All
.NET Development IO.Stream direct to byte array
I have set up a client / server windows application in VB.NET 2005. The code uses HTTP requests and an HTTP listener to communicate over the network. I send a byte array via the request. GetRequestStream Class. When the listener tries to extract the byte stream I end up with an error because it can't seek; the size of the content varies greatly so I can't guess byte array size. I need to know some way to read the stream into a byte array. Probably a really easy answer, but I can't figure it out. Here is the gist of the code I am using now: Dim inboundBuffer As Byte () inboundBuffer = New Byte ( CInt (ReceiveStream)) {} ReceiveStream.Read(inboundBuffer, 0, [max length]) Adam ...Show All
Visual C# object [] Args
Hi, can any of you please tell me on how to create the arraay of objects in the format: object [] Args in prder to pass it through InvokeMethod(string, string,string, object[]Args) if possible please write the code example. Regards, Chaman Here are some code examples about how you can declare and initialize arrays in C#: // Declare a single-dimensional array object[] array1 = new object[5]; array1[0] = 1; array1[1] = 2; array1[2] = 3; array1[3] = 4; array1[4] = 5; // Declare and set array element values object[] array2 = new object[] { 1, 3, 5, 7, 9 }; // Alternative syntax object[] array3 = { 1, 2, 3, 4, 5, 6 }; // Declare a two dimensional array object[,] multiDimensionalArray1 = new object[2, 3]; // Decl ...Show All
