sticksnap's Q&A profile
Visual Basic How to replace a folder icon
Hello, I am trying to figure out how I can programatically replace a folder's icon by clicking a button. i want to change it to an image I have created (type *.ico). Can anyone please help me Thanks! http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/icon.asp Best regards, Johan Stenberg ...Show All
Visual C# How to make toolbar
i want to know that how can i make toolbar in c#.net.and how to add that toolbar in IE. Regards Amit Grover This is a beginning. But having created the dll toolbar, the next issue is installing an maintaining this toolbar as it continues to evolve. I have "heard" that Microsoft has developed a click-once or one-click installation process for installing and maintaining Google-like tool bars through the Internet. With this technology, in one click the toolbar is installed, and upon return if updates are ready it then updates the local dll. Could someone help me with the proper product name ("click-once" or "one-click" or whatever it may be) and direct me to where this te ...Show All
Visual C++ Math::sqrt() not cutting it
The .NET sqrt function returns double, but I need a decimal value returned (double is not accurate enough) does any one know of a squareroot fucntion that returns a decimal value thanks in advanced You might be able to roll your own by wrapping sqrtl(); Which uses a long double Dan ...Show All
Visual Basic How Can i Change the Language of MSGBOX Buttons?
Hi, I am developing an Application in multi language, all the process has been done. Application is working fine in all the languages. But problem is that when I display any Message using msgbox then Caption , Title are in the corressponding language but the Buttons (e.g. OK, Cancel) are in English, How Can i change those Buttons Language. Thanks This is not under your control, Deploy this application on and Operating System for which you have localised the application, It'll behave like what you are expecting. In Korean version of Windows it'll show Koren Language and in Arabic Version of Windows it'll show up with Arabic. So its not under your control to check it on English version ...Show All
Windows Forms Treeview questions???
Hi I would like some feedback on the following. After populating my tree view and expand it the scroll bar has scrolled half way down. How can i make it not scroll down when i load the tree and expand it. After i have loaded the users may scroll down if they want. When you click on the treeview it highlights the word in a dark blue. Is it possible to change that colour to another colour Is it possible to make it highlight the whole line from left to right of the treenode selected like a listbox My treeview is reloaded depending on what is selected on a combo box. When i reload it you can see me clearing it and then loading it again. Is there a way to prevent this Any responses/sample code will be great. Thank ...Show All
SQL Server ReportViewer height
I have a page in a master page with a ReportViewer control in Content How can I set it's height to view it in whole page If I set height = "100%" it has only the design view height of the Content control. ...Show All
.NET Development Best approach for Product/Order system
Hello all, This is my first post on MSDN. I am designing a Product Ordering system, which will return an invoice. Here is my db schema (partial) Categories(ProductId, department, class) OrderDetails(OrderId, ProdId, Quantity) Orders( OrderId, OrderDate, CusId) Products(ProdId, ProdName, ProdPrice) So far i have got a display such as below: ProdId(CheckBox), ProdName, ProdPrice In addition to this, each row has a Text input for Quantity To Order I have acheived the above by filling a dataset with the Categories and Products table, and rendering the results in a nested datalist, using Parent/Child Relation on the ProdId. What i am now stuck on is where i go from here. I would like to determine the selected Item from the CheckBox and associ ...Show All
Software Development for Windows Vista Rules Editor
I must be missing something simple but I have been unable to use the "System.Workflow.Activities.Rules.RuleConditionReference" within my workflow (CAG specifically). Everytime I select this option and click the ellipse to add a New Condition , the popup closes. If I enter text manually in the ConditionName field and hit enter, it will create the worklow.rules file with RuleExpressionCondition line. Next I try to add the expression by clickin on the ellipse and I get an error "An item with the same key has already been added". I have hand coded a rules file using other examples in hopes of it being recognized but with no luck. Am I missing something Jesse Jesse, I would suspect that your condition or ...Show All
Commerce Server Implementing Inventory Catalogs
Hi, Is there any good documentation available on how to implement the Inventory catalogs. I have a system with a base catalog for a specific country (US) and I have built 4 virtual catalogs based on this base catalog. The virtual catalogs (Wholesale, Retail, ...) are developed so I can manage specific product/category inclusion and exclusion rules based on the type of customer. I want to have 1 inventory catalog from which all 4 virtual catalogs pool their inventory from. With the default behavior the inventory sku key is based on the catalogname which would be different for each virtual catalog. What would be the best solution for this That uses standard pipeline components! If I need to do custom pipeline coding that ...Show All
Visual Studio Express Editions Opening Form 2 with push of button on Form 1
Thanks for all your help so far. I am slowly working my thru my little program. And have come upon another problem. I have a button on my main screen that i want to open a second screen with. So far I have coded the button with: Dim myform as new Phone_Messages() myform.ShowDialog() My problem is that the second form loads behind the first form and I cant see it or enter anything onto it. Can anyone tell me where I am going wrong. MyForm.ShowDialog(Me) Sets the 'owner' of the dialog to the 'me' object (usually the form it's being called from). ...Show All
Visual Studio Tools for Office Downloading XML Data in Access
I have an access application that needs to download a set of XML files on a weekly basis. I then load this data into my application. The developers of the site i'm downloading the files from have provided a URL to which you post an ilogin and ipassword variable. You are then supposed to get a reply of OK or failed. After authentication, session should be created with Session Key ("XMLSessID") passed as a cookie... I would then need to go and Load and Save each of the XML pages, using this authenticated session. Without embedding an IE browser into the MS Access application, how could i do this Thanks! -Ben Hi Ben Well, this forum doesn't cover cookies or MSXML either . for that, if you're us ...Show All
Visual Studio Express Editions Sql Express in Visual basic express
Hi Is it possible to create a table in visual basic express with functions to calculate amounts in columns for example column 1+column2 =column3. I tried importing from excel to vb express but the excel I have is too outdated to work. I have gotten as far as creating the table but when it comes to adding "functions" to the table i havent got a clue Thank you i just ran a search for computed column in vb express, I think this will help me alot. Thank you very much for your advise and help thank you ...Show All
.NET Development Bad Data Error with Decryption
I'm using TripleDESCryptoServiceProvider to encrypt and decrypt Xml files that are generated on the fly in two different places. In one part I'm allowing a user to download file, an XmlWriter writes to my CryptoStream which writes straight to the Response.OutputStream. Before any writing I call the following Response.Clear(); Response.AddHeader("content-disposition","attachment; filename=myXml.xml"); Response.ContentType = "text/xml"; Response.BufferOutput = true; The browser prompts for download, and everything is fine. I can then upload the file and have an XmlReader read from my CryptoStream which reads from FileUploader.PostedFile.InputStream and everything works fine. Now in the other place, I have an XmlWriter write to my Cry ...Show All
SQL Server ISNUll problem. Where clause doesn't work properly when I use isnull clause
Hey. I need to substitute a value from a table if the input var is null. This is fine if the value coming from table is not null. But, it the table value is also null, it doesn't work. The problem I'm getting is in the isnull line which is in Dark green color because @inFileVersion is set to null explicitly and when the isnull function evaluates, value returned from DR.FileVersion is also null which is correct. I want the null=null to return true which is why i set ansi_nulls off. But it doesn't return anything. And the select statement should return something but in my case it returns null. If I comment the isnull statements in the where clause, everything works fine. Please tell me what am I doing wrong. Is it possible to do this without ...Show All
Windows Forms How to fire data validation when enter data to special cell?
datagridview control has a lot events for data enter and data validation , i don't know how to use them exectally. How to fire data validation when enter data to special cell here is an example for datagridview data validation public class Form1 : System.Windows.Forms. Form { private DataGridView dataGridView1 = new DataGridView (); private BindingSource bindingSource1 = new BindingSource (); public Form1() { // Initialize the form. this .dataGridView1.Dock = DockStyle .Fill; this .Controls.Add(dataGridView1); this .Load += new EventHandler (Form1_Load); this .Text = "DataGridView validation demo (disallows empty CompanyName)" ; } ... [ STAThread ] stat ...Show All
