EmekaAwagu's Q&A profile
Windows Networking Development Vista RTM can't open new socket.
Started here . Due to (stupid) limitation in TCP/IP driver (10 half-open connection) sometimes Vista loosing ability to access an internet (open new socket for communication). It happens when user uses P2P applications (BitTorrent, eMule). But in could be caused even by too busy IIS. BUT all existing internet-connected programs (WLM, Skype) are running. PC even is accessible via RDP. No any entries in EventLog relating to any problem with sockets. "Event 4226" appears in absolutely different time, not in time when connection was blocked. Only reboot or (sometimes) "Network Connections" (and ICS) service restart can help to revive network back to live. This problem is accepted by many people (see post on Channel9). Any settings in registry ...Show All
Windows Forms Links in a FormsApp and controlling the browser
Opening links is easy, like this private void button1_Click( object sender, EventArgs e) { System.Diagnostics. Process .Start( http://www.google.com ); } private void button2_Click( object sender, EventArgs e) { System.Diagnostics. Process .Start( http://www.yahoo.com ); } But is there a way to control if the link is opened in a new browser window or an existing one Button one method will always use an available insatnce This will start a new Instance each time it is clicked: private void button2_Click( object sender, EventArgs e) { Process P P . StartInfo . Arguments = http://www.microsoft.com ; P . StartInfo . FileName = "Iexplore.exe&q ...Show All
SQL Server Group Update of Prices
I am trying to write a SP that will update the price of products that are in a particular category. I have 3 tables; PRODUCT - productID, price CATEGORY - categoryID, categoryName, parentID PRODUCT_CATEGORY_MAP - productID, categoryID What I want to do, is allow admin to pass is a new price and categoryID, and it will update all the products that are within the supplied category. I will start with: UPDATE PRODUCT SET price = @price WHERE categoryID = @categoryID however I do not have categoryID within the PRODUCT table Do I place a SELECT statement after the WHERE DECLARE @productID int UPDATE PRODUCT SET price = @price WHERE (SELECT @productID = productID FROM PRODUCT_CATEGORY_MAP WHERE categoryID=@categoryID ) Not sure if that ...Show All
.NET Development Accessing Relational/Metadata with a Dynamic Schema
I've been tasked with writing a client interface for a dynamic schema. All the tutorials/forum posts/books I've read assume that you're working with a pre-defined schema; that you can connect to your database while developing. For me this is not the case. I've setup a test database in SQL Server Express; populated all my foreign keys, descriptions, constraints, etc. I'm writing the client in C#. From everything I've read, there is no possible way for me to poll for that relational information at runtime from the database. Is this correct (i.e. I can't examine a populated DataSet and see the relations). Also, I can't seem to access any of the caption/description information either. I was hoping to use the field descriptions as tooltips. Ar ...Show All
Windows Forms URGENT HELP - PRINT
C# - Windows Application (VS 2005) - OLEDB --------- Hi, I have a network printer IP: 1.2.3.4 shared name \\ns\admin_print$ I want to use a button within a form to print out the details of the form (data is from database). When I clicked the button, it will print straight to the designated printer. I do not want to have a print dialog to select printer. I do not know how to start with the code. Can someone advise private void PrintReport() { } What ahmedilyas said, and also. I wouldn't recommend printing to a networkshare/IP directly (and I'm not sure it's even possible in .net). What if the user/computer etc shouldn't have permissions to access that printer or the printer isn't ins ...Show All
SQL Server Changing FormatString for attribute of a dimension
i can't change the value of a format string for attributes of dimensions. For Cubes is easy, right-click on the measure -> Proprieties -> FormatString but for the attributes of a dimension I cannot find where I can change this proprieties.. Someone can help me thank you Riccardo >I think wildthink wants a leading zero, i.e. 0.0001 instead of .0001 yes!! thank you for your answers. but now i have a new question.. how can I make a named calculation for obtained what I want In DSV if I do "Explore Data" on the table of my dimension I can see my attribute correctly (with the leading zero), how create a named calculation to see this zero also when I brow ...Show All
Audio and Video Development Can't set Focus
Hello Guys, I am new to iHD and just started to write some iHD code. Now I arrived at the first problem: <div id="main"> <div id="some_other_div_already_with_buttons" style:display="auto"> <!-- here are already some buttons --> </div> <div id="surrounding_div" style:display="none"> <button id="button" /> </div> </div> Now I want to set the button to visible and set the focus on it: document.getElementById("surrounding_div").style.display="auto"; document.getElementById("button").state.focused="true"; document.getElementById("button").state.unsetProperty(" ...Show All
Commerce Server Taxation data
Hi, following on from my previous question: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1094829&SiteID=1 I'm looking for the most suitable place to store tax rates. I thought of creating a new profile object but don't think that is the most efficient place to store the data. The tax rates need to be easily accessible for my tax pipeline, without having a large performance hit. Thanks in advance Paul Hey Paul, I've been out with the flu this week and I haven't had time to wrap everything up. If you can send me an email (colin.bowern@officialcommunity.com) I'll give you a drop of the code to look over and I'll get it posted in full this weekend. Thanks, Colin ...Show All
SQL Server Fuzzy Lookup Error
Hi I get the following error when I use Fuzzy Lookup in a Data Flow task with TransactionOption property set to “ Required ” [Fuzzy Lookup [61]] Error: An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: " Cannot create new connection because in manual or distributed transaction mode .". When I Change the TransactionProperty to “ Supported” it works fine. I need the property set to Required for it does an undo in the event of a failure. Any ideas on how to get the Fuzzy Lookup to work Set Required on the package container, and Sup ...Show All
Smart Device Development Hi : About device unlock
HI, I recently got hold of Moto Q (Windows Mobile 5 SmartPhone; CDMA) for some application test / development. I am facing with problem with a message saying "This particular application is not a valid Windows CE app". Firslty, my application is signed with SDK test certificates and I have the certificates placed on the device too. So..I could rule of any problem with my app not being signed. I have the Microsoft's Device Security Manager to query and alter the security profiles of the device. When I first connected the device, the device was confirgured with One-Tier(Prompt) setting. I changed the setting to Security Off and then tried the application, but I get the same error message. Can anyone throw some light on ...Show All
Visual Studio Express Editions Closing laptop lid variable
Under Control Panel>Power Options Properties Advanced Tab you can tell the system what to do when you close the lid of your laptop (nothing, stand by, or hibernate). Is there a way to programmatically set this variable in VB I looked in PowerStatus and a few other places but could not find a reference to it. Thnx Many thnx to both of you for some good ref's to follow up on. I got Tall Dude's code to work fine bringing up the dialogue box to set the close lid function...will work on a direct setting of the policy next. ...Show All
Smart Device Development bluetooth state
How can I check if my bluetooth is on or not on the pocket pc and how can I set it on/off I'm using C# in VS 2005. Thank you. If your device uses the Microsoft Stack you can use the native APIs BthGetMode to get the BT stack state. A managed sample can be found here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/mobilesdk5/html/moconChangingBluetoothRadioMode.asp Michael ...Show All
Visual Basic Long Numbers
Hi, I would like to write applications, such as calculating pi, generating Mandelbrot Sets, factoring large numbers or prime hunts, which use extremely long numbers. I'm not talking about the measly 32 decimal places of the Decimal variable. I'm talking about two or three thousand decimal places. I've written a couple long number calculators which are, quite frankly, crude, cumbersome and slow. My approach has been to create arrays of byte characters, assign one digit to each byte, and then try to program the whole thing to handle addition, subtraction, multiplication and division; all the while trying to keep track of decimal places and polarities. It seems to me that there has to be a better way. Anyone know if it is possible to ...Show All
Visual Studio Team System Getting local variables in web app
Hi, I need to write a FxCop rule for validating the variable names with in a method of a web application. I'm using the following code - public override ProblemCollection Check( Member member) { Method method = member as Method ; if (method == null ) return null ; if (method.Instructions.Length == 0) return null ; LocalList locals = method.Instructions[0].Value as LocalList ; if (locals == null ) return null ; for ( int i = 0; i < locals.Length; i++) { Local local = locals ; // Do something } return base .Problems; } But this code doesn't returns the variables which I'm using in the methods. It works fine for ...Show All
Visual Studio 2008 (Pre-release) Binding Error - This could be due to mismatched bindings (for example security enabled on the client and not on the server)
i have a wcf service with binding is of type netTcpBinding, and security mode= none. I modified the client and service configuration file to set the security mode to none. when the client is trying to the channel and open it using the following commands i am getting the following error. The client and service are running on the same domain, and this is going to be the case when installed on the customer machine also. Error:- Message "The requested upgrade is not supported by 'net.tcp://karinta2k3:8000/SnapDrive/VirtualDiskService'. This could be due to mismatched bindings (for example security enabled on the client and not on the server)." context = new InstanceContext ( this ); string port = "8000&quo ...Show All
