eman1975's Q&A profile
Visual Basic Storing the Contents of a textbox control to a text file
I have a Form1 that has 4-controls textbox1 and tbox2 botton1 botton2 I want to enter text info on the textbox and send it to a textfile.txt file I am getting six declaration errors on fs and sw, Why ***************Here is my Code************************************************** Imports System Imports System.IO '\\ Create a Form2 add two buttons and two textboxes '\\ Name one button Save the other Recall ' Storing the Contents of a textbox control to a text file Public Class Form2 Dim sw As StreamWriter Dim fs As FileStream fs= new FileStream("c:\textdata.txt", Filemode.Create) sw= new StreamWriter (FS) Sw.write (TextBox1.text) Sw.write (TextBox2.text) Sw.close() fs.close() End Class Thanks Guys, Fernando Pen ...Show All
Smart Device Development Block phone call
hi all, i would like to write a program that have a function called "block phone call" on PPC phone. It mean this program can block a certain telephone number. Can anyone tell me how can i do this or a direction that i can starting. I think lineXXX function can do this but i don't know how i can begin. Do it has the messages like this: WM_LINE_INIT, WM_CALL_IS_GOING, WM_PHONE_IS_RINGING, ... thanks, Does it have the messages to notify an incoming call I know that there are several software can block a call but after a ring, it means that after a ring, this call is refused automatically by software. ...Show All
SQL Server Help creating a view
Good morning everyone, I'm new here and new to the subject I'm asking for help on. I'm used to building reports in access and having the SQL expression builder there to get counts and stuff, but I've inherited a SQL 2000 SE server and an access frontend application that I need to generate some reports with. I need to generate a report that will pull info from 4 different tables, and display the results as totals. I need to be able to have the results format into groupings by Phase as well as inventory type. So for instance I would like to have results returned for District 1 and then by Available, Sold, etc then District 2, -> Available, Sold etc. If it helps this is one view I use to show all Available lots: SELECT TOP 100 PERCENT db ...Show All
SQL Server Middle Search Support
Some of the databases that I inherited contain search that are based on finding a string anywhere within a last name such as: WHERE lastName like '%smith%' It is desired that each of these names be returned: Smith Smithson Nesmith What is presently done is that updates to the last name fields trigger that substrings of the last name be sent off into a substring table wtih retention of no 2-char substrings. For these three last names the following would be kept: (1) Smith, (2) mith, (3) ith and (4) th (1) Smithson, (2) mithson, (3) ithson, ..., (n) on (1) Nesmith, (2) esmith, (3) smith, ... (n) th The where now becomes WHERE lastNameSub like 'smith%' This seems to make the search routine by last name fast ...Show All
SQL Server how to fix report layout problems
When you use Report designer in the BI development studio, on the Preview tab, you can have a straight preview or a print layout preview. I suppose what you see in the print layout preview is what you get when you print the report or export the report to the other format. However, often you see everything looks perfect in a straight preview but does look right in the print layout preview . For example, you might get the following problems in the print layout preview, even if everything looks perfect in a straight preview. · Every even page is a blank page · Items that should be together on the same page are separated into different pages. For example, on the first page, I had a TextBox1 followed by Image1 then foll ...Show All
Visual Studio Express Editions Internet Time Update
The internal clock of my PC is very slow. I need very high precission time in my PC while I am running some time sensitive VBE applications. Can the PC time, the one that Now gives out, be updated with an Internet Timer Server, through VBE I know how to do this manually by going in to Date and Time Properties. I need it programmatically. I guess it is just a matter of knowing the protocol these Time servers use. Thanks, Antonio These time setting calibrations with clocks on the net have protocols which are pretty complex. They make requests about four time and look at round trip latencies and time averages. There is any clr code that specifically does ...Show All
SQL Server Can anyone explain this processing schedule
Hi, I have a fairly complicated cube which has: 74 Measure groups Each measure group contains 12 partitions = 888 partitions in my cube I have a parameterized XMLA processing script that processes 2 partitions in each measure group - i.e. 148 partitions. It does this inside a <Parallel></Parallel> element. When I executed the XMLA script I recorded the progress in Profiler. I saw that, prior to processing the 148 paritions, there was lots and lots of "Progress Report End" EventClass records with a message of: Finished processing the ' <partition name> ' partition There were actually 518 of these records so whatever it is doing, it is not doing it for every single partition. Note th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rotation help
I think I'm being dense today, but I can't figure this out for the life of me. I have a model that I want to rotate across the X and Y axis. My issue is that when I rotate across the Y axis, I always want the rotation to occur as if the axis was vertical in terms of world space. If I multiply by my X rotation first, obviously the Y axis moves with it, so rotating about the Y axis will rotate it about its transformed axis. If I multiply by my Y rotation first, the X axis moves with it, so my X rotation is now turned along with it. I basically want to rotate downward and then left/right independently from what the actual transformed axes become...or, rotate left/right and then downward independently. When I rotate about the X, it shoul ...Show All
Visual Studio 2008 (Pre-release) UDDI Sample Questions
1) Does the uddi sample work with only basicHttpBinding only Or can you use wsHttpBinding also 2) I noticed that UDDI related code is not coming from .net framework but appeared to have been generated with some internal schema or published uddi wsdl. Does this mean this code will look like this until WS-Discovery support is in place Thanks. You should be able to find it in "%PROGRAMFILES%\Reference Assemblies\Microsoft\UDDI\v2.1" I agree that this is not likely to be the first place that you're likely to look but let me know if you don't find it there. Andy Milligan ...Show All
SQL Server Asp.net session has expired
Hi I have designed reports using SQL Server Business Intelligence Development Studio tool (Sql Server reporting service). I have uploaded these reports to report manager. I am displaying list of reports in tree view control, in my application. I am viewing report in Report Viewer control as per the report selection in tree view control, in same page. I am getting Server Error in '/Application_name' Application or ASP.NET session has expired error frequently while switching between various reports. Kindly provide me solution . Regards Sagayaraj Rayappan Thanks for the information. I am resetting Report Path each time when we clicked on an item. How to keep the session alive myself . What is ...Show All
Visual C++ convert char array to a string
how can i convert a char array into a System::String^ i have tried some research and cannot find how i have tried not making a char array at all but that didnt work out thanks in advance Is this what you mean Here is an example for a native array: using namespace System; void main() { char *string1 = "hello1"; wchar_t *string2 = L"hello2"; String ^s1 = gcnew String(string1); String ^s2 = gcnew String(string2); Console::WriteLine(s1); Console::WriteLine(s2); } ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Wav cutting off
I'm having a problem playing WAVs. I followed the simple tutorial for playing a sound, and it often works flawlessly. However, for some wavs, the sound cuts off early at times, even when only playing once with no overlapping. I would paste in the code, but its the same as the tutorial. I'm wondering if there are certain caveats I need to know about. s You are right, that is what was probably happening. I was guessing it may have something to do with garbage collection since my Cue object was kept around. I thought it may be adding that Cue to the soundBank. Anyway, I used your simpler method suggested and it works like a champ. Thanx! *Jinx ...Show All
.NET Development XSLT Param from Querystring issue
Hey all, I want to view one record from my xml document. The Id for the record is passed through a querystring called "paramId". It is picked up and passed to the XML transform process like this: Dim parameters As XsltArgumentList = New XsltArgumentList parameters.AddParam( "paramId" , "" , Request.QueryString( "paramId" )) XsltProcessor1.TransformArgumentList = parameters From here I don't really know where to go. I've written this, but seem pretty far off: < xml version = " 1.0 " encoding = " utf-8 " > < xsl:stylesheet version = " 1.0 " xmlns:xsl = " http://www.w3.org/1999/XSL/Transform " > < xsl:outp ...Show All
SQL Server Error in SQL Server 2005 CLR Assembly
In the past we've days we've had an assembly that had worked previously which now fails with the error: Failed to open malformed assembly 'System.Data' with HRESULT 0x80070008. There have been no changes to the .NET framework at the server level, all other assemblies on the server continue to function and the assemly does work when deployed to another server. The assembly has been recreeated from scratch yet the error persisted. In another attempt to narrow down the cause we moved the system.data.dll to another server in an attempt to see if the particular DLL was the issue, however the other server had no issues. I'm assuming that the error we're getting has some cause other than with System.Data.dll.Does anyone have any ideas ...Show All
Visual Basic Why do some keyboard shortcuts not work.
I can only get some shortcuts to work. For instance, I cannot assign a shortcut without also assigning it ctrl, shift or alt. On the same note, only ctrl and alt work. When using shift it gives an error. How do I get around this. I also want to use shortcuts like: S instead of say Ctrl+S. Also, how do I assign the Esc key to a shortcut. Thank you. Troy L. I am making an image program. It does not involve typing for it's main use. So a shortcut of S would be appropriate. Also, what is the reason I cannot assign Shift+S or Shift+anything ...Show All
