akverma's Q&A profile
Windows Forms What is wrong with MyDataset is nothing?
I used a function to create a dataset and setup that if this function return nothing, exit sub. But after running, even though the function return nothing, sub did not exit. Help!!! Here is my code: Sub btnPrint (...) dim MyDataset as dataset dim strSQL = "select * from tblOrder" MyDataset = GetDataset(strSQL) if MyDataset&n ...Show All
SQL Server Open empty environment
What happened to the Query Designer It's a modal window that doesn't allow you to drag tables from other databases into the query. SQL 2000's verion of Query Designer was so much better than 2005. What happened Are the developers at Microsoft completely retarded Also, why do I have to log into my database servers everytime I open "Server Management Studio" Who thought up that nice feature Probably the same brillant folks that redesigned Query Designer. Why would you want to have a forced login procedure for every database everytime the program is opened. Once again Micro ...Show All
Visual C# byte question
ok i understnad that in a byte type cant be stored a value between 1 and 255 or more i dont really know exactly.. but a byte should bet stored as 1001011100100111100 or thats the machine code You're showing a binary number which is far too big to hold a byte. The representation of a number is totally different to what it contains, in that you can represent the same number many ways, and the value is the same. Why are you asking this ...Show All
Visual Basic Unicode question
After I have compiled my application are there ANY possible ways that UNICODE can affect the running of the application in any way at all For example (run on these systems characters typed and entered into fields will they be 4 byte characters ) If there is any possibility of any problems at all then how do I know when this is happening and how do I resolve the problems Michael J. Dyrnaes I keep asking you ... HOW do I know when I need to look for that "An example of the answer that I would have perhaps expected would have been that need to string comparison on every single data field every single time I have a use ...Show All
Visual Basic An unhandled exception has been caught by the VSW exception filter
i get this error when i try to open one my CrystalReports files. A windows pops up and says " Microsoft Development Environment has encountered a problem and needs to close..." When i click on the "click here" link to see details about the error it says: "An unhandled exception has been caught by the VSW exception filter. AppName: devenv.exe AppVer: 7.10.3077.0 ModName: crdesigner.dll ModVer: 9.1.1.179 Offset: 00011192" It only happens on one of my CrystalReports.NET files. All the other ones open fine. My VB files open fine also. It's just that one file that's causing the error. The only difference bet ...Show All
Software Development for Windows Vista Runtime Engine Durability
I understand that the Runtime engine does a lot of internal communication with queues. For example, the Instance Manager within the runtime engine will queue a workflow, which is thrown on a queue. The Scheduler within the workflow runtime then takes the workflow off the queue and fires the exectue method on the workflow, which then adds the first activity on the queue, etc., etc.. I also understand that workflow state can be persisted to maintain state durability over reboots, and also the sql timer service can be used to maintain delay events as well. My question is, how durable is the runtime itself For example, how much of the data o ...Show All
Visual Studio Team System Work Item "Assigned To" field contains all domain users
Why does the work item "assigned to" field contain all the users on the domain Is there a way to change this You can actually limit the number of entries appearing in the Assigned To field's list of allowed values by editing the corresponding work item type definition. If you export the work item type definition you're working with using witexport.exe and look at the rules, defined for the System.AssignedTo field, I bet you'll find VALIDUSER rule somewhere. This rule generates the list of allowed values that includes all valid users known to your TF server. To limit the number of items in that list you should either specify a grou ...Show All
Visual Basic Running "Show Data Sources" or "Add New Data Source" Generate Error of True Type Font
Hi, I am using VB 2005 Express Edition Beta 2. When I tries to add data source and click over "Add New Data Source" under "Data" Menu it generates following error "Only True Type fonts are supported. This is not a True Type font." This message also appears when "Show Data Sources" option is clicked. Can anyone help me. Regards. Hi, This is a known issue http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=122156 . This will be fixed in the next release of Visual Studio. To work-around it now, you can change this setting: Display Properties | Appearance | Advanced | ...Show All
.NET Development Progress indication of recursive XmlDocument processing
Hi, I have an algorithm which processes an XmlDocument recursively (iterate through all childs recursively). It takes some time to go over some Xml documents and I want to show some progress indication to the user (WinForm). How can I do it How can I know in what position I am inside the whole XmlDocument Thanks in advance ... You can use the ProgressBar class but it requires that you have a relatively big base selection. XmlDocument xmlDoc = new XmlDocument (); // Load the XML XmlNodeList xmlNodes = xmlDoc.SelectNodes( "/some/path" ); progressBar1.Minimum = 0; prog ...Show All
Visual Studio Express Editions Send information to mail
What can i do if i want some information sent to my mail My code : Public Class Form1 Private Sub TextBox1_TextChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged End Sub Private Sub Label1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click End Sub Private Sub Label2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label2.Click End Sub Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load ...Show All
Visual Studio Express Editions Is the VS 2005 Webbrowser really ready for prime time?
I am trying to use the Webbrowser control that is available in VS 2005 C# Express (.NET 2.0) to automate navigation through a set of web pages programmatically. I've run into two situations where I cannnot access the OuterHtml property of an HtmlElement. Looking at the debugger seems to say that some kind of underlying exception occurs. 1. I want to select an item in a listbox on a web page by changing the OuterHtml of two of the member elements from: <OPTION value="default" selected> <OPTION value="mychoice" > to <OPTION value="default" > <OPTION value="mychoice" selected> The ...Show All
SQL Server Top 20 ordered and rest grouped into 'others'
Hi guys. I want to create a top 20 product list from a few thousand products. I want the rest of the products to be grouped into 'others'... I also want the products to be ordered by the facts in the cube. Thus the product dimension would dynamically change depending on the Time dimension thats being selected. is this plausible Thanks Tom No, this query is for trying in MDX Sample Application if you are using AS 2000 or directly in the Microsoft Managment Stuidio if you are using AS 2005. When you are designing a cube the only part of the query is that is between ' '. ...Show All
Visual J# Enum Problem
How do I convert this from java to j# private enum Status {CONTINUE, WON, LOST}; Thanks for the help. Hi, In VS2003, J# didn't support writing enums though it supported consuming them :(. AS an workaround, 1. You can expose a set of named constants as public, static, fields and then consume them but in this case you may have to change your java code here and there. For Example... class Status { public static final int CONTINUE = 1; public static final int WON = 2; public static final int LOST = 3; } 2. you can declare the enum in a C# class library proj ...Show All
Windows Forms Using multiple windows forms !
Hi, I have a form("form1") on which I have 2 buttons. Each opens a new form("form2" and "form3". How do I make sure that the user only can open one instance of each of the two, forms2 and 3 dim frm2 as new form2 dim frm3 as new form3 button1_click frm2.show button2_click frm3.show will produce as many instances as the times I care to& ...Show All
Visual Studio Express Editions getting the rank of an item in an array of numbers
hello, does vb provide any function to find out the rank of value of an item (say, a number) in an array of numbers if it doesn't, is there anyway we can make the process less troublesome thanks. Actually it doesn't have a way to do that. When I stop and think about it from a computation pov, a percentile score is about it's relationship to all other scores. Rank is not something that computer people do routinely in support of computing, it's something a user woul want and there aren't any ready made routines from it. But I'm unsure what's troubling about it. Given an array of numbers, a cer ...Show All
