Denvas's Q&A profile
Visual Basic Logins
Can someone point me in a right direction to learn how I can use a login form to login to SQLExpress Server using SQL Authentication I am thinking that I would like to use the login for my app instead of embedding one in my application. Is that wrong to thing like that I am thinking right by using this to gain access to my application and login to the server at the same time Davids Learning Richard is correct; his example will give you an exception object with more SQL specific detail. However, you'll still need to check the SqlException object to determine the type of error (e.g. perhaps the database isn't available). With the SqlException there is a Number property that you could test for ...Show All
Windows Live Developer Forums Launch an approved activity
Hi all, I submitted an activity created by me to gallery.live.com, and even after it got accepted, I have not been able to launch it in my Messenger! When i click the 'Launch in Messenger' link, all i does is that it takes me to a page with ads of MSN games! This is the link to my activity: http://gallery.live.com/liveItemDetail.aspx li=141912f8-dd72-485f-943a-971b5bdbc8cb&l=6 Please help me (as the creator of the activity) see what it's turned out to be! You're taken to this page , and that page contains a javascript to open the activity in messenger. Are you sure you use Internet Explorer It should work... ...Show All
Visual Studio Express Editions DataGridView when adding data this occurs for the very 1st entry:
Hi, I linked up my DataGridView with a .mdb file. I use a button to add data to my file but on the DataGridView my 'Sample' column starts from zero. Why is this so How come it does not start from 1 Can I program it to start from 1 Thanks for the help, Scott. I used the simplest method to solve this problem. Its describe here . ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA doomed?
XNA may be the greatest thing since sliced bread, but I don't see it getting a lot of support until you make a simple web page that explains what features the XNA framework supports and why I would want to use it. I'm not going to download the thing just to figure out what it is. - Low level cross platform graphics API with a few dribs and drabs of syntactic sugar I think that just about covers everything I need to make a game. GUI - Roll your own Scripting - Iron Python maybe Physics - Roll your own what more could you want :D ...Show All
Visual Studio 2008 (Pre-release) Dependency Property
Howdy... I am a little stumped... a little tired... a little stupid (probably) I have created an object that has a dependencyproperty in it... all is well.. I create an instance of the object and do the business... no problems. When I go to create another instance I get this exception: System.ArgumentException was unhandled Message="'HeaderContent_1' property was already registered by 'Scene1'." Source="WindowsBase" StackTrace: at System.Windows.DependencyProperty.RegisterCommon(String name, Type propertyType, Type ownerType, PropertyMetadata defaultMetadata, ValidateValueCallback validateValueCallback) at System.Windows.DependencyProperty.Register(String name, Type propertyType, Type ownerType, ...Show All
SQL Server Can I impersonate a userid in sql server odbc connection to Sql Server 2000?
My client gave me a domain/userid which I use with terminal server and mapped network drives to do work for them. However, I'd like to set up odbc access from my client pc (which is not on their domain) to their database for testing. It seems like you only have 2 choices - trusted authentication or sql authentication. Is there any way to use trusted authentication but change the userid This would be similar to the map network drive "connect using a different user id" function. I'm connecting to a Win2003 server running SQL Server 2000 from a WinXP PC. Not realy, if you are using trusted connections you need to have a valid username and password that is allowed on the sql server. Is ...Show All
SQL Server Multi Column Subreport
Hi, I am trying to use a multi column report as a subreport. I want to know how can I do it without loosing multi column. Thanks, -Rohit I have these reports which I am running separately. One of them is a multi column report also. I want to put together all these reports in one report, for that I am using these reports as subreports. The problem I am facing is, when I use multicolumn reports as subreport, I loose the multicolumn part of it. All the data come as one single column. I am using Rectangle to hold the subreports. May be I am not doing it wrong. Can you please help me, how can I bind all my individual reports into one single report and not loose any formatting (i.e.multicolu ...Show All
Software Development for Windows Vista Writing XPS codes on the Fixed Document & Fixed Document Sequence using API
Hi, I would just like to ask if there is a way to write XPS codes on the Fixed Document and Fixed Document Sequence parts of an XPS document using the APIs It seems that the APIs only provide an XmlWriter for the Fixed Page level. If I would like to edit Document level commands, say the width and height values of the PageContent element, I can't find a method for doing it. By the way, I use the WriteRaw method of the XmlWriter for writing XPS codes into the FixedPage parts. I would just like to ask if there is any similar way to do so for the FixedDocument and the FixedDocumentSequence parts. I'm hoping for a speedy reply from you guys... Thanks!!! av.arce Hej, afair I haven't ...Show All
Visual Studio How to distribute Visual Studio Projects
Hi Guys, I have created a Visual Studio Project and would like to send it to a friend of mine. When I just zip up the project and send it to him, he gets an error that the path is wrong etc. So my question here is, what is the best to distribute Visual Studio Solution. I also appricate links that answer my question. Thanks, Christian Hi Gabriel, thanks for your reply. Yes it is a ASP.NET C# Web Application and I am using Visual Studio 2005. Thanks for your help, Christian ...Show All
Windows Forms how to add a message to a databound combobox
I have a combobox where I have defined the style as DropDownList. I can bind it to a dataset but I want the initial entry to say something like, "select an item...". However, I can't think of a way to do that and bind the ComboBox at the same time. I tried taking the data from the dataset, moving the data into an object and storing the objects into an ArrayList. I did my databind with the ComboBox to the ArrayList. However, when I tried to get a value later on the SelectedValue member was null.... Here's the code: <code> cEvent evt = new cEvent(); ArrayList arrEvents = evt.GetEvents(); cboEvents.Items.Add("Select Event"); for (int ctr = 0; ctr < arrEvents.Count; ctr+ ...Show All
Windows Forms Datagrid Paging alignment
I have a problem. When i place a DataGrid on an aspx page in Visual Studio 2005 the page no comes to the extreme left of the page. I tried changing the alignment to right or center but still it is displayed in the same manner. If any body has a solution please let me know Hi, Thanx for having patience and answering a rite qn in a wrong place. The environmnet details are as follows: IDE:VS 2005 Dot Net version :ASP.Net 2.0 Browser: IE 6.0 OS:Windows 2003 server The sample code is as follows <asp:datagrid id="dgdArticles" runat="server" OnPageIndexChanged="ArticlePageChange" OnItemDataBound="FormatArticlesGrid" AllowPaging="True" BackColor=" ...Show All
Windows Live Developer Forums Design inconsistencies.
Hi, Could it be better if there is consistency between objects' methods which return the same type of information For instance (language used: JAVA). AdCenterAccount.getAccountId() returns an Integer while AdCenterCampaign.getCampaignId() returns an int. Thanks. This is necessary as getAccountId can possibly return a null value therefore must be a complex type. getCampaignId does not return a null thus can be a primitive type. Thanks Andy ...Show All
Visual Studio 2008 (Pre-release) Triggers on TreeViewItems and escaping the routing
I wanted to give a highlight to a TreeViewItem in a tree like this: <Style TargetType="{x:Type TreeViewItem}"> <Setter Property="IsExpanded" Value="True" /> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Cursor" Value="{x:Static Cursors.Hand}" /> <Setter Property="Background" Value="LightGray" /> </Trigger> </Style.Triggers> </Style> But when I do this the TreeViewItem parent gets highlighted along with the Item i've moused over. I tried IsMouseDirectlyOver, but that didn't work as I'm sure the mouse was directly over a TextBlo ...Show All
Visual C# updating dataset
Hi friends, i am writing text from c# into text file,I use following code : private void Button1_Click(object sender, System.EventArgs e) { StreamReader fp; DataSet1 ds =new DataSet1(); DataRow dr; try { fp = File.OpenText(Server.MapPath(".\\upload\\") + "test.txt"); string info = fp.ReadToEnd(); string[] arInfo = new string[4]; char[] splitter = {'|','^'}; arInfo = info.Split(splitter); for(int x = 0; x < arInfo.Length; x++) { Response.Write(arInfo[x] + "<br>"); dr = ds.Tables["Sample"].NewRow(); dr["username"] = arInfo[0]; dr["password"]=arINfo[1]; ds.Tables["Sample"].Rows.Add(dr); ds ...Show All
Visual Basic accessing information in an opend word document
I am trying to create an application that will open a Microsoft Word document then be able to access what the user types in to it. I'm using visual studio 2005. I have opened the document in two different ways; using the shell method and creating a new variable as a process, but once the word document is open, I cannot figure out how to access it's information. If anyone knows how to make the ms word application save, copy/paste, or knows a way for my application to access its information let me know. I've created the application once using a RichTextBox built in to my application, but my client (I'm a college intern in over my head in software development) prefers to enter the data in MS Word. Any replies are appreciated ...Show All
