fatmanis's Q&A profile
Visual Basic Mutiple solutions with both project and file references to the same assembly causing compiler errors
We have a very large application consisting of more than 20 VB projects developed in VS.NET 2003. The current application is using project references for everything in one large solution. However this is getting unwieldy as opening the solution uses up most of the system resources. Once you debug and step into code the problem becomes even worse and is practically unusable. This application is going to become larger with time and we would like to move to a multiple solution model to help alleviate this problem but are running into assembly reference issues. The problem occurs when trying to reference an assembly by both project and file in the same solution. We have a small solution that builds a shared library let's call CommonLibrary1 ...Show All
SQL Server Need Help on this SQL Statement
Hi All, sqlLstProds="Select * From PRODUCT_DEF "&_ "WHERE productID IN(Select productID From PRODUCT_DEF WHERE (IDProductCriteria = 5) AND ([Value] = '"&getSession("ModelID")&"')) "&_ " Order By IDProduct, IDProductCriteria" I have the above SQL Code in an ASP page. This queries the Product_Def table, however there is also a table called Product_sType, the primary key in that table is productID which corresponds to productID ub the Product_Def table. I need to add to the query a where clause, where active = 1 active 0 is obviously discontinued products, how would I do this So basically, it's somewhat of a join of some sort, like select * from Produc ...Show All
Windows Forms formating text
hi i have some lines of text for printing i want to print the lines with the function drawtext(........, RectangleF) in order the line to be wrapped if the size is bigger then the Rectangle width. Is any way to know in how many pieces will be splitted every line in order to know how size will occupays vertically so i can draw the next line below The code will need to calculate that with the current font size and also take into account the character spacing (kerning) within each letter to figure out if it goes against the current bounds of your area. Sorry no quick answer... ...Show All
Visual Studio SKU011.CAB solution
Go into Registry Editor (Start, Run, "regedit"). Go to HKEY_LOCAL_MACHINE, Software, Microsoft, Office, 11.0, Delivery. There should be only 1 directory under Delivery, which is your DownloadCode (mine was 90000409-6000-11D3-8CFE-0150048383C9). Select that directory. On the right side of the screen, right-click on CDCache. Change the value to 0. honestly works with out a hitch. I kept getting this problem everytime I tried to use registry mechanic...i got a box signing me into office 2003...and then couldnt find file sku11.cab, took your advice and wow it works...thanks a lot! ...Show All
Visual Studio Team System When I build I get this error...
When I build I get this error... TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 10/27/2006 7:45:51 PM Machine: BIEL Application Domain: TFSBuildService.exe Assembly: Microsoft.TeamFoundation.Build.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727 Process Details: Process Name: TFSBuildService Process Id: 6828 Thread Id: 7024 Account name: ABCAAC\services Detailed Message: Unable to start build Exception Message: This access control list is not in canonical form and therefore cannot be modified. (type InvalidOperationExc ...Show All
Visual Studio Team System How to prevent specific group to create specific work items
Hello How can I deny some users to create specific work items For example: I want to allow Developers group to create Work Items Bugs but I do not want them to create Tasks. Where can I limit this Thank you. You can edit the specific workitem type and add "for" and "not" rules in Transistion from "" to "Active" (or initial state). This would prevent specified users from creating the workitems. Note that they will not be prevented from opening new workitem form, but they'll get error during save - so those users need to be notified of this limitation to avoid frustration during save. You can find the transistions element in wit-xml an ...Show All
Windows Forms getting media files from a winform
I am designing a winform client that should get around 30 media files (mp3, mp4 etc) in the size of 10 mega. every X minutes the client will check for updates, and if it finds any it should download the new media files from the server. what is the most efficient/fast way of transferring those file to the client 1. ftp 2. binary format with Windows Communication Foundation (and I can notify the client about changes so no need to check for updates) any other options or considerations (security ) thanks for the quick reply, It's my network and my server so i guess i can control the firewall settings. The server is a web server, not custom application. what is the performance and security diferences ...Show All
SQL Server Select Data based on Certain Time period
Hello all, I am using SQL Server in a project where I want to fetch the records that were inserted after a time specified in my query. Suppose 10 records were inserted at 10:00 AM(morning) and 5 were inserted at 10:15 AM( 15 minutes later). I am running a query at 10:20 AM( 5 minutes after the second transaction). I need this query to be such that it selects the records inserted 10 minutes before. So it will show only the records inserted at and after 10:10 AM and willl not show those inserted at 10:00 AM. Please help me in making such a query. I am trying and I think that some Date & Time functions will help but still not able to achieve it. Thanks in advance Hi, SELECT * FROM SOMETable WHERE SomeDateColumn >= ...Show All
Visual Studio Express Editions Problem with absolute positioning controls on Masterpages?
OK -- I'm a newbie to VWB EE so please forgive if this is a known prob, but I've been just getting into creating web forms and using masterpages and already come across a problem. When I layout my form in design mode and position my controls absolutely they look absolutely fine. :P But when I display them in the browser in "run time" they are shifted over to the left. I think this is because my master page has a left-hand nav area (via a table) and the absolute positioning somehow doesn't take that into consideration. It is really more of an "absolute within the contentholder" as opposed to an "absolute within the page". What am I doing wrong Should I be looking at this differently when using masterpages ...Show All
Visual C# converting String to int
I'am trying to build a console application that reads an input from the user and converts all numbers in the string to integers. I have found a way to check if current charcter in a string is a number or not. But if for example the input is 9 and I do a Convert.ToInt32 the outcome is 57. So I can't use that number because ofcorce I want to be using 9 for my program and not 57. is there anyway to do this so I get the right number when converting from String to Int ...Show All
Windows Forms datagriview cell
hi, is there a way to get rid of dotted rect of the selected cell in a datagridview ( small number of rows, unbound )... i can't find a solution ( in vb6 was a propertypage option) ... sugestion thanks (Moderator: Post moved to this forum for better responses.) hi, bhanu with your direction i was able to find what i wanted and more ... in the help provided by vb 2005 express, a very usefull turn. thanks, you helped. adrian for those who are interested ( no fans for focus rectangle in selected cells ) the very simple solution ( i hope ) : Private Sub datagridview1_RowPrePaint( ByVal sender As Object , ByVal e As System.Windows.Forms.DataGridViewRowPrePaintEventArgs) Handle ...Show All
Visual C++ unresolved link when using template class
Really new to C++ so please be gentle with me on this one. When I try to compile the following code, I get 4 unresolved link errors. Note that I have three files in my project, "Sample.h", "Sample.cpp", and "Main.cpp". //Sample.h template <class t> class Sample { public: Sample() ; ~Sample() ; } ; // Sample.cpp #include "Sample.h" template <class t> Sample<t>::Sample() { } template <class t> Sample<t>::~Sample() { } //Main.cpp #include "Sample.h" void main() { Sample<int> Sampleint; Sample<float> Samplefloat; } An example error is as f ...Show All
.NET Development Windows Service Unexpectedly Terminates
I have a Windows Service that uses asynchronous socket io to listen for requests from VB6 clients, it was originally written in VB.NET 1.1. When I upgraded to .NET 2.0 it kept terminating unexpectedly and I tracked this down to the breaking changes introduced in .NET 2.0 regarding unhandled exceptions on threadpool threads. I now have improved exception handling on threadpool threads and an event handler on AppDomain.CurrentDomain.UnhandledException just to log anything that does get through but my service still unexpectedly terminates sometimes without calling this event handler. The only thing in the event log is an entry by the .NET Runtime 2.0 Error Reporting which I've included below. I'm guessing from this info that it's a socket err ...Show All
Windows Search Technologies Missing shortcuts
I used shortcut @clear to clear out only my own desktop search shortcuts. Unfortunately it also seemed to have cleared the standard deskbar shortcuts like help, syntax, !word, !calc and !outlook. Is there a way to get the standard shortcuts back (w/o re-install) (I know my own shortcuts used to reside in C:\Documents and Settings\myname\Application Data\Windows Desktop Search\WindowsDesktopShortcuts.ini) I'm using version 02.06.5000.5378. Thanks in advance. Hello Moorpipe, You can retrieve the standard shortcuts by creating a .ini file in C:\Documents and Settings\yourname\Application Data\Windows Desktop Search The file will need to be named WindowsDesktopShortcuts and should look l ...Show All
Smart Device Development WCELOAD & NETCFv2.wm.armv4i.cab
I am trying install NETCFv2.wm.armv4i.cab using WCELOAD with "/SILENT" via CreateProcess. I am unable to WaitForSingleObject or GetExitCodeProcess as this cab remains ' STILL_ACTIVE' indefinately. I have done this many times for other Cab installs, without any issues. The only difference i am aware of with NETCFv2.wm.armv4i.cab is that you receive a message 'You must restart the device to complete installation' , if you run this manually. I want to avoid using a 'poke &hope' timer on the GetExitCodeProcess. Can another suggest a way i can monitor the CreateProcess'es completion Hi Can you please explain what you mean by correct command line I believe thi ...Show All
