Akhil Jindal Verizon's Q&A profile
Smart Device Development How to open/close GPRS connect?
Hi there, I would like to write a program for data socket with GPRS connection. My smartphone, Dopod 585, is as the client and PC is the TCPserver. To deliver string from smartphone and show it on PC is my current task. However, I can do that via USB connection but failed in GPRS. It seems to mean that both programs in client and server are correct but something wrong in GPRS connection. Maybe I need to write a program in C# to start GPRS connection. However I could not get any information about GPRS connection in the MSDN for C#. Would you please do me a favor to give a example program or tell me what function or structure could accomplish ...Show All
Windows Forms Prevent Child form from leaving Parent form bounds
I have a couple of child forms in a MDI parent (main form) . I wnat these child windows to be movable. But I want to prevent the user from moving them to outside the bounds of the parent. When I try to move the child outside the bounds of the parent, scrollbars appear in the main form.Can I stop from this to happen I thought of disabling the Autoscroll property (setting it to false) but that did not work. I think it can be done by Move event handler.... but is there an easier way thanks I don't know. I haven't used C++ in over 3 yeras, and never C++/CLI. foreach simply enumerates and casts all the el ...Show All
SQL Server TargetServerURL for named instance?
Hi There I am running the latest Sql Server 2005 CTP with reports server installed. I am following thorugh the Reporting services tutorial on 2005 BOL. I am at the publishing report step: The tutorial stipulates that under the project properties the url is as follows http://servername/reportserver or http://local/reportserver for TargetServerURL. The problem is that i am running sql server 2000 and 2005 on my machine. So the named instance for 2005 is called SEANLO\SQLSERVER2005 and the reportserver database is named ReportServer$SqlServer2005 in that instance. Because 2000 is my default instance. As a result i am having difficulty add ...Show All
Visual Basic 1 context menu for several controls
I am tring to use the same context menu for several textboxes on my form.(cut, paste, undo etc) How can I tell which textbox was active when the menu was clicked Do I have to use a seperate menu for each textbox This is a bit of an old-school method, I know, and I'll probably get bagged out for it, but you could create a public Control Object and populate it with a reference to the specific text box in it's MouseDown event. Here's an example of what I mean: Public MyCont As Control Private Sub TextBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TextBox1.Mou ...Show All
Visual Studio Team System Install project ignored in Team build
I create a team build type and add a solution into it. There is a install project (build msi file) in this solution, but this project is never build when I execute the team build. How can I make that project being built Thanks! Hi Lei Team Build does not support building msi out of the box. Please refer to the following blog post to know workarounds. http://blogs.msdn.com/anutthara/archive/2006/01/05/509606.aspx http://forums.microsoft.com/MSDN/ShowPost.aspx postid=122346&siteid=1 Thanks -Khushboo ...Show All
Visual Basic Loading new forms
Hey everybody, I'm sure this is one of the simplest things to program, but I can't figure it out. I have a form with a couple checkboxes and a button on it. When I click the button, I want a new form to pop up, and have its options be related to the ones picked by the check boxes on the first form. OR, how would you design several different forms, and have several buttons on the first form that would load one of the other forms you have designed. For example, the check boxes could be things you can carry such as paper, pencils, and a backpack. If you check the backpack and paper checkboxes and click the button, then the new form might ...Show All
Visual Studio Express Editions i think it is a great programm
Heey, i would know wath evrybody thinks of visual basic 2005 express edition. i think it is a great programm. fynnaly i can make my own programmas. Enter html mode and add this <img style="width:38px;height:39px" height=87 src="images/emoticons/computer.gif" width=152> <img height=293 src="images/emoticons/smile_teeth.gif" width=451> Should probably not encourage it ...Show All
Visual Basic Read delimited text file
Hi, Is there a way that I can read from certain lines, say, from line 3000 to line 3500 rather than reading from the beginning of the file or by using ReadToEnd Thanks. There is no way to find out where a line is without reading it. So, any API that could have been exposed to jump to a line was just going to read up to it anyhow. ...Show All
Visual Studio Express Editions Create forms in code but can't 'paint' them
I can create forms in code OK but if I draw graphics on them they don't refresh automatically. If they are resized or another form is displayed over them then the graphics are wiped out. If I could put the code in the form's paint method I know it would refresh automatically but I can't access the paint method because the sub form_paint() doesn't exist. Is there some other way of making a form created in code repaint Thanks for the suggestion but I would have to call the invalidate method wouldn't I It won't make the redraw automatic as it is when the drawing is ...Show All
Windows Forms Filtering a ComboBoxColumn based on another ComboBoxColumn Selection.
Hi guys, I m trying to Filter a Child ComboBox using another combobox value as filter, it is kinda working but i get an exception when i do the following: If i select a State (that is my first combobox) then select a City (on the second) it works fine, but if i change the value of the state to a value that doesnt have any cities, i keep getting the following exception poping up: System.ArgumentException: DataGridViewComboBoxCell Value is not valid Here is my code, anyone could help me fixing this My Objects: private DataGridViewComboBoxCell dgcb; private DataView dv; private DataGridViewComboBoxColumn estado; private DataGridVie ...Show All
SQL Server LIMIT Clause
It seems current version of SQL Server doesn't support LIMIT clause in SELECT statement. Will future version of SQL Server support it Thx. Maximilian, I don't know if the keyword LIMIT will be supported, but even in the current version, you should be able to get the same functionality with the enhanced TOP syntax and/or the new ranking functions. For example, to delete just 10 rows: delete top (10) from ... and to select rows 50-59 in some order: with T as ( select row_number() over (order by someColumn) as rn, * from someTable ) select * from T where rn >= 50 and rn It seems current version of SQ ...Show All
.NET Development OPC Automation
Hello, I'want to create an OPC Client for any OPC Server in VB.NET. I use Visual Basic 2005 Express Edition. So, I add a reference to my OPCDAAUTO.dll. And at this time, there is just this part of Code : Public Class Form1 Dim WithEvents g_OpcServer As OPCAutomation.OPCServer Dim WithEvents g_OpcGroups As OPCAutomation.OPCGroups Private Sub Form1_Load( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles MyBase .Load g_OpcServer = New OPCAutomation.OPCServer g_OpcServer.Connect("KEPware.KEPServerEx.V4") g_OpcGroups = g_OpcServer.OPCGroups.Add("Grp") End ...Show All
Software Development for Windows Vista Breakpoints not working
I'm running the February CTP on WinXP SP2 and Visual Studio Pro. I'm running my development environment inside of a Virtual PC VM. The problem that I'm having is that I can create workflows fine, but breakpoints set up on a workflow activity do not work. I see the hollow circle with the warning when running in debug mode. Breakpoints set on the code beside code such as a CodeActivity handler work. I've looked at the other posts on the forum about the same problem, but the solution doesn't appear to be valid for my issue. I'm not running workflows from another library. I've built a console application and have the workflows in the conso ...Show All
Windows Forms My latest wishes
This is my latest list of .NET framework enhancement wishes. Some of these problems have workarounds, but are kludges that I'd rather be able to remove from my code. The issues dealing with GDI+ performance and bugs are most critical to me. 1)Never use private, internal, or protected in framework classes, use virtual wherever possible. My life would  ...Show All
.NET Development monitor file on network computer
Hi, I want to monitor a file on other PC on network to see if its growing in size and other things. My question is how do I log on to that computer on network using C#. Also, if that computer on network requires authentication, how do I supply username and password to that computer from C# code Thanks, You can use the filewebrequest in the system.Net class. The creentials property allows you to pass in the necesssary credentials. there is sample code is msdn that might help you to start with ...Show All
