boliath's Q&A profile
SQL Server SQL2005 merge replication order
Hi there. There is publication with two articles with master-detail relationship. It is very important when syncronization process start to syncronize master table first. How can I control the order of syncronization (customized) Thanks. Look at @processing_order parameter of sp_addmergearticle. Additionally you could make them as a Logical Record entity and that way they will be applied all or nothing at the edstination site. ...Show All
Visual Studio Tools for Office how to catch this event?
hi all, i want to write some codes when user leave or enter header section in winword, so how to catch the leave/enter events of header(or footer) You'll need to work with the WindowSelectionChange event. One of the arguments this returns is Sel as Application.Selection - the new selection (where the user has gone). You can test Selection.StoryType to find out where this is, and save it to compare against the next time the event is fired. ...Show All
Visual Studio Express Editions Moving Line
Here's the code that I'm using, the idea is that a line is drawn the width of the Rectangle and moves down to the bottom of the Rectangle, I've had this working but after adapting the program to work with advice from a previous post it no longer works. Why is this Private Sub Pb_Paint( ByVal sender As Object , ByVal e As System.Windows.Forms.PaintEventArgs) G.DrawRectangle(myPen, Rect) e.Graphics.DrawLine(myPen, Rect.X, Rect.Y + Y, Rect.X + Rect.Width, Rect.Y + Y) If Y = Rect.Height Then Timer1.Enabled = False Me .Cursor = Cursors.Default End If End Sub Private Sub Timer1_Tick( ByVal sender As System.Object, ByVal e As System.EventAr ...Show All
Visual Studio Express Editions Can you package an App as a Self Contained .exe?
I would like to develop a small program that would be a self contained .exe, and would be able to run from that without installation. I was wondering how I can package it like that in Visual Studio (C#). Any help would be greatly appreciated. Thanks, Two points. This is the VB Forums, so asking questions about using C#, your in the wrong place. If your asking can you create stand-alone applications using VB.NET or C#, the answer is no. The applications are dependent upon the .NET framework being present. So if you know the .NET framework is already installed on you machine and you machine has no dependencies on other dll's sure you can just copy the .EXE and run it, but without the .NET framework ...Show All
.NET Development How MDBG process Unhandled Exception
Hi All, I use MDBG to debug a .NET application, which throws Unhandled Exception from some code. MDBG could capture it easily. It give below hints. STOP: Unhandled Exception thrown Exception=... ... ... This is unhandled exception, continuing will end the process But i want to let debuggee popup up an Unhandled Exception Dialog, then give the user a choice about whether continue or quit. It is the default behavior when CLR meet Unhandled Exception. When i debug the application within VS2005, it will popup the dialog. But when i use MDBG debug the application, then type "go", the process will end immediately. So i want to know how to modify MDBG to get the same effect as VS2005 Thanks ...Show All
SQL Server Not Closing Connections?
In some of my databases, I see connections from the same source. Each one has a CPUTime of 0 and DiskIO of 0 as well. It is from an application written by an internal source, and I suspect they are not closing their connections. How can I make sure SQL9 SP1 (in SQL9 compatibility mode) Are you using ADO.NET's DataReader object in your application If you are, you have to explicitly close the connection you use for the Data Reader object. Run sp_who2 and check the ProgramName column. This gives you an idea on the application that is trying to connect to SQL Server ...Show All
Visual Basic VB.NET 2003: Object must implement IConvertible Error...
The Following post explains in detail the error I am receiveing and provides the modified code I have implemented based on help tools. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=828435&SiteID=1 I think you'll need a serialized string of byte data instead of an array. Basicly take the value of each byte and create a concatonated string... Byte(0) = 255 Byte(1) = 143 Byte(2) = 45 Byte(3) = 9 Byte(4) = 214 Serialized into: 255143045009214 Not sure what the order should be or if you should use decimal, hex, or binary values, but the datatype of the SQL field is expecting a string of data... ...Show All
.NET Development Syntax to pass the value of a textbox from an edittemplate to a javascript function
I have a grid with the columns section as follows: < Columns > < radG : GridBoundColumn DataField ="LevelID" HeaderText ="ID" UniqueName ="LevelID" Visible ="False"> </ radG : GridBoundColumn > < radG : GridTemplateColumn HeaderText ="Level Name" UniqueName ="TemplateColumn"> < ItemTemplate > < asp : Label ID ="txtLevelName" runat ="server" Text =' <%# DataBinder.Eval(Container, "DataItem.LevelName") %> '></ asp : Label > </ ItemTemplate > < EditItemTemplate > < asp : TextBox ID ="txtLevelName" runat ="server& ...Show All
Visual Studio 2008 (Pre-release) Getting an error for setting UserNamePassword Token setting for WCF Service on IIS usin basicHTTPBinding.
I am getting the following error when I browse the Service.SVC file: Could not find a base address that matches scheme https for the endpoint with binding BasicHttpBinding. Registered base address schemes are [http]. I have done following step, can you please tell me what am I missing 1. I created a seperate website on IIS with port 90. 2. I ran the following command to install the SSL certificate. C:\Program Files\Support Tools>httpcfg set ssl -I 0.0.0.0:90 -h a586fc83bd30d288 d2c08067c03ca51258c94e32 HttpSetServiceConfiguration completed with 0. C:\Program Files\Support Tools>httpcfg query ssl localhost:80 IP : 0.0.0.0:90 Hash : a586fc83bd30d288d2c08067c03ca51258c94e32 ...Show All
Visual C++ unresolved external error
I am having an unresolved external problem. This is my error output: Linking... tryagain.obj : error LNK2019: unresolved external symbol _furnsh_c referenced in function _main C:\Documents and Settings\sharyl\Desktop\cspice\exe\tryagain\Debug\tryagain.exe : fatal error LNK1120: 1 unresolved externals I have the enviroment variables set so that the library that contains furnsh_c is in the lib path, and the include folders, etc are also in the system's enviroment variables. I have also added the lib that has furnsh_c to the additional dependencies. What am I missing Is it possible that I changed another setting that is causing this Thanks! The first one is expected. It lists a reference to symbol named _furnsh_c (whi ...Show All
Visual Studio Team System Can't Branch a large project
When I try to branch a folder in the source control explorer it gives me the dialog with "contacting server to perfrom branch..." for 30 to 60 minutes and then I get the message "TF30041: Team Foundation Server could not connect to the database." I thought maybe Sql server was timing out, so I set the remote query timeout to 0 for no timeout but that did not make any difference. This folder has 9 sub folders and close to 500 files total, all source and project files. I branched a couple of folders approx half this size and tho it took a very long time, it completed. I'm guessing something somewhere is timing out and giving up. Is there way around this problem The bad ...Show All
Windows Forms How to do a new line return on a rich text field
I am having a stupid issue with a Rich Text Field and needing to drop a new line programmatically. In writing to the Console, it is easy, just use "\n" to cause the string to the next line; well I am just wondering how I would do the same thing for a rich text box Say for example, I want to print 10 sentences out in a Rich Text Box. After each sentence I want to go to the next line so the sentence does not overwrite the previous; what can I do to achieve this for ( int i = 0; i < 10; i++) { RichTextBox.Text = "The brown fox ran fast"; //How can I get this to drop to the next line each time it is printed } Thanks, Flea for ( int i = 0; i < 10; i++) { RichTextB ...Show All
Smart Device Development Setting the parent of a form raises exception in NET CF 2.0
Hello, I just ported an application from NET CF 1.0 to NET CF 2.0 (SP1) and I get the error System.ArgumentException: Value does not fall within the expected range. at Microsoft.AGL.Common.MISC.HandleAr() at System.Windows.Forms.Control._SetParent() at System.Windows.Forms.Control.set_Parent() at com.incahellas.FormHelper.PrepareForm() at com.incahellas.FormHelper.ShowForm() at pocketerp.Form1.MainWorkA() at pocketerp.Form1.set_Func() at pocketerp.Form1.Form1_Load() at System.Windows.Forms.Form.OnLoad() at System.Windows.Forms.Form._SetVisibleNotify() at System.Windows.Forms.Control.set_Visible() at System.Windows.Forms.Application.Run() at pocketerp.MainClass.Main() } whenever I try to set the parent of a form. Does anybody kn ...Show All
SQL Server Xa transaction and MS DTC
Hi! I'm studying how xa transaction works and how NS DTC works. I'd like to have one more information about them. Windows documentation says about managing transactions, that "an XID corresponding to a OLE Transaction has the formatID field set to 0x00445443, the gtrid_length field set to 16, and a the first 16 bytes of the data field set to the UOW" So, if XA transaction uses XID with the following structure: struct xid_t { long formatID; /* format identifier */ long gtrid_length; /* value not to exceed 64 */ long bqual_length; /* value not to exceed 64 */ char data[128]; } it means that the branch id (bqual) is not used. Is it true or is there the possibility to set it What happens if the XID is set by user Is it trun ...Show All
Visual C# How to go to a specific line of text file programmatically?
Hi, I am working with a text file, that contains a hexadecimal character. I need to go to a specific line and certain position, get this character, assign it to a string(or other datatype), remove it, then save the text file. What object.method I can use in C#.net Thank you very much! No there isn't one line way for that. You can also use different solution. Read the whole file in to string. Then split the string lines using Split method to get string[] array. Then you can access that array by index which is the row number. This will be efficient if you have small file. ...Show All
