Robert.Altland's Q&A profile
.NET Development Bad Connection
I am getting the following error when I attempt to connect to SqlServer with the following connection string from my Web.config file: < add name = " LeanPathConnection " connectionString = " Data Source=(local); Initial Catalog=VWOA1.DB; User Id=LeanPath; Password=jesus " /> I have made LeanPath a user at the Security level of the server. His default database is VWOA1.DB. I have given him db_owner rights. The following contains the exception detail I get. I don't see how he could NOT have a trusted SQL Server connection!!!!!! System.Data.SqlClient.SqlException was unhandled by user code Message="Login failed for user 'LeanPath'. The user is not associated with a trusted SQL Server connection.&q ...Show All
Visual C++ CSplitterWnd and MDI (like VC6 IDE)
Hi, I am trying to prototype a user interface that is similar to that of VC6. That is, a splitter should devide the main frame's client area into 2 sections. The bottom area is a SINGLE list view (analogous to the compiler output pane of VC6), and the upper area is dedicated to MULTIPLE views of the Multiple Document Interface. I can't seem to find a way around this requirement from samples provided by MSDN documentation, although this kind of interface is quite natural and common. I need help in pointing out the right way of overriding methods of CSplitterWnd or subclassing the CSplitterWnd and CMDIFrameWnd classes (since my study so far seems to point me in this direction.) Any guidance is pretty much appreciated. Huy ...Show All
Windows Forms c# Insert Text into Textbox
I have a series of textboxes on a Windows Form and a Series of buttons aswell. What I am trying to achieve sounds quite simple but I cannot figure out how to do it. Basically all Im trying to achieve is each button has some predefined text associated with it and when the user clicks the button, it inserts that text into the textbox which has the focus. The problem with this is that when you click on the button you lose the focus from the Textbox. The only way I have figured out is to save which control has focus before the button is clicked. This works but when you have 32 textboxes on a form, surely there is a better way than creating an On_Enter Method or similar to set the value of the Control which needs the text. Any help would be ...Show All
Visual Studio 2008 (Pre-release) Problem when using CollectionViewSource filter with DispatchingNotifyingCollection?
Hi, I am using DispatchingNotifyingCollection with CollectionViewSource. The code looks like this _wrapperCollection = new DispatchingNotifyingCollection < ObservableCollection < Item >, Item >(Dispatcher, _underlyingCollection); ICollectionVIew view = new CollectionView CollectionViewSource .GetDefaultView(_wrapperCollection) as ICollectionView _listBox.ItemsSource = _view; _view.Filter = new Predicate < object >(filtercode); bool filtercode( object de) { return true; //if return false, it will crash. } The problem if this only works if the filter code didn't filter out any element, if the filter code filters out any element (say I changed it to return false to f ...Show All
Smart Device Development Move Window (Static Text) difficulties
I'm trying to move a static text object based on an integer. Here is how the object is originily defined in the recorce file and where it should be if the integer is 0 RTEXT "Site Name",LBL_SITE_NAME_OBJ,7,160,36,9 I want to move it up 16 units for each value of the integer so if the integer is x the new top will be y x , y 0, 160 1, 144 2, 128 etc I'm doing lbl_site_name.MoveWindow(7,160-(16*my_int),36,9); but not only does that not quite put the text in the right place it also resizes it. I suspect the two use different scales (like trying to mix and match yards and meaters) How do I convert between the two The units in the RC file are so called Dialog Units. If your dialog uses system fo ...Show All
Visual C# Shortcut value converts to Long value within .ToString() ????
if you increment a shortcut value, then try to ToString() it, it loses it Enumeration string value, and goes to a int/long value. I am not sure why, and I need it to stop! You can try it by creating a simple form with a button and a lable, add this to the form: Shortcut sc = Shortcut .CtrlF1 ; private void button1_Click( object sender, EventArgs e) { sc += 1; label1.Text = sc.ToString(); } wire up the method to the button click, and you will see that after Shortcut.CtrlF12, it turns in to a number. Any way to prevent this RWF, If you want it to stop losing its name, stop incrementing its value ;) Now, seriously, you can cast any integer number to an enum, ...Show All
Windows Forms BackgroundWorker component speed
I'm performing a long running operation on a background thread using the BackgroundWorker component. I noticed that my app is only using around 50% of the CPU time during this operation so it takes twice as long as it normally does without running it in the background. Is there any way to make the background worker run a a higher priority or is this not what's causing the problem You probably have a CPU that supports hyperthreading. Windows treats these like a dual-core CPU, one thread using 100% of the CPU uses only 50% of the CPU resources. ...Show All
Visual Studio Tools for Office "Go live" with a share add in application
Hello. I've developed a shared add in application using Visual Studio 2005. Does anyone know how I install the addin on a computer that doesn't have Visual Studio installed... I'll be happy for any answers :) Thanks Hi, Are you asking how to create a setup for your add-in and install on end-user computers Or are you trying to ask something in particular to VS installations issues If it is the former, then here is what you need to do 1) Add Setup type of poject to your solution 2) Right-click on your setup project and say Add - Project Output 3) In the drop-down, select your add-in project and in the selection box under it select Primary Output. 4) Chk if you need to package any update ...Show All
Smart Device Development Tips for GPRS fake network
Is there a trick to getting the fake GPRS network running The WM5 emulator is able to access the network without issue when cradled but I cannot access the network via GPRS/FakeNetwork. Do I need to set a proxy server setting or something even though I'm raw on the internet I have loaded the VM network services provider but there don't appear to be any settings to muck with. Please respond to gregvi@hotmail.com if you have any answers. Thanks Greg The fake GPRS network only supports loopback into the emulator - it does not support bridging data over onto your LAN. For network connectivity, we strongly recommend using ActiveSync and cradling the emulator using the Device Emulator Manager. Th ...Show All
.NET Development Simple program to send socket stream data to text file
Dear all, I am new to this so please be patient with me.... I am trying to find a way to capture all data that is being streamed from a PBX on a specific socket to a test file. The PBX is not expecting any responses, all it does is send the data stream out the specified socket at the completion of a call so all I need it a program that will listen on that socket ond record any data to a text file. I have found various samples that connect to sockets etc but have not figured out a way to have this information then saved to a file. Any suggestion welcomed! Hi Gerry, I know this is an old thread for you, But I am in ur status now, I am new to .Net and i wantt o connect to a PBX and obtain it' ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Viewport depth buffer / draw order issue?
Apologies in advance if this question has been covered elsewhere. I've searched through literally hundreds of posts here, but couldn't find anything relevant to my issue. I'm working on some code to simultaneously display a 3d model from several different camera angles in several different viewports. Unfortunately, I've run into a rendering problem whenever I draw the model in a viewport. For reference, here is a perspective rendering in 3DS Max of what the model looks like: http://www.hph-tech.com/modelPerspective.jpg This is a screenshot of the model (as seen from above) when I render it normally (i.e. not in a viewport): http://www.hph-tech.com/modelNormal.jpg And this is a screenshot of the model from the same angle, but when rendered ...Show All
Visual Studio How can I install crystal reports XI R2 into visual studio 2005?
How can I install crystal reports XI R2 into visual studio 2005 After I installed crystal reports XI R2 on my machine, where visual studio 2005 is installed. It seems nothing has changed, the report are still in bundled version. Should I config anywhere to make it replace the bundled version Joseph Thanks a lot, Paul. My version is 11.5.0, and I followed your step to install XI R2 succesfully. But Crystal reports are always troublesome, while I open my existing projects, it generated lots of erros, and the namespace is different, I guess. Not like visual studio 2005, which is perfectly support back-compatiblity. I had ever given up crystal reports 1 year ago, shifted to reporting services, which is sti ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Chatroom
I personally put up a XNA chatroom to build a community that is already here and to better get to know each other. If you want to quickly inform somebody or get some information or help with something go there. The only problem for me right now is getting idlers in the channel. I know forums are a great way to help people, but sometimes just talking to each other about things like this is even better. Come and idle and help build a community even bigger and also build a place to help each other out. Its XNA Development, its for us. (That would be a sexy slogan). Server: irc.opa-ages.com Channel: #XNA You can use mIRC or any IRC clients in order to get to the chat. X-Tatic wrote: I think it' ...Show All
Visual C++ Possible problem with Project proprty sheets in VS 2005
Hello I changed a project so that it inherited from a different property sheet. Unfortunately, doing a dependency build was not sufficient to cause the project to rebuild. Is this expected behavior I have a project, A.VCPROJ which iherits from Foo.vsprops. This sets up some macros and has an additional library. I change it to use Bar.vsprops that does not have the macros and library. If I just select "build" nothing happens, even though if I made similarc hanges via the project settings then it would rebuild. Dennis DennisMW wrote: I have a project, A.VCPROJ which iherits from Foo.vsprops. This sets up some macros and has an additional library. I change it to use Bar.vsprops that does not have the mac ...Show All
Windows Forms ToolStripComboBox DataSource
I am using a dataset table to bind to a toolstripComboBox. The table has 20 rows in it. After binding the toolstripComboBox to the table it has an item count of 20. But nothing shows up in it. I am stumped. There are four columns in the table. I use one for the ValueMember and one for the DisplayMember. I'm sure this problem is something simple. Can someone help me out Thanks! Curt No I haven't. The datasource is a straight select statement that returns all 20 rows from a table. I have tried this before and it just doesn't work. The same datasource will work on a normal dropdown but not one within a toolstrip. I am completely stumped. Any ideas Curt ...Show All
