|
What people are telling you here is that what you "see" as datetime (in the debugger, in an application, in the database's resultset, ...) is just a representation of the datatype "datetime". Just as 10 is a representation of an integer and "10" is the string representation of the integer 10. Both the string and the integer value have a different "machine value" which is a bunch of 1's and 0's. Same goes for your datetime object. What you see is a representation of the object value which you can change as you wish.
Hope this clarifies things for you.
|
|
|
|
|
Hello,
I started to use VS 2013 profiler for the first time today.
Excellent tool at first sight.
But I get into a first issue while monitoring a XNA game.
I m trying to figure which mehod is causing the game to lag.
The profiler "functions tree" feature is apparently only doing a partial job.
It only displays a tree with 6 levels of called functions and claims that the 6th level function is at bottom of stack.
This is definitely not the case and this function does call some more methods.
Why does the profiler not show all of the called functions after the 6h level?
I looked for a parameter into the performance explorer properties. The only parameter that could be relevent was "display small functions". Enabling it did not help.
Any idea?
Thx in advance.
|
|
|
|
|
How possible to find source code of basic classes and methods to
override some methods, for instance override listbox methods (Items.Add)
to make some items other color?
Same as it is in Delphi, when you do ctrl+click and move to source code of pascal.
|
|
|
|
|
Don't post the same question in two places - all you will do is duplicate work and annoy people. Pick either the C# forum or the Q&A and stick with it.
Annoyed people are less likely to be helpful than happy ones...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
|
That's the same link I sent him in QA!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Great minds and all that.
|
|
|
|
|
You could also use a decompiler (like ILSpy) to browse the code of the framework.
The biggest difference with Delphi is that you can't change the code and recompile your VCL.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Hi. I'm using RAPI2 trying to retrieve a value from a connected Pocket PC. I can retrieve types REG_SZ, but not REG_MULTI_SZ values.
Any clues?
using (RemoteDeviceManager mgr = new RemoteDeviceManager())
{
using (RemoteDevice dev = mgr.Devices.FirstConnectedDevice)
{
using (RemoteDevice.DeviceRegistryKey hKey = dev.DeviceRegistryLocalMachine.OpenSubKey(@"Comm\NPME\JEDI10_1\Parms\TcpIp"))
{
txtIPAddress.Text = hKey.GetValue("IPAddress", string.Empty).ToString();
}
}
}
|
|
|
|
|
|
Thank you Richard. Problem solved.
|
|
|
|
|
I've ported a game project from XNA using DirectX to Monogame using openGL and everything works fine except for the in game graphics.
Many of the models appear to be white with no texture. I suspect however that the textures are there but that all is simply overexposed.
I am not familiar with openGL or Monogame. Any help will be greatly appreciated.
|
|
|
|
|
paulrm wrote: Any help will be greatly appreciated. You need to be much clearer about what help you are asking for, no one can guess what your code is trying to do. Also, is this connected to C#?
|
|
|
|
|
I don't know how I could be any clearer. I have ported the game project from XNA using DirectX to Monogame using openGL. The game project and the content project both compile and the executable launches the game and it appears to run quite well.
The problem is, many of the models are rendered bright white (bleached out). This does not happen when the game is compiled with XNA using DirectX. Sorry I don't see any way to attach a screenshot.
I realize this is actually a question about Monogame openGL or XNA DirectX, but don't see a forum for either Monogame or XNA. This seemed the appropriate location since the game is written in C#.
Perhaps graphics would have been more suited to the question. Feel free to move the topic if you like.
|
|
|
|
|
What does your Game class look like? Specifically, what is GraphicsDevice.SamplerState[0] set to? Is it null? If not, what's it set to?
|
|
|
|
|
You said "many" models appear "... white ...". "Many" does not mean "all" models. I can only conclude that "some" models do render properly; in which case, I would see what is different about those models / textures. That at least gives you a start in trying to solve the problem.
|
|
|
|
|
Some models do render with color, but from what I see, it is the material color included within the model itself.
I don't think the textures are rendering. As I said in a previous reply, the textures are compiling.
|
|
|
|
|
OK, I've done some research and I've found the trouble, though I still haven't quite worked out a solution.
It's something to do with the way I'm rendering the models. It works fine in XNA but not in Monogame.
Something along these lines will solve the problem.
foreach (var pass in effect.CurrentTechnique.Passes){
pass.Apply();
}
|
|
|
|
|
I had developed a dot net website in c#.I want to embed a video in my website,which should be compatible in all browsers without using html5.I had tried but the video is playing or compatible on IE only.What should i do.please provide some suggestions or code.I will be grateful to you.
thanks
|
|
|
|
|
Please don't cross post. By posting in multiple places, you minimise your chances of getting an answer because the threads become scattered all over the place.
|
|
|
|
|
Hi,
I am new to automation and I would like to know whether coded UI tool supports automation of WPF application? If Yes, then which Version supports the same? My application has 90% of Telerik Radgridview features.
Your feedback is highly appreciated, please do the needful ASAP.
Thanks,
QA
|
|
|
|
|
|
i want to use external physical combobox which is filled with dataset .i want this combobox to be available in the grid at particular cell address when i enter into that cell. navigation should be with keyboard.
thanks in advance
i use following code but it does not available in Cell enter & also keyboard navigation are not working.
1-Formload
datagridview1.Controls.Add(conbobox1);
2-Cell Begin Edit
private void datagridview1_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
{
if (datagridview1.CurrentCell.ColumnIndex == 16)
{
conbobox1.Visible = true;
conbobox1.Size = datagridview1.CurrentCell.Size;
conbobox1.Location = datagridview1.GetCellDisplayRectangle(e.ColumnIndex, e.RowIndex, true).Location;
}
|
|
|
|
|
I'm accessing WCF via Excel VBA using WCF Service Moniker[^].
Despite issues with https, non-intrinsic types (enum, Dictionary)...etc which all resolved (well, *avoided* by not using these, not resolved), I still face one obstacle - while invoking operations and sending to WCF interface with data of appreciable length OK (by setting Binding.ReaderQuotas.MaxStringContentLength to a big number on server side), unfortunately: retrieving data > 8192 characters from WCF interface seems like a show stopper. You can't configure proxy on Excel/VBA side to override ReaderQuota.
"The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader..."
It appears to properly consume WCF from Excel/VBA, you'd need do this thru calling dotnet dll from Excel/VBA[^]. But even this strategy is unproven... for example, your dll not going to have config where you can specify endpoint ReaderQuota overrides. There's a little article on this though[^]
I Googled around no joy. Any help/suggestion? Thanks!
dev
modified 12-Oct-14 11:56am.
|
|
|
|
|
Does this have anything to do with C#?
|
|
|
|