Dopey Coder's Q&A profile
Windows Forms updating DB & databinding of a textbox
HI, I have VB studio.NETv2003,sqldatabase and a windows appl. IN this I made a master/detail form, wich shows the mastertable and several childtables. I used the databinding of the form, to navigatethrough the dataset, and for synchronising all the child tables with the mastertables. THIS IS GOING OK! The only thing is, that the updating of the table is not working! what ...Show All
Visual C++ Exception managed/unmanaged
Hello, Using IJW technology, I have a .NET program on top of a C++ code. A C++ exception (derived from std::exception) is thrown in the C++ part. In the managed part, I get a SEH exception, but can't find any way to get the additionnal information (the what() string, or the real type of the exception, runtime_error, bad_alloc...). Is there any way to get this information Best regards, You can't, but you can add a separate catch in C++/CLI. class UnmanagedClass { public : UnmanagedClass() { throw new std::invalid_argument( "this is a test" ); } }; int main( arra ...Show All
Windows Forms Custom control with data binding sample
Hi everyone I am trying to find a nice and simple example of a custom control that supports complex data binding (like a simple grid or a listbox). Surprisingly, I couldn't find anything useful in the SDK nor on the Web. All the sample either really trivial (SDK) or incredibly complex (Web). What I am trying to do, is to create a custom control&n ...Show All
Windows Forms ListView and subclassing
I have read two excellent articles on how to subclass .NET controls so that you can hook into the control’s WndProc, which is very helpful since you cannot access the WndProc directly for .NET Compact Framework controls. The links are: http://blog.opennetcf.org/ayakhnin/CategoryView.aspx category=ListView http://blogs.msdn.com/netcfteam/archive/2005/07/24/442616.aspx Sub-classing allows you to trap windows messages and provide handlers for them. I have run into a difficulty though when trying to request owner drawn messages. I have a listview control that I have sub-classed. The reason that I did this i ...Show All
Windows Forms Progressbar on a different thread
Hi all, Im kinda stuck here. Let me tell you some background info. Users can create a shift, but within that shift they can create a recurrence pattern. Now, those recurrence patterns can be long, like from 1 january till 1 february. What the program does is it create's a copy of the orginal shift, change's the dates and inserts it into the database. This take's some seconds and i want to popup a progressbar. The shift saving stuff all occurs within the UI thread ( i know..im going to seperate that ) When the saving starts, a form show's up with the progressbar. But the thing is, it won't show up very nicely as it is loading when the sh ...Show All
Windows Forms OpenFileDialog & Custom control
Hello! This is my problem: I have create a control, and i would like to know , how create a properties to select file(with openfiledialog), who open an openfiledialog The same thing that i create a property bitmap, but for other file type. I hop that you understant my question, Thanks, Wavemill I'm not shore about your question.... private OpenFileDialog ofd = new OpenFileDialog(); public string FileName { get { return ofd.FileName; } set { ofd.FileName = value; } } is that what you meant ...Show All
Visual Studio 2008 (Pre-release) Adding elements to a grid dynamically
hi all, once again...i am trying to add textboxes to an existing grid of a winfx window. maybe anyone can give me a hint on how to do that.. thanks in advance; // assuming "myGrid" is the name of the grid TextBox tb = new TextBox(); myGrid.Children.Add(tb); Grid.SetRow(tb,0); Grid.SetColumn(tb,0); ...Show All
Smart Device Development Getting "Registration failed wirh error 0x8973190e. Error writing file" ... Error 0x80450001
I am trying to register a simple sample grabber filter that I wrote for WinCE 5. It compiles and links fine and I can copy it to the remote device or emulator. But when I try to deploy the DLL I get the error in the title. Any ideas Thx, Tom Are you deploying all your dependent libraries Check out depends.exe to see what you are dependent on (ignore msjava.dll, that's not a real dependency), and make sure they are all on the device and locatable by your app. If they are all present, then the next step is debugging your registration calls. * Switch the register output property on the deployment property ...Show All
Visual Basic getting HTML from a website
Hi guys, I'm making a project that requires getting the HTML source from a website. I'm not at all sure about how to go about doing this. Any help would be greatly appreciated! Thank you so much in advance! -Robert Robert.... There are women here too. The other two identical questions you asked are in VBE and you marked your question as answered here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=414318&SiteID=1 ...Show All
Visual C++ Managed class in a MFC ActiveX control
I have a MFC ActiveX Control peoject, and I am trying to create a managed class within the control project with the /clr option. The code compiles and links without errors. So now when I am trying to add reference to the ocx in a C# project, I get the interop stuff the COM control class, but nothing for the managed class. If I rename, says abc.ocx into abc.dll, and do the add reference to the dll, I get the reference to the managed class, but not the control class. Would anyone have suggestions on how to solve the problem so that I can access both classes You could just leave it this way, there's no need t ...Show All
.NET Development Memory usage
I've noticed while profiling apps that the Process/Private Bytes counter keeps going up. The .NET Memory counters (Gen x heap size | # Bytes in Heap | etc) all go up and down as the app runs. Other than some very small dips the private bytes continues to go up and up as processing is done. Does this represent some type of memory leak I'm not using any unmanaged code that I'm aware of either. Thanks Chris I will try out those tools. Not sure if its a managed memory problem as I can see that the heaps are collected (or at least the heap size has gone down) while the private ...Show All
Smart Device Development httpwebrequest https Proxy Authentication issue
I'm using VS 2003. With a Dell Axim x51 (with Windows Mobile 2005) It has embedded in the rom CF 2.0 (i believe). The proxy address is port 80, and I'm given an IP, username, and password. I can use the Pocket IE on the device and get through. However the following code yields... different responses when attempting. Sometimes I get 407 error (which is enter proxy credientials), or a timeout, and if you notice I increased the request timeout to 6 minutes. Or if I try to hit a 443 address. I get immediately 'can not estasblish a secure connection for SSL'. The proxy server uses NTLM authentication (at least in one of our cases) There are publ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Early Out
Hi. I tried at the "regular" DirectX forums but since there was no answers or even faint ideas I am gonna post my question here. I have a fairly simple shader which loops over a numer of calculations. With ps_3_0 can we exit an loop and the fragment program early on if a certain condition is obtained for( ... ){ if( b > constant ) return Output; } } return Output; I have succesfully tried the below shader, the solution was pointed out by Mike Houston at gpgpu.org, it seems like due to branching differently in nearby fragments/pixels the dx/dy rule is not garantied for lod therefor ...Show All
Visual Basic not displaying msgbox message and combo box items in vb.net 2003
Hi! I have a problem with the message box and combo box items in vb.net 2003... the problem with msgbox is: i want to flat a msgbox when the user saves the document.. it perfectly displays when the user clicks save button but some times the msgbox will displays a blank msg.. ex... btnSave_Click(........).... msgbox("Record Updated Successfully!") end sub when the user clicks save button "Record Updated Successfully!" msg will display and some times it displaying a blank box. and the same problem with combo boxes also.. some times items will be displayed and sometimes not... could any one can tell me th ...Show All
SQL Server sqlmangr.exe program error (Please help)
Whenever I run the sqlmangr.exe after the system reboot, the sqlmanagr.exe generated program error. "sqlmangr.exe has generated errors and will be closed by Windows. You need to restart the program." I am using MSDE 2000. The OS is Windows 2000. One thing I noticed is that sqlmangr.exe will not crash if I disconnect the system from the NETWORK. (By unplugging the network cable.) YOUR HELP IS APPRECIATED. Hello, Did you determine the cause of this problem I too have the scenario where the error only occurs when connected to the network. That seems to imply some priveledges issue. Right Thanks. ...Show All
