I know this is really picky, but can I have one template inside a user control:
<uc:MyUserControl runat="server" ID="test">
<div><b>Test</b></div>
<asp:PlaceHolder runat="server" id="pH" />
</uc:MyUserControl>
Instead of what I have now which requires me to:
<uc:MyUserControl runat="server" ID="test">
<Content>
<d...
We have a large WinForms app, and there is a built-in bug reporting system that can be activated during testing via the F5 Key. I am capturing the F5 key with .Net's PreFilterMessage system. This works fine on the main forms, modal dialog boxes, etc.
Unfortunately, the program also displays windows messageboxes when it needs to. When th...
I'm trying to delete files created by current user when he/she clicks logout button
Protected Sub OnLoggingOut(ByVal sender As Object, ByVal e As EventArgs) Handles LoginStatus1.LoggingOut
Try
Dim folder As String = Server.MapPath("~/uploads/")
Dim files As String() = Directory.GetFiles(folder)
...
I just read through a 2002 article on MSDN called Calling a .NET Component from a COM Component to get a basic understanding of calling .NET objects from VB6 code. However, I still wondering what else I might be concerned about when referencing .NET objects from VB6 and if there's anything newer information than what was available when ...
Assuming that the buttons are being clicked in order, the following code modifies row 1 in a .net DataSet, then row 0. HasChanges returns true, but GetChanges only gives me the change for row 0.
If I comment out the line in the button2 click event that modifies row 0, then HasChanges returns false.
Can anyone explain to me why Has...
Does anyone have any experience with ODB-II codes (http://en.wikipedia.org/wiki/On-board_diagnostics) and/or have any .net code available for reading information from an ODB unit? I'm having trouble reading data from my car. I'm trying to follow the spec as outlined in various wikipedia articles and based have search for solutions on f...
i need to import live/hotmail contacts using asp.net. I have done gmail and yahoo. i looked at opencontactsnet.dll and it doesnt work for live. none of the contacts are retrieved from that dll. does anyone know anything specifically for hotmail contacts?
...
I am trying to add a new record to a Visual FoxPro data table using an ADO dataset with no luck. The code runs fine with no exceptions but when I check the dbf after the fact there is no new record. The mDataPath variable shown in the code snippet is the path to the .dbc file for the entire database. A note about the For loop at the ...
Please tell me how to save and show Richtextbox's data in database and retrive it in saved format and which datatype should be used to save that data. i am using vb.net and MY SQL
...
I think im going mad but can some show me what im missing, it must be some stupidly simple i just cant see the wood for the trees.
BOTH side of this if then else statement are being executed?
Ive tried commenting out the true side and moving the condition to a seperate variable with the same result. However if i explicitly set the cond...
hi i want to make condition statement in my function. i use this method :
If String.ReferenceEquals(hotel, hotel) = true Then
insertDatabase()
Else
updateDatabase()
End If
if i try to insert a data already in the database, the function will directly go to the updateDatabase()..
the problem is, if i try to in...
I have a wierd problem with threading in an ASP.NET application. For some reason, when I run the code in the request thread, everything works as expected. But when I run it in a separate thread, nothing happens.
This is verified by calling the below handler with the three flags "on", "off" and "larma" respectively - in the two first case...
A few more details.
I need to programmatically (Winforms, VB.NET) check if a site is in the Allowed Sites list of the IE Pop-Up Blocker (IE 7 and 8 and Windows XP, Vista and 7) and if not, add it. The application is fully trusted and I don't want to disable the Pop-Up blocker entirely.
To clarify some things, this is for a web-automati...
I find this property useful but cannot find a direct replacement for it in vb.net. Is there one? Thanks
...
I am porting over some C++ assembly to VB that performs demodulation of various waveforms. I decided to go the unit test route instead of building a test app to get a feel for how testing is performed. The original demodulation code accepts an array that is the waveform along with some other arguments. How should one go about performi...
Hi,
There seemes to be a consistent problem with the following situation:
Say you have a VS2008 solution, consisting of a (say console) application written in vb.net, and a class library written in c#. The application references the class library
project.
This, of course, complies and works well. However, when you right-click (in th...
A guy came to me there recently with a half done web app that has been created using VB.NET, nothing major, just a normal site. His original programmer couldn't continue so he wants me to finish it. Problem is I don't program using VB.NET nor have I any intention of learning it for a project this small. Usually I would run from something...
Please tell me how to make text alignment centerlized in RadButton, RadListbox, RadCombobox in winform. (i am using vb.net - vs2005)
...
I have a byte array that I'm encoding to a string:
Private Function GetKey() As String
Dim ba() As Byte = {&H47, &H43, &H44, &H53, &H79, &H73, &H74, &H65, &H6D, _
&H73, &H89, &HA, &H1, &H32, &H31, &H36}
Dim strReturn As String = Encoding.ASCII.GetString(ba)
Return strReturn
End Function
Then I wri...
Hi,
1.
I am using a DataGridView, which is bound to a dataset.
There is a bindingNavigator as well.
when a user deletes a row by clicking "bindingNavigatorDeleteItem" button, I am trying to get the row being deleted.
private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e)
{
int crow = gridEventTyp...