kishoreg's Q&A profile
Visual Basic how to stop the call of IE in your app
im still new at vb but here's the thing ive decide to create a web browser that also interacts with my files on my pc.now with that said. if i debugg my project and go to yahoo.com then click the finance link i get to the pages within my app just fine. now from there. there is asearch bar at the top of the page i type the word cars in the search and press enter it call ie to launch.I have created an event within webrowser in my app fot newwind under properties. that get it to when i hit enter under the same senerio to open a new window with my app.ok now hers the question.i need to retrieve the requested page that is being called to IE and also stop the call for IE to open. how do i do that herses my code.you will find the event im r ...Show All
Smart Device Development Sync data between desktop and pocket pc
I have a pocket pc application for pocket pc 2003 developed usign Vb .NET.It uses a Sql Mobile database (.sdb). I have desktop version of the same application using an access database. I need to transfer the data between the desktop and the pocket pc app.(ex. update the access database based on entires in the mobile database and vice versa). replication and migration are not an option since I do not use Sql server 2000 on the desktop side. Any help appreciated Thanks, dear sdoc, i m also facing the same problem. Can u please guide me that how i use primeworks desktopSqlCe to solve this problem thanks ...Show All
Visual Studio Express Editions How to maximize a form from within the program?
I would like to know if there is a command to open a form and maximize it from within the program. Thanks, Pat If you are inside of the form you use Me.WindowState = FormWindowState.Maximized If you have a reference to the form then frmHello.WindowState = FormWindowState.Maximized Hope this helps. ...Show All
Visual Studio Express Editions Question about the Command Line and Console.write()
Hi, I have a project that I'm working on for someone. They have a command line shell which is basically just the cmd.exe shell with a bunch of bat files in the path. However, I was asked to write a program that would take some input (in the form of arguments) and output stuff to his console. I decided to do this in c# but not I'm having an issue. When I do a Console.Write("something") it writes it to a new console window instead of from the command prompt where it was called. Basically, what I want is this: <from the command prompt>: c:\> something.exe hello everybody hi everybody! /// from something.cs: SomeMethodThatPrintsToCommandLineFromWhichIwasCalled("hi everybody") is this even possible ...Show All
SQL Server Error connecting to local SQL Server Express with SQL Server management Studio Express
I have SQL Server 2005 Express Edition installed on a Windows Server 2003 SP1 machine. I am trying to connect to the server on the local machine via shared memory with SQL Server Management Studio Express but I get the following error message: TITLE: Connect to Server ------------------------------ Cannot connect to SERVER\SQLEXPRESS. ------------------------------ ADDITIONAL INFORMATION: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.) (Microsoft ...Show All
Visual C++ ActiveX in WIN32 and Console
Greetings all, I'm in at an impass and hope someone on the forum can help point me in the correct direction. I am working with a control system that is writen in C/C++ and built on an OSI/Posix core. The main program body is a Console/Server application that expects few or no user events or inputs. We build with VC8 using Gmake ( from the cygwin suite ) and everything works well, the main application runs from console under Server2003 with no problems. We run in to an issue here, we have vendor supplied ActiveX controls that we would like to access from the control system. I dont know how, and neither do any of my vendors or other devlopers. Being a unix devloper for most of my life I assumed that we could instancate the control ...Show All
SQL Server need help from MSFT guys
Hi, I am creating a pie chart report from a cube . This report may contain unknown number of segments. Here is the thing; if more than 1 data slice is generated with a value less than 5% of the total, then a segment labelled 'other' will be generated, and data from all slices with value < 5% will be added to this 'Other' segment. Is it possible to implement this functionality in the report layout level with out writing a complex MDX query If this is not possible, can you give me a sample MDX query which implements similar issue(i.e. 'Other-ing' rule.) For your information, this feature can be easily implemented using a third pary software such as 'Dundas chart for Reporting Service'. However, my client don't want to buy this ...Show All
Visual C# Learning C#
Hi, I would like to ask anyone here for their advice on where I should start with C#. I have been programming for nearly a year now and dont know any other languages other than the VB family, such as vba, vb6 and vb.net. Since i have been programming with .net I have learned alot from the msdn library that comes with the installation of Visual Studio, and whenever looking at the example of code I still am always drawn to read the C# code. Something is just making me want to learn this language, However a good friend of mine is trying to alter my path by suggesting I learn C++. Learning C++ I would like to do, and also think I would benefit with the fact my friend knows the language. But may it not be a good path to learn C# then g ...Show All
Visual C# how to get serials of hard disk
i used this code to get hard disk serials: private void getSeriaHardDisk() { string lsSerial=""; ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_PhysicalMedia"); int i = 0; foreach(ManagementObject wmi_HD in searcher.Get()) { if (wmi_HD["SerialNumber"] == null) lsSerial = "None"; else lsSerial = wmi_HD["SerialNumber"].ToString().Trim(); ++i; } } this code is working fine in one system, iam using Dell System With Sata Hard disk. this is code is not fetching the serials. is this problem withe the sata architecture or the DEll System is blocking this. How can i ...Show All
SQL Server Page Restoring
In SQL Server 2005 Book on Line, it mentioned that you can restore a database by pages instead of to restore the whole database. But, it also says "Page restore is supported only for read/write filegroups." If this is true, then how about most of the database files are not designed as filegroup (or just primary filegroup only) Can they enjoy this convenience too Also, when you find a suspect page in suspect_pages table in msdb, how you find out in which log_backup file that contains this bad page Thanks, Charley Hi Chad and Kevin, Thanks for your reply. The first part of my question is quite clear now. The implied question behind the second part of my question is actually how p ...Show All
Visual C# connection string question
hi, I am trying to automate some reporting with excel and oledb and I am hitting a ssnag with my connections string when I save my excel file I do it like this: xlBook.SaveAs("C:\\Program Files\\Hawkeye Customs\\Ship Margin Reports\\Reports\\" + strFileName + ".xls", XlFileFormat.xlXMLSpreadsheet, 0, 0, false, false, XlSaveAsAccessMode.xlNoChange, 0, 0, 0, 0, 0); and my connection string looks like this (ported from my VB apps): MyConnection = new OleDbConnection( "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\Hawkeye Customs\\Ship Margin Reports\\Reports\\" + strFileName + ".xls;Extended Properties=\"Excel 8.0;HDR=No;IMEX=0\""); What I realized is th ...Show All
Microsoft ISV Community Center Forums Count and display in cell
Ok I have an Excel workbook that contains a schedule (51 worksheets total). Each cell has intials in it and if that person has taken a day off the cell is highlighted a certain color (yellow, rose, or red). What I need to do is have something that goes through and counts what intials have what color and then display in a cell the number. So: If cell contains "initials" and cell color is "color" Then count and display in "cell" Example: If cell contains "JJ" and cell color is "Yellow" Then count and display in "A2" I know it is possible to do this but I'm not sure how. Tiger Hello, Try the following code: You could u ...Show All
Software Development for Windows Vista How can i call a methode from a workflow with parameters?
Hello! I would like to call a method from within a workflow. I have defined a Methode in the Interface and I would like to pass a parameter, say some value defined in my xoml.cs file. To test this, I am using the base.WorkflowInstanceId Property. 1) do I have to define the Parameter Binding in the xoml file or in the xoml.cs How is the Syntax of Binding Properties to the CallExternalMethodActivity The definition of my call is now: <CallExternalMethodActivity x:Name="requestName" InterfaceType="{x:Type p4:IGetNameService,TypeName=Workflow.RuntimeServices.IGetNameService}" MethodName="RequestName" xmlns:p4="clr-namespace:Workflow.RuntimeServices;Assembly=Workflow.Library, Version=1.0.0.0, Culture=neut ...Show All
Visual C# Get remote computers host names
Hi! How can I get remote computers host names There are many different ways to get My Ip or Host Name for ex. : using Syste.Net; //... String MyCompHostName = Dns.GetHostName(); and thats all, but I cannot find good way to find out remote computers host names: the only one way I see: Its scan all IP Addresses in my Family Address (My work Group). Maybe exist more optimize way... Help me, pls. Thanks A Lot. You can possibly use the IPAddress .Broadcast property. with the code here: http://www.c-sharpcorner.com/network/ping.asp ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Share source code between projects
Hi, Is there a way to share source files between projects in GSE 1.0 We have now 2 projects for our game, 1 for pc, 1 for the 360, but when I add an existing pc-source file in the 360 project it makes a copy of it and doesn't use the original one. This makes it somewhat more troublesome to keep both projects up to date. Cheers, Maurice This is one of the not-so-good UI design decisions made by VS. You need to link to the source files, which is done by adding an existing file as usual but then when you select the file(s) in the file dialog, click the arrow on the "Add" button and change to "Add As Link". Also, you should check out the XNA FAQ sometime as this is covered in there. ...Show All
