The-Traveler's Q&A profile
Windows Forms Adding multiple controls at runtime
Hi all, i am new in visual basic, so any help would be appreciated. I want to create a form where user could input a number in a textbox and after clicking on a button, there would be adde on the form as many textboxes as user has filled in the original text box. Additionaly, i would like these new controls to have the same name with a counter at the end, i.e., first textbox name= Criteria1, second textbox name= Criteria2 etc. i tried the For...Next, Do While/Until and stuff like that, but i haven't manage to create anything more than one and only one control at runtime. I would also be interrested in how could add new controls on form every time a button is clicked. Trying the following code, Button1 Click procedure ...Show All
Visual C++ How to trap all exceptions?
Due to bugs in my code, users experience crashes. When this happens, they get a window saying "<MyApp> has encountered an error and must close", and offers to send a report to MS. I want to have my pgm get control when one of these errors (such as an access violation) occurs, so I can create and store my own report. How can I do this I tried _set_se_translator (complied with /EHa), but this did not work, at least when I run the pgm in the debugger. If I run the pgm without the debugger, I get a JIT debugger dialog. As I said, you can use a vectored exception handler on Windows XP and up systems although that's kind of a hacky way of doing things. At least it is not a paradigm most ...Show All
Visual Studio Express Editions using button to build/execute AccessDB query, return data to datagrid?
I'm using VB Express and have an Access 2003 db on a Dell Dimension 3000 using Windows XP with 512 MB RAM. I'm trying to set up a windows form application (form1) that will allow the user to choose a particular sales agent (combobox1, populated by a query that fetches all lastName and AgtCode from db named production, table named agents) and a specific week (combobox2, using a query of production.time to populate it with DISTINCT week). Once the user has chosen AgtCode and week, they can click on a button that will execute a query built around their selections to return all sales data for the selected agent and time period (querying production.salesdata) into a datagrid at the bottom of the windows form. However, I have no idea h ...Show All
.NET Development Posting with Cookies..
Hello, How can I make a function to login to a forum with cookies, and then post on it I've tried everything Thanks in advance. Hi, this blog post has a nice overview of how to use cookies: http://petesbloggerama.blogspot.com/2006/12/http-referer-spoofing-cookies-user.html Mark. ...Show All
.NET Development Working with GSM/GPRS-modem
Hi all ! I have GSM/GPRS-modem (Siemens MC35i) which driver is installed on Windows XP. When I`m trying to request for signal strength of this modem (.Net 2.0) it doesn`t response to my program anything. If modem driver not installed in Windows then It`s all ok. I can do anything with this modem. SerialPort modem = new SerialPort("COM1"); modem.Open(); modem.Write("AT\r"); // Status request Thread.Sleep(200); string answer = modem.ReadExisting(); .... Driver cannot be uninstalled. But I need to check is modem OK and signal strength of my GSM-network. How I can do it You probably need to set the baudrate and turn on the DTR and RTS handshake signals. Before you tr ...Show All
SQL Server How to list all filegroups for a specific database?
Hi, all here, Would please any expert here give me any guidance for how to list all filegroups for a specific database within SQL Server 2005 Thanks a lot in advance for that. With best regards, Yours sincerely, Within the database use the following command: SELECT * FROM sys.filegroups HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Internet Explorer Development Sessions in IE7
Hi I am pulling my hair out over this problem, and am getting to the stage where I'm gonna scream. All these pages work perfectly on IE6, Firefox, Netscape etc, but I have come across a problem when testing them on IE7. Here's the problem: I have a web based system where a user logs into the site. Upon signing in, a number of PHP $_SESSION variables get populated with data, so that the subsequent pages know that he is allowed to visit them, and who he is. One of these variables is: $_SESSION['username'] At the top of all subsequent pages, the php script reads: < php session_start(); if (!isset($_SESSION['username'])) { header("Location:unauthorised.php"); exit; } > This effectively checks to see if the user is lo ...Show All
Visual Studio 2008 (Pre-release) WPF/.Net Framework 3.0 NavigationService and Proxy Authentication
Hi there In WPF/.Net Framework 3.0, how do I get the NavigationService.Navigate( Uri ) method to use the client's web proxy settings The client is required to go through the proxy for the Uri in question and, in Internet Explorer, the settings are all configured correctly. Also, I have tried it, but, the following machine.config entry does not make a jot of difference. < system.net > < defaultProxy enabled = " true " useDefaultCredentials = " true " /> </ system.net > I cannot see any properties/methods on the NavigationService class that would allow the proxy settings to be programmatically set. Thanks in advance for your help. Mike ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Infinite projection matrix
Hey guys. I've the last couple of hours tried to implement an infinite projection matrix without succes. So I took a step back to see if I could even make some sense of the "normal" perspective projection matrix used by XNA. Normally I used the CreatePerspectiveFieldOfView() method to create the matrix. Here is what I've tried so far. What is XNA left-handed or right This code works but the view aspect is fu**ed up. Anyone who can clearify or better show how it's in XNA The infinite matrix that is. float Q = drawParameters.Far / (drawParameters.Near - drawParameters.Far); float yScale = 1 / ( float ) Math .Tan((drawParameters.CameraFov) / 2.0f); float xScale = drawParameters.ViewAspectRatio * yScale; infinite.M11 = xS ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Deplacement of sprite, round to int problem...
Hello This problem make my unit deplacement strange :) i have located the problem, it is cos and sin value. Example : On the X, X = position + speed * cos but if cos < 0.5, it won't move... so it will wait cos > 0.5... so the mouvment will be not realy good... so Do i must save last cos and add it example : double lastcos=0; if cos < 0.5 lastcos += cos; if lascos > 0.5{ lastcos = 0 cos = 0.6 } It may be work (i don't test it) but is there an other method to do this because if i have 150 unit in mouvment fps will be smaller !!! Thank you pitil wrote: It may be work (i don't test it) but is there an other method to do this Why not test it and tell us pitil wrote: because if i have 150 unit in mouvm ...Show All
Visual Studio Setting a watch in visual c++ 2005 express
Hello. I am having trouble figuring out how to set a watch using visual c++ 2005 express. Any help would be greatly appreciated, Jackson I guess I'll answer my own question since no one seems to be coming near this one. As near as I can tell, you _can't_ set a watch in VC++ 2005 express. Does anyone read this forum This should have been an easy question to answer ;). ...Show All
Windows Live Developer Forums 3d polygons???
[sorry if this is a dumb question...i'm new to virtual earth] can you create 3d polygons if so, what object(s) do you use it looks like the 3d buildings in the "cities" demos are just such beasts, but I haven't figured out how to create one also, can you specify an altitude for pushpins THANXS! amb Not a dumb question. But I have no happy answer for you. There is no z axis or altitude properties anywhere, i beleive everything is rendered as if it is on the ground. There are rumors that we may get access to create 3D objects in the near future but nothing is confirmed. John. ...Show All
SQL Server Role-playing Time dimension Messed Up
I have many role-playing time dimensions that are related to different fact tables. I've also built out some calculations that are based on specific members of these time dimensions. Whenever I put the two calculations for the different fact tables on the same report, the results get messed up because the results are being limited by the different time dimensions. Here's a quick overview of what I've got defined: - "Daily Usage Dates" (role playing time dimension for f_user_daily_usage fact table). Is based on the dates table in SQL. - "Monthly Dates" (role playing time dimension for f_account_monthly_revenue fact table). Is based on the same dates table in SQL. - "Accounts" dimension which ...Show All
Windows Live Developer Forums Robot Invaders Contest Winners
It's time to annouce the winners for the Robot Invaders contest. The contest ran from May 15th to September 15th and in the end 53 Messenger bots were accepted as valid entries in the contest ( per the how to compete guidelines ). Each entry to the contest was judge by three judges separately using the Judging Criteria outlined on the How to Compete page and then the judges scores were averaged. There were a lot of great robot's submitted but here's the winners: Title Prize LiveBot Grand Mother Nature 1st Spleak 2nd Mobile Record bot 2nd Virtual Secretary 2nd Dr Phile Knowledge 2nd Comtec Travel Bot 2nd Search Bunny 3rd ...Show All
.NET Development Com Visibility in VS2003
Hi guys I have a web application developed in Vb.Net under VS2003. Now, a certain vendor requires us to build an interface dll that is "COM Visible". Since VS2003 has no option available in Project Properties to do this, how do I sort this out Sadly it took me considerable time and effort to realise that a dll developed likewise in VS2005 cannot be made to work with VS2003 ! Please help me with your suggestions/solutions. Many thanks Suhaib Thanks Andrew You've brought in a ray of hope Did you mean < Assembly : ComVisible( True )> btw Many thanks Suhaib ...Show All
