Amolw's Q&A profile
Visual C# text into another window
Hello again, I would like to know how I can put text into another window when I press a button, for example, if there is a text box in IE, and I press the button in my program, how can I get it to "transfer" the text from the textbox in my program to a specific textbox in IE I heard that I need to get the "window handle" somehow, but I dont know much about that. Thanks Below URL might give you an idea. http://msdn.microsoft.com/library/default.asp url=/msdnmag/issues/0400/aaccess/toc.asp but the example is in C++. So probably you might need to do some PInvoke stuff. ...Show All
Windows Forms Finding the handle of a custom control
Currently I am able to get the handle of a few different controls in a window including command buttons and text boxes, but when i try to get the handle of a custom control it can't find it. I even looped through every handle from that window and it never hit any with the class name equal to the custom control. Is there any reason why I can't seem to find the handle on my custom control. Any input is appreciated. Thanks, Dan It should find it in the same way that it finds any other control. Do you have the code you are using in order to run through all of the controls ...Show All
Visual Studio Parameter used to create a CR report
Hi All, I am using a windows form to display a CR viewer control. I then programmatically set the reportsource to a report I have defined. The report has a parameter that I want to use like a where clause in the selection of the data. For some reason I think the parameter has no effect on the report, meaning it doesn’t matter what I value I give it I get a complete listing of data in the report. Now I am a newb when it comes to CR.Net so it doesn’t surprise me this doesn’t work. I guess what I don’t understand is how do I display only a subset of the data in my database. What I want to be able to do is something like a SQL where ...Show All
Visual Studio Express Editions Visual Basic 2005 Database
I'm trying to associate a picture to database table, can this be done Hi, Do you mean to add a picture into a datatable If so, you can take a look at Adam's post. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=146839&SiteID=1 . Best regards, ...Show All
Smart Device Development Calculation Problem in TabControl - Autoscroll
Hi, I tried to use the tabcontrol with the Autoscroll featur on a tabpage. It does "strange things". To reproduce: New PPC 2003 App Add a panel with height 1 and dock bottom. Add a tab control with dock fill Add a label to the first tab page very colse to the bottom. Set Autoscroll to true on the first tabpage. Fill this label with text so that it almost fills the width of the tabpage. Run the program to ensure no scrolling occures. Next add a handler to the tabcontrol: private void tabControl1_SelectedIndexChanged( object sender, EventArgs e) { if (tabControl1.SelectedIndex == 0) { panel1.Height = 1; } else { panel1.Height = 30 ...Show All
Windows Forms Having Problem to display form with UTF-8 charactors
It worked all fine on my laptop computer with English OS XP, but after moving the project folder to my desktop computer also with English OS XP, VS 2005 no longer displays the forms with UTF-8 charactors in recognisable Chinese but some gibberish strings... wondering what I haven't done to make it right. Any advise please Hmm... are Chinese fonts installed on the laptop Probably the answer is "yes" but I don't have any other idea ...Show All
Visual C# Creating Partial Class in VS2005
Hi, I am new to VS. How can i create partial class in VS2005 do i first have to create the class and specify it as partial regards, rnv Yeah, just create a class and put the keyword "partial" in front of the keyword "class". That's all there is to it. ...Show All
Visual C# Calendar
I want to develop a calendar of the current month. So which class can i use to create this. Now there are two senero, one is that if the user did not supply the month and year as argument, then our program print the current month calendar of the current year, however if the user supplies the month and year, then we have to print out the user specified month calendar of the given year. How i can do this, explain the steps that i have to do in order to develop this application. Thanks you can also use the DateTime Class provided, with the help of this you can get the current month and year if it is not prov ...Show All
Visual Studio Tools for Office What versions of Office 12 will support VSTO?
As I understand things, VSTO is currently only supported by Office 2003 Professional (or the Word/Excel standalone editions). Office 2003 Standard and Small Biz editions do not support VSTO. Does anyone know if this will still be the case with Office 12 Or will all Office 12 editions support VSTO I ask b/c we are a small ISV that would love to do component based development using VSTO, but are afraid we will alienate a large percentage of our potential user base if VSTO continues to be unsupported on non-Professional versions of Office. Anyone have any info Hi This has not been determined yet. W ...Show All
Visual FoxPro Report Toolbar
Hello Experts A small problem. The main form of my application is set as 'Top Level form'. When I set the ReportBehaviour to 90, the preview toolbar appears but am not able to access it. Whereas the ReportBehaviour = 80 creates its own preview container hence no problem. Any suggestions. Thanks, Jitendra Shahani This is a known bug in the VFP ReportPreview.app. The only workaround that I know of that doesn't entail fixing the code in the ReportPreview.pjx (included in XSource) is to issue your REPORT FORM command with the NOWAIT clause. ...Show All
Windows Forms trivial combobox problem
Hello, I have 2 tables. Clients [FirstName, LastName, ..., TownID, ...] and Towns [TownID, TownName, State, Postcode]. In the Clients form, i want to have a combo box that lists all [TownName + State + Postcode] from Towns table and which is also bound to TownID of Clients table. Thanks Thanks Joe, It works now! Here is the code: &nbs ...Show All
Visual C++ cannot convert from 'float (*)[3]' to 'float *[3]'
I'm having an issue with Visual C++ .NET 2003. This compiled and worked fine in C++ 6.0. In my include file I have: typedef struct Data { float (*cvec)[3], ... } Data; Data Store; In my cpp file I have: int num; Store.cvec = new float[num][3]; where num is determined from a file. The error I'm getting is: View.cpp(847) : error C2440: '=' : cannot convert from 'float (*)[3]' to 'float *[3]' There are no conversions to array types, although there are conversions to references or pointers to arrays How do I get this to compile In my experience, this should work. By the way, there is an example in t ...Show All
.NET Development ...and still cannot see the server from Visual Studio
I've got both SQL 2000 and SQL Excess, er, Express on my PC doing C# Pro development. If I try to Add Connection to get a data source, I can select an Express database MDF file, and operate on the data OK, but cannot select the Express server - it does NOT appear in the server list. I added the server SQLSERVER.EXE to the Windows firewall 'Exceptions' list, along with Vis Studio - no change. I CAN select the SQL 2000 server OK. I can get into and use the Express Management tool OK. Properties for the Express server are Network connection (versus Local Service and Local System, both of which don't work), network connections a ...Show All
Visual Studio List All Available Snapshots of a Report in Report Viewer
Dear Anyone, Is it possible to list all available snapshots of a particular report using report viewer We're looking for the same feature of report manager when a use clicks on the history tab of a report. Thanks, Joseph The report viewer itself does not expose this information via its API. But you can connect to the report server management endpoint directly to get this information. The method you are looking for is ListReportHistory. ...Show All
Visual C# add picture to application icon
Hi guys! I want to add a picture to my application icon. How should I do that Thanks in advance, Aldo. You can right click on the solution and in the Application tab set the icon for the application. Hope this helps ...Show All
