Thrix's Q&A profile
Visual C# Decimal data type
Hi All, I just discovered that I cannot use + with a decimal. So I have a formula, ((decimalValue * -1) + 15.687 )* 2048; Which does not compile, error being, Operator '+' cannot be applied to operands of type decimal and double. Any suggestions on how to get the correct result from the above formula Thanks Jeff Hi, Skip the above question. I just change data type to a double and that worked for what I needed. Thanks Jeff ...Show All
Visual Basic Help !! WebBrowser Control
Hi, Please HELP I had created new form on existing project (CCM.proj) with new webbrowser control. After specify the url= http://www.msn.com in properties. the webbrowser fail to display with error. using new fresh project, Winform(New.proj), the webbrowser work well! i return back to existing project (CCM.proj) and add the working form from new.proj, it still fail to display the url specified I try to compare the two project, but it just too complex. IS there any setting that possible create the difference. Please HELP regards Kindly be informed that, i am using the Visual Studio 2005 .net ver 2.0 webbrowser control instead of the .net ver 1.0 axwebbrowser control. i ...Show All
Visual FoxPro System resolution
Hi. How can I find out what the system resolution is, and how can I change it via FoxPro Thanks If the form is too short, the correct solution is to group your sets of controls in some logical way and place them in different pages on a PageFrame control. If the process of filling the form is formalized in a set of steps (e.g. step #2 must be done after step #1 and not jump to it directly), then you could use a wizard which is nothing more than a PageFrame with no page tabs showing and you control the page change programmatically. ...Show All
Visual Studio Strikeout in Textbox
Is it possible to Strikeout text in a Table textbox ...Show All
Visual Basic Data vanishing during run time
When I enter data into a SQL database and save it, the data that I have just added vanishes, but when I close the applicaiton and re-open it, it's still there - is there any reason for this and any way to get it to stay It was mentioned to me that if i maybe refreshed the data( ) after the save - does anyone know the code for this, so i can give it a try Cheers ...Show All
Software Development for Windows Vista Vista Ultimate installation problems
I just installed Windows Vista Ultimate on my laptop. I have a Toshiba Satellite Intel Centrino with dual processor and 1G of ram. So nothing Vista should have too many problems with. What is my computer still level I have owned about 7 computers in my life. I can do pretty much everything but programming. I'm not a computer nerd, but I'm smarter than any of my friends when it comes to computers. I'm not trying to be technical here, only speaking in layman's language. The upgrade took about 2 hours. I installed it on top of Windows XP so I could keep all my files and settings. Everything seemed to go smooth. I did the Advisor before hand and deleted the programs that Vista said were not compatible. The advisor had no big issues. ...Show All
.NET Development Microsoft.Office.interop.word problems
I may having issues with the microsoft.office.interop.word. Dim someword As Microsoft.Office.Interop.Word.Application Dim somedoc As Microsoft.Office.Interop.Word.Document someword.Application.Activate() somedoc.Words.Application.Run("sorting_macro") The issue is that when I run it i get an error that says the "someword.app.activate" --- object reference not set to an instance of the object--- Another issue is that when i run it i can also get an error that says: microsoft.office.interop.word_document failed Does anyone know how to make vb.net run a macro in MS word 2k3 any help would be grand!!!!!!!! thanks in advance for the help! Try this: Imports Microsoft.Office.Interop Publ ...Show All
Visual Basic object refrence not set to an instance of an object?
in this is the following error occur can anyone solve this problem ObjWSheet.Cells("A" & cellCount) = file.Name For Each file In folder.GetFiles() Try ObjWSheet.Cells("A" & cellCount) = file.Name Catch exc As Exception MsgBox(exc.Message) End Try cellCount += 1 Next looks very much like ObjWSheet hasn't been declared, i.e. Is Nothing ...Show All
SharePoint Products and Technologies Variations and CurrentUICulture problem (MOSS 2007)
Hello, We use variations in order to support multiple languages in a site. We have en-US and nl-NL variations. Then we have page layouts with couple of <asp:Localize /> tags where we want to show texts loaded from resource files. We also have two resource files - MyRes.resx and MyRes.nl-NL.resx. When we are in nl-NL variation I see that <asp:Localize /> do not load correct resources for nl-NL, but instead use the default ones (from MyRes.resx). When I check Thread.CurrentThread.CurrentCulture, it returns nl-NL. On the other hand, Thread.CurrentThread.CurrentUICulture returns en-US, which is not quite correct. I use MOSS 2007 RTM with no language packs installed. So, my question is - is it normal to have CurrentCulture different ...Show All
Visual C# Socket.Poll
hi, i am making a program with sockets but i cant know when the client disconnects from the server, im trying this: public bool IsAlive() { return clientSocket.Poll(1000, SelectMode.SelectRead); } //This is on a thread so it dont freeze my app //if IsAlive returns false then i fire an event so i can notify the client went offline public void PollConnection() { while (true) { if (!IsAlive()) { if (ClientOffline != null) ClientOffline(this, new ConnectionEventArgs(this)); break; } } } my problem is that : return clientSocket.Poll(1000, SelectMode.SelectRead); never returns false , even if i close the client . mig16 ...Show All
Software Development for Windows Vista User Track Point
Dear all, In order to retrieve the property from an persistence workflow instance, I tried to use the User Track Point feature. I went through the sample provided in the SDK document, but still not understand the logic, the code is as below: ' Adding a user track point to the tracking profile Dim utp As UserTrackPoint = New UserTrackPoint() ' Adding a user location to the track point Dim ul As UserTrackingLocation = New UserTrackingLocation(GetType(String), GetType(CodeActivity)) ul.MatchDerivedActivityTypes = True utp.MatchingLocations.Add(ul) profile.UserTrackPoints.Add(utp) At the sample, the track point linked to the TrackingDatas codeActivity, but from the code above, I don' ...Show All
SQL Server Creating Pull Subscription using T-SQL
Hello, i am trying to create a pull subscription to my publication using T-SQL. The pull subcription is created successfully but the problem is that data is not merged correctly. I mean when i run the agent ( despite of having data in subscription / publication ) the data is not merged and i get "No Data Needed To Be Merged" message. i run following sp in this sequence: At Subscrber: 1 - sp_addmergepullsubscription 2 - sp_addmergepullsubscription_agent At Publisher: 1 - sp_addmergesubscription Again at subscriber : Transaction for adding merge agent job. Regards, i am using MSDE 2000 With SP4. Microsoft SQL Server 2000 - 8.00.2039 (Intel X86) May 3 2005 23:18:38 Copyright (c) 1988-2003 Microsoft ...Show All
.NET Development Error in HttpWebRequest when using authentication in proxy environment
Hi, I'm experiencing problems when doing webrequests that requires authentication with the HttpWebRequest component in an environment with a cache proxy (squid). The HttpWebRequest is configured with credentials before the request is sent and keep-alive is enabled. What happens is that the webserver responds with a 401 with Content-Length 236 to the first request (the one with no authorization headers). The HttpWebRequest component sends out a new request with the authorization headers before the IP packet with the content of the 401 is received. The content of the 401 is therefore tried parsed as the header of the response to the authenticated request. This causes a protocol violation and a webexception is thrown. Cap from ethereal: GET ...Show All
Visual C# database project
Hello, [I posted this to VS general, but it was deleted] I want to ask, whether is possible (planned) to disable new table wizard when added new query to database project. I work with database with alot (~3000) tables and this wizard is very slow. Moreover I exactly know what query I want, don't need for any wizard. Thanks in advance, Martin AFAIK it can not be disabled. There is only one option in VS2008 for disabling such a dialog but it doesn't apply to queries. There also doesn't seem to be any options to limit how long you'll wait for table enumeration to occur. However if you already know the query that you want to generate then you don't need to use the Add Query anyway. Instead select Add SQL Script and th ...Show All
SQL Server SQL Server Setup Unicode
I have data feeds from multiple geographic locations including Switzerland, Germany and US. I would like to store the data in SQL Server 2005 but am confused whether I should store data in columns of type NCHAR, NVARCHAR, NTEXT. If I choose Unicode data types, should I also setup a different collation setting for SQL Server. Our Windows default langauge is US English. Thanks The only way to store unicode data is in nchar, nvarchar(max). -(Do not use ntext -ntext is on the 'official' deprecation list.) Collation effects sorting. You can set different collations at the column level where necessary. ...Show All
